| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 V(StoreKeyedGeneric) \ | 138 V(StoreKeyedGeneric) \ |
| 139 V(StoreNamedField) \ | 139 V(StoreNamedField) \ |
| 140 V(StoreNamedGeneric) \ | 140 V(StoreNamedGeneric) \ |
| 141 V(StringAdd) \ | 141 V(StringAdd) \ |
| 142 V(StringCharCodeAt) \ | 142 V(StringCharCodeAt) \ |
| 143 V(StringCharFromCode) \ | 143 V(StringCharFromCode) \ |
| 144 V(StringCompareAndBranch) \ | 144 V(StringCompareAndBranch) \ |
| 145 V(SubI) \ | 145 V(SubI) \ |
| 146 V(TaggedToI) \ | 146 V(TaggedToI) \ |
| 147 V(ThisFunction) \ | 147 V(ThisFunction) \ |
| 148 V(ToFastProperties) \ | |
| 149 V(TransitionElementsKind) \ | 148 V(TransitionElementsKind) \ |
| 150 V(TrapAllocationMemento) \ | 149 V(TrapAllocationMemento) \ |
| 151 V(Typeof) \ | 150 V(Typeof) \ |
| 152 V(TypeofIsAndBranch) \ | 151 V(TypeofIsAndBranch) \ |
| 153 V(Uint32ToDouble) \ | 152 V(Uint32ToDouble) \ |
| 154 V(UnknownOSRValue) \ | 153 V(UnknownOSRValue) \ |
| 155 V(WrapReceiver) | 154 V(WrapReceiver) |
| 156 | 155 |
| 157 | 156 |
| 158 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 157 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| (...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2367 | 2366 |
| 2368 LOperand* context() { return inputs_[0]; } | 2367 LOperand* context() { return inputs_[0]; } |
| 2369 LOperand* size() { return inputs_[1]; } | 2368 LOperand* size() { return inputs_[1]; } |
| 2370 LOperand* temp() { return temps_[0]; } | 2369 LOperand* temp() { return temps_[0]; } |
| 2371 | 2370 |
| 2372 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2371 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2373 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2372 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2374 }; | 2373 }; |
| 2375 | 2374 |
| 2376 | 2375 |
| 2377 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
| 2378 public: | |
| 2379 explicit LToFastProperties(LOperand* value) { | |
| 2380 inputs_[0] = value; | |
| 2381 } | |
| 2382 | |
| 2383 LOperand* value() { return inputs_[0]; } | |
| 2384 | |
| 2385 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
| 2386 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
| 2387 }; | |
| 2388 | |
| 2389 | |
| 2390 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2376 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
| 2391 public: | 2377 public: |
| 2392 LTypeof(LOperand* context, LOperand* value) { | 2378 LTypeof(LOperand* context, LOperand* value) { |
| 2393 inputs_[0] = context; | 2379 inputs_[0] = context; |
| 2394 inputs_[1] = value; | 2380 inputs_[1] = value; |
| 2395 } | 2381 } |
| 2396 | 2382 |
| 2397 LOperand* context() { return inputs_[0]; } | 2383 LOperand* context() { return inputs_[0]; } |
| 2398 LOperand* value() { return inputs_[1]; } | 2384 LOperand* value() { return inputs_[1]; } |
| 2399 | 2385 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2656 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2671 }; | 2657 }; |
| 2672 | 2658 |
| 2673 #undef DECLARE_HYDROGEN_ACCESSOR | 2659 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2674 #undef DECLARE_CONCRETE_INSTRUCTION | 2660 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2675 | 2661 |
| 2676 } // namespace internal | 2662 } // namespace internal |
| 2677 } // namespace v8 | 2663 } // namespace v8 |
| 2678 | 2664 |
| 2679 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2665 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |