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

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

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 | « src/compiler/pipeline.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_CODEGEN_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/instruction-selector.h" 9 #include "src/compiler/instruction-selector.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 Generate(); 60 Generate();
61 return code_.ToHandleChecked(); 61 return code_.ToHandleChecked();
62 } 62 }
63 63
64 protected: 64 protected:
65 virtual byte* Generate() { 65 virtual byte* Generate() {
66 if (code_.is_null()) { 66 if (code_.is_null()) {
67 Schedule* schedule = this->Export(); 67 Schedule* schedule = this->Export();
68 CallDescriptor* call_descriptor = this->call_descriptor(); 68 CallDescriptor* call_descriptor = this->call_descriptor();
69 Graph* graph = this->graph(); 69 Graph* graph = this->graph();
70 CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone()); 70 CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone(),
71 Code::ComputeFlags(Code::STUB));
71 code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph, 72 code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph,
72 schedule); 73 schedule);
73 } 74 }
74 return this->code_.ToHandleChecked()->entry(); 75 return this->code_.ToHandleChecked()->entry();
75 } 76 }
76 77
77 private: 78 private:
78 MaybeHandle<Code> code_; 79 MaybeHandle<Code> code_;
79 }; 80 };
80 81
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 541
541 void Run(RawMachineAssemblerTester<int32_t>* m); 542 void Run(RawMachineAssemblerTester<int32_t>* m);
542 void RunLeft(RawMachineAssemblerTester<int32_t>* m); 543 void RunLeft(RawMachineAssemblerTester<int32_t>* m);
543 void RunRight(RawMachineAssemblerTester<int32_t>* m); 544 void RunRight(RawMachineAssemblerTester<int32_t>* m);
544 }; 545 };
545 } // namespace compiler 546 } // namespace compiler
546 } // namespace internal 547 } // namespace internal
547 } // namespace v8 548 } // namespace v8
548 549
549 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 550 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/cctest/compiler/graph-builder-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698