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

Side by Side Diff: test/cctest/test-code-stubs-a64.cc

Issue 169793002: build fix for 19415 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Rrdistribution and use in source and binary forms, with or without 2 // Rrdistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Rrdistributions of source code must retain the above copyright 6 // * Rrdistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Rrdistributions in binary form must reproduce the above 8 // * Rrdistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 131
132 static Isolate* GetIsolateFrom(LocalContext* context) { 132 static Isolate* GetIsolateFrom(LocalContext* context) {
133 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); 133 return reinterpret_cast<Isolate*>((*context)->GetIsolate());
134 } 134 }
135 135
136 136
137 int32_t RunGeneratedCodeCallWrapper(ConvertDToIFunc func, 137 int32_t RunGeneratedCodeCallWrapper(ConvertDToIFunc func,
138 double from) { 138 double from) {
139 #ifdef USE_SIMULATOR 139 #ifdef USE_SIMULATOR
140 Simulator::CallArgument args[] = {
141 Simulator::CallArgument(from),
142 Simulator::CallArgument::End()
143 };
140 return Simulator::current(Isolate::Current())->CallInt64( 144 return Simulator::current(Isolate::Current())->CallInt64(
141 FUNCTION_ADDR(func), Simulator::CallArgument(from), 145 FUNCTION_ADDR(func), args);
142 Simulator::CallArgument::End());
143 #else 146 #else
144 return (*func)(from); 147 return (*func)(from);
145 #endif 148 #endif
146 } 149 }
147 150
148 151
149 TEST(ConvertDToI) { 152 TEST(ConvertDToI) {
150 CcTest::InitializeVM(); 153 CcTest::InitializeVM();
151 LocalContext context; 154 LocalContext context;
152 Isolate* isolate = GetIsolateFrom(&context); 155 Isolate* isolate = GetIsolateFrom(&context);
(...skipping 23 matching lines...) Expand all
176 false)); 179 false));
177 RunAllTruncationTests( 180 RunAllTruncationTests(
178 RunGeneratedCodeCallWrapper, 181 RunGeneratedCodeCallWrapper,
179 MakeConvertDToIFuncTrampoline(isolate, 182 MakeConvertDToIFuncTrampoline(isolate,
180 source_registers[s], 183 source_registers[s],
181 dest_registers[d], 184 dest_registers[d],
182 true)); 185 true));
183 } 186 }
184 } 187 }
185 } 188 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698