| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 V(InvokeFunction) \ | 82 V(InvokeFunction) \ |
| 83 V(IsStringAndBranch) \ | 83 V(IsStringAndBranch) \ |
| 84 V(IsSmiAndBranch) \ | 84 V(IsSmiAndBranch) \ |
| 85 V(IsUndetectableAndBranch) \ | 85 V(IsUndetectableAndBranch) \ |
| 86 V(Label) \ | 86 V(Label) \ |
| 87 V(LazyBailout) \ | 87 V(LazyBailout) \ |
| 88 V(LoadContextSlot) \ | 88 V(LoadContextSlot) \ |
| 89 V(LoadRoot) \ | 89 V(LoadRoot) \ |
| 90 V(LoadFieldByIndex) \ | 90 V(LoadFieldByIndex) \ |
| 91 V(LoadFunctionPrototype) \ | 91 V(LoadFunctionPrototype) \ |
| 92 V(LoadGlobalGeneric) \ | |
| 93 V(LoadKeyed) \ | 92 V(LoadKeyed) \ |
| 94 V(LoadKeyedGeneric) \ | 93 V(LoadKeyedGeneric) \ |
| 95 V(LoadNamedField) \ | 94 V(LoadNamedField) \ |
| 96 V(LoadNamedGeneric) \ | 95 V(LoadNamedGeneric) \ |
| 97 V(MathAbs) \ | 96 V(MathAbs) \ |
| 98 V(MathClz32) \ | 97 V(MathClz32) \ |
| 99 V(MathCos) \ | 98 V(MathCos) \ |
| 100 V(MathSin) \ | 99 V(MathSin) \ |
| 101 V(MathExp) \ | 100 V(MathExp) \ |
| 102 V(MathFloor) \ | 101 V(MathFloor) \ |
| (...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 | 1428 |
| 1430 LOperand* context() { return inputs_[0]; } | 1429 LOperand* context() { return inputs_[0]; } |
| 1431 LOperand* object() { return inputs_[1]; } | 1430 LOperand* object() { return inputs_[1]; } |
| 1432 LOperand* key() { return inputs_[2]; } | 1431 LOperand* key() { return inputs_[2]; } |
| 1433 LOperand* temp_vector() { return temps_[0]; } | 1432 LOperand* temp_vector() { return temps_[0]; } |
| 1434 | 1433 |
| 1435 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1434 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1436 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1435 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1437 }; | 1436 }; |
| 1438 | 1437 |
| 1439 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
| 1440 public: | |
| 1441 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
| 1442 inputs_[0] = context; | |
| 1443 temps_[0] = vector; | |
| 1444 } | |
| 1445 | |
| 1446 LOperand* context() { return inputs_[0]; } | |
| 1447 LOperand* temp_vector() { return temps_[0]; } | |
| 1448 | |
| 1449 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
| 1450 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
| 1451 | |
| 1452 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1453 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
| 1454 }; | |
| 1455 | |
| 1456 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1438 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1457 public: | 1439 public: |
| 1458 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } | 1440 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } |
| 1459 | 1441 |
| 1460 LOperand* context() { return inputs_[0]; } | 1442 LOperand* context() { return inputs_[0]; } |
| 1461 | 1443 |
| 1462 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1444 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1463 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1445 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| 1464 | 1446 |
| 1465 int slot_index() { return hydrogen()->slot_index(); } | 1447 int slot_index() { return hydrogen()->slot_index(); } |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 | 2319 |
| 2338 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2320 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2339 }; | 2321 }; |
| 2340 | 2322 |
| 2341 #undef DECLARE_HYDROGEN_ACCESSOR | 2323 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2342 #undef DECLARE_CONCRETE_INSTRUCTION | 2324 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2343 } // namespace internal | 2325 } // namespace internal |
| 2344 } // namespace v8 | 2326 } // namespace v8 |
| 2345 | 2327 |
| 2346 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2328 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| OLD | NEW |