| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 V(StoreKeyedGeneric) \ | 134 V(StoreKeyedGeneric) \ |
| 135 V(StoreNamedField) \ | 135 V(StoreNamedField) \ |
| 136 V(StoreNamedGeneric) \ | 136 V(StoreNamedGeneric) \ |
| 137 V(StringAdd) \ | 137 V(StringAdd) \ |
| 138 V(StringCharCodeAt) \ | 138 V(StringCharCodeAt) \ |
| 139 V(StringCharFromCode) \ | 139 V(StringCharFromCode) \ |
| 140 V(StringCompareAndBranch) \ | 140 V(StringCompareAndBranch) \ |
| 141 V(SubI) \ | 141 V(SubI) \ |
| 142 V(TaggedToI) \ | 142 V(TaggedToI) \ |
| 143 V(ThisFunction) \ | 143 V(ThisFunction) \ |
| 144 V(ToFastProperties) \ | |
| 145 V(TransitionElementsKind) \ | 144 V(TransitionElementsKind) \ |
| 146 V(TrapAllocationMemento) \ | 145 V(TrapAllocationMemento) \ |
| 147 V(Typeof) \ | 146 V(Typeof) \ |
| 148 V(TypeofIsAndBranch) \ | 147 V(TypeofIsAndBranch) \ |
| 149 V(Uint32ToDouble) \ | 148 V(Uint32ToDouble) \ |
| 150 V(UnknownOSRValue) \ | 149 V(UnknownOSRValue) \ |
| 151 V(WrapReceiver) | 150 V(WrapReceiver) |
| 152 | 151 |
| 153 | 152 |
| 154 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 153 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| (...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2351 | 2350 |
| 2352 LOperand* context() { return inputs_[0]; } | 2351 LOperand* context() { return inputs_[0]; } |
| 2353 LOperand* size() { return inputs_[1]; } | 2352 LOperand* size() { return inputs_[1]; } |
| 2354 LOperand* temp() { return temps_[0]; } | 2353 LOperand* temp() { return temps_[0]; } |
| 2355 | 2354 |
| 2356 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2355 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2357 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2356 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2358 }; | 2357 }; |
| 2359 | 2358 |
| 2360 | 2359 |
| 2361 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
| 2362 public: | |
| 2363 explicit LToFastProperties(LOperand* value) { | |
| 2364 inputs_[0] = value; | |
| 2365 } | |
| 2366 | |
| 2367 LOperand* value() { return inputs_[0]; } | |
| 2368 | |
| 2369 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
| 2370 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
| 2371 }; | |
| 2372 | |
| 2373 | |
| 2374 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2360 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
| 2375 public: | 2361 public: |
| 2376 LTypeof(LOperand* context, LOperand* value) { | 2362 LTypeof(LOperand* context, LOperand* value) { |
| 2377 inputs_[0] = context; | 2363 inputs_[0] = context; |
| 2378 inputs_[1] = value; | 2364 inputs_[1] = value; |
| 2379 } | 2365 } |
| 2380 | 2366 |
| 2381 LOperand* context() { return inputs_[0]; } | 2367 LOperand* context() { return inputs_[0]; } |
| 2382 LOperand* value() { return inputs_[1]; } | 2368 LOperand* value() { return inputs_[1]; } |
| 2383 | 2369 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2640 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2655 }; | 2641 }; |
| 2656 | 2642 |
| 2657 #undef DECLARE_HYDROGEN_ACCESSOR | 2643 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2658 #undef DECLARE_CONCRETE_INSTRUCTION | 2644 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2659 | 2645 |
| 2660 } // namespace internal | 2646 } // namespace internal |
| 2661 } // namespace v8 | 2647 } // namespace v8 |
| 2662 | 2648 |
| 2663 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2649 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |