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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 | 1343 |
1344 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } | 1344 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } |
1345 }; | 1345 }; |
1346 | 1346 |
1347 | 1347 |
1348 class LConstantD FINAL : public LTemplateInstruction<1, 0, 1> { | 1348 class LConstantD FINAL : public LTemplateInstruction<1, 0, 1> { |
1349 public: | 1349 public: |
1350 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") | 1350 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") |
1351 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1351 DECLARE_HYDROGEN_ACCESSOR(Constant) |
1352 | 1352 |
1353 double value() const { return hydrogen()->DoubleValue(); } | 1353 uint64_t bits() const { return hydrogen()->DoubleValueAsBits(); } |
1354 }; | 1354 }; |
1355 | 1355 |
1356 | 1356 |
1357 class LConstantE FINAL : public LTemplateInstruction<1, 0, 0> { | 1357 class LConstantE FINAL : public LTemplateInstruction<1, 0, 0> { |
1358 public: | 1358 public: |
1359 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e") | 1359 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e") |
1360 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1360 DECLARE_HYDROGEN_ACCESSOR(Constant) |
1361 | 1361 |
1362 ExternalReference value() const { | 1362 ExternalReference value() const { |
1363 return hydrogen()->ExternalReferenceValue(); | 1363 return hydrogen()->ExternalReferenceValue(); |
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2884 | 2884 |
2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2886 }; | 2886 }; |
2887 | 2887 |
2888 #undef DECLARE_HYDROGEN_ACCESSOR | 2888 #undef DECLARE_HYDROGEN_ACCESSOR |
2889 #undef DECLARE_CONCRETE_INSTRUCTION | 2889 #undef DECLARE_CONCRETE_INSTRUCTION |
2890 | 2890 |
2891 } } // namespace v8::internal | 2891 } } // namespace v8::internal |
2892 | 2892 |
2893 #endif // V8_X87_LITHIUM_X87_H_ | 2893 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |