| 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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
| 6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 public: | 1329 public: |
| 1330 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s") | 1330 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s") |
| 1331 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1331 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 1332 | 1332 |
| 1333 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } | 1333 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } |
| 1334 }; | 1334 }; |
| 1335 | 1335 |
| 1336 | 1336 |
| 1337 class LConstantD FINAL : public LTemplateInstruction<1, 0, 1> { | 1337 class LConstantD FINAL : public LTemplateInstruction<1, 0, 1> { |
| 1338 public: | 1338 public: |
| 1339 explicit LConstantD(LOperand* temp) { | |
| 1340 temps_[0] = temp; | |
| 1341 } | |
| 1342 | |
| 1343 LOperand* temp() { return temps_[0]; } | |
| 1344 | |
| 1345 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") | 1339 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") |
| 1346 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1340 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 1347 | 1341 |
| 1348 double value() const { return hydrogen()->DoubleValue(); } | 1342 double value() const { return hydrogen()->DoubleValue(); } |
| 1349 }; | 1343 }; |
| 1350 | 1344 |
| 1351 | 1345 |
| 1352 class LConstantE FINAL : public LTemplateInstruction<1, 0, 0> { | 1346 class LConstantE FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1353 public: | 1347 public: |
| 1354 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e") | 1348 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e") |
| (...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2907 | 2901 |
| 2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2902 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2909 }; | 2903 }; |
| 2910 | 2904 |
| 2911 #undef DECLARE_HYDROGEN_ACCESSOR | 2905 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2912 #undef DECLARE_CONCRETE_INSTRUCTION | 2906 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2913 | 2907 |
| 2914 } } // namespace v8::internal | 2908 } } // namespace v8::internal |
| 2915 | 2909 |
| 2916 #endif // V8_X87_LITHIUM_X87_H_ | 2910 #endif // V8_X87_LITHIUM_X87_H_ |
| OLD | NEW |