equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
32 public: |
32 public: |
33 static void eliminate(IR *ir); |
33 static void eliminate(IR *ir); |
34 }; |
34 }; |
35 |
35 |
36 // Implementation |
36 // Implementation |
37 class RangeCheckEliminator VALUE_OBJ_CLASS_SPEC { |
37 class RangeCheckEliminator { |
38 private: |
38 private: |
39 int _number_of_instructions; |
39 int _number_of_instructions; |
40 bool _optimistic; // Insert predicates and deoptimize when they fail |
40 bool _optimistic; // Insert predicates and deoptimize when they fail |
41 IR *_ir; |
41 IR *_ir; |
42 |
42 |