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

Side by Side Diff: test/cctest/compiler/test-run-native-calls.cc

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/assembler.h" 5 #include "src/assembler.h"
6 #include "src/codegen.h" 6 #include "src/codegen.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/raw-machine-assembler.h" 8 #include "src/compiler/raw-machine-assembler.h"
9 #include "src/machine-type.h" 9 #include "src/machine-type.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 explicit Int32Signature(int param_count) 248 explicit Int32Signature(int param_count)
249 : MachineSignature(1, param_count, kIntTypes) { 249 : MachineSignature(1, param_count, kIntTypes) {
250 CHECK(param_count <= kMaxParamCount); 250 CHECK(param_count <= kMaxParamCount);
251 } 251 }
252 }; 252 };
253 253
254 254
255 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, 255 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph,
256 Schedule* schedule = nullptr) { 256 Schedule* schedule = nullptr) {
257 Isolate* isolate = CcTest::InitIsolateOnce(); 257 Isolate* isolate = CcTest::InitIsolateOnce();
258 CompilationInfo info("testing", isolate, graph->zone()); 258 CompilationInfo info(ArrayVector("testing"), isolate, graph->zone());
259 Handle<Code> code = 259 Handle<Code> code =
260 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule); 260 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule);
261 CHECK(!code.is_null()); 261 CHECK(!code.is_null());
262 #ifdef ENABLE_DISASSEMBLER 262 #ifdef ENABLE_DISASSEMBLER
263 if (FLAG_print_opt_code) { 263 if (FLAG_print_opt_code) {
264 OFStream os(stdout); 264 OFStream os(stdout);
265 code->Disassemble(name, os); 265 code->Disassemble(name, os);
266 } 266 }
267 #endif 267 #endif
268 return code; 268 return code;
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 TestStackSlot(MachineType::Float32(), magic); 1258 TestStackSlot(MachineType::Float32(), magic);
1259 } 1259 }
1260 1260
1261 TEST(RunStackSlotFloat64) { 1261 TEST(RunStackSlotFloat64) {
1262 double magic = 3456.375; 1262 double magic = 3456.375;
1263 TestStackSlot(MachineType::Float64(), magic); 1263 TestStackSlot(MachineType::Float64(), magic);
1264 } 1264 }
1265 } // namespace compiler 1265 } // namespace compiler
1266 } // namespace internal 1266 } // namespace internal
1267 } // namespace v8 1267 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698