OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 } | 953 } |
954 | 954 |
955 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 955 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
956 "instance-of-known-global") | 956 "instance-of-known-global") |
957 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 957 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
958 | 958 |
959 Handle<JSFunction> function() const { return hydrogen()->function(); } | 959 Handle<JSFunction> function() const { return hydrogen()->function(); } |
960 }; | 960 }; |
961 | 961 |
962 | 962 |
963 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> { | 963 class LBoundsCheck: public LTemplateInstruction<1, 2, 0> { |
964 public: | 964 public: |
965 LBoundsCheck(LOperand* index, LOperand* length) { | 965 LBoundsCheck(LOperand* index, LOperand* length) { |
966 inputs_[0] = index; | 966 inputs_[0] = index; |
967 inputs_[1] = length; | 967 inputs_[1] = length; |
968 } | 968 } |
969 | 969 |
970 LOperand* index() { return inputs_[0]; } | 970 LOperand* index() { return inputs_[0]; } |
971 LOperand* length() { return inputs_[1]; } | 971 LOperand* length() { return inputs_[1]; } |
972 | 972 |
973 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") | 973 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") |
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2330 | 2330 |
2331 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2331 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2332 }; | 2332 }; |
2333 | 2333 |
2334 #undef DECLARE_HYDROGEN_ACCESSOR | 2334 #undef DECLARE_HYDROGEN_ACCESSOR |
2335 #undef DECLARE_CONCRETE_INSTRUCTION | 2335 #undef DECLARE_CONCRETE_INSTRUCTION |
2336 | 2336 |
2337 } } // namespace v8::int | 2337 } } // namespace v8::int |
2338 | 2338 |
2339 #endif // V8_X64_LITHIUM_X64_H_ | 2339 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |