| 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_CCTEST_COMPILER_CALL_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_CALL_TESTER_H_ |
| 6 #define V8_CCTEST_COMPILER_CALL_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_CALL_TESTER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/simulator.h" | 10 #include "src/simulator.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 return MachineOperatorBuilder::pointer_rep(); | 99 return MachineOperatorBuilder::pointer_rep(); |
| 100 } | 100 } |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 template <> | 103 template <> |
| 104 struct ReturnValueTraits<double> { | 104 struct ReturnValueTraits<double> { |
| 105 static double Cast(uintptr_t r) { | 105 static double Cast(uintptr_t r) { |
| 106 UNREACHABLE(); | 106 UNREACHABLE(); |
| 107 return 0.0; | 107 return 0.0; |
| 108 } | 108 } |
| 109 static MachineRepresentation Representation() { return kMachineFloat64; } |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 | 112 |
| 112 template <typename R> | 113 template <typename R> |
| 113 struct ParameterTraits { | 114 struct ParameterTraits { |
| 114 static uintptr_t Cast(R r) { return static_cast<uintptr_t>(r); } | 115 static uintptr_t Cast(R r) { return static_cast<uintptr_t>(r); } |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 template <> | 118 template <> |
| 118 struct ParameterTraits<int*> { | 119 struct ParameterTraits<int*> { |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 383 |
| 383 private: | 384 private: |
| 384 CallHelper* helper() { return static_cast<C*>(this); } | 385 CallHelper* helper() { return static_cast<C*>(this); } |
| 385 }; | 386 }; |
| 386 | 387 |
| 387 } // namespace compiler | 388 } // namespace compiler |
| 388 } // namespace internal | 389 } // namespace internal |
| 389 } // namespace v8 | 390 } // namespace v8 |
| 390 | 391 |
| 391 #endif // V8_CCTEST_COMPILER_CALL_TESTER_H_ | 392 #endif // V8_CCTEST_COMPILER_CALL_TESTER_H_ |
| OLD | NEW |