| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(LoadKeyed) \ | 92 V(LoadKeyed) \ |
| 93 V(LoadKeyedGeneric) \ | |
| 94 V(LoadNamedField) \ | 93 V(LoadNamedField) \ |
| 95 V(MathAbs) \ | 94 V(MathAbs) \ |
| 96 V(MathClz32) \ | 95 V(MathClz32) \ |
| 97 V(MathCos) \ | 96 V(MathCos) \ |
| 98 V(MathSin) \ | 97 V(MathSin) \ |
| 99 V(MathExp) \ | 98 V(MathExp) \ |
| 100 V(MathFloor) \ | 99 V(MathFloor) \ |
| 101 V(MathFround) \ | 100 V(MathFround) \ |
| 102 V(MathLog) \ | 101 V(MathLog) \ |
| 103 V(MathMinMax) \ | 102 V(MathMinMax) \ |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 return hydrogen()->is_fixed_typed_array(); | 1389 return hydrogen()->is_fixed_typed_array(); |
| 1391 } | 1390 } |
| 1392 | 1391 |
| 1393 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1392 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1394 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1393 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1395 | 1394 |
| 1396 void PrintDataTo(StringStream* stream) override; | 1395 void PrintDataTo(StringStream* stream) override; |
| 1397 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1396 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1398 }; | 1397 }; |
| 1399 | 1398 |
| 1400 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { | |
| 1401 public: | |
| 1402 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
| 1403 LOperand* vector) { | |
| 1404 inputs_[0] = context; | |
| 1405 inputs_[1] = object; | |
| 1406 inputs_[2] = key; | |
| 1407 temps_[0] = vector; | |
| 1408 } | |
| 1409 | |
| 1410 LOperand* context() { return inputs_[0]; } | |
| 1411 LOperand* object() { return inputs_[1]; } | |
| 1412 LOperand* key() { return inputs_[2]; } | |
| 1413 LOperand* temp_vector() { return temps_[0]; } | |
| 1414 | |
| 1415 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | |
| 1416 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | |
| 1417 }; | |
| 1418 | |
| 1419 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1399 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1420 public: | 1400 public: |
| 1421 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } | 1401 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } |
| 1422 | 1402 |
| 1423 LOperand* context() { return inputs_[0]; } | 1403 LOperand* context() { return inputs_[0]; } |
| 1424 | 1404 |
| 1425 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1405 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1426 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1406 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| 1427 | 1407 |
| 1428 int slot_index() { return hydrogen()->slot_index(); } | 1408 int slot_index() { return hydrogen()->slot_index(); } |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 | 2280 |
| 2301 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2281 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2302 }; | 2282 }; |
| 2303 | 2283 |
| 2304 #undef DECLARE_HYDROGEN_ACCESSOR | 2284 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2305 #undef DECLARE_CONCRETE_INSTRUCTION | 2285 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2306 } // namespace internal | 2286 } // namespace internal |
| 2307 } // namespace v8 | 2287 } // namespace v8 |
| 2308 | 2288 |
| 2309 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2289 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| OLD | NEW |