Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: test/cctest/compiler/call-tester.h

Issue 425003004: Implement representation selection as part of SimplifiedLowering. Representation selection also req… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | test/cctest/compiler/graph-builder-tester.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | test/cctest/compiler/graph-builder-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698