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

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

Issue 2281863002: [compiler] Remove default argument for code flags. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « test/cctest/compiler/test-multiple-return.cc ('k') | test/cctest/test-field-type-tracking.cc » ('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 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 explicit Int32Signature(int param_count) 235 explicit Int32Signature(int param_count)
236 : MachineSignature(1, param_count, kIntTypes) { 236 : MachineSignature(1, param_count, kIntTypes) {
237 CHECK(param_count <= kMaxParamCount); 237 CHECK(param_count <= kMaxParamCount);
238 } 238 }
239 }; 239 };
240 240
241 241
242 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, 242 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph,
243 Schedule* schedule = nullptr) { 243 Schedule* schedule = nullptr) {
244 Isolate* isolate = CcTest::InitIsolateOnce(); 244 Isolate* isolate = CcTest::InitIsolateOnce();
245 CompilationInfo info(ArrayVector("testing"), isolate, graph->zone()); 245 CompilationInfo info(ArrayVector("testing"), isolate, graph->zone(),
246 Code::ComputeFlags(Code::STUB));
246 Handle<Code> code = 247 Handle<Code> code =
247 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule); 248 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule);
248 CHECK(!code.is_null()); 249 CHECK(!code.is_null());
249 #ifdef ENABLE_DISASSEMBLER 250 #ifdef ENABLE_DISASSEMBLER
250 if (FLAG_print_opt_code) { 251 if (FLAG_print_opt_code) {
251 OFStream os(stdout); 252 OFStream os(stdout);
252 code->Disassemble(name, os); 253 code->Disassemble(name, os);
253 } 254 }
254 #endif 255 #endif
255 return code; 256 return code;
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 TestStackSlot(MachineType::Float32(), magic); 1192 TestStackSlot(MachineType::Float32(), magic);
1192 } 1193 }
1193 1194
1194 TEST(RunStackSlotFloat64) { 1195 TEST(RunStackSlotFloat64) {
1195 double magic = 3456.375; 1196 double magic = 3456.375;
1196 TestStackSlot(MachineType::Float64(), magic); 1197 TestStackSlot(MachineType::Float64(), magic);
1197 } 1198 }
1198 } // namespace compiler 1199 } // namespace compiler
1199 } // namespace internal 1200 } // namespace internal
1200 } // namespace v8 1201 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-multiple-return.cc ('k') | test/cctest/test-field-type-tracking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698