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

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

Issue 1317113004: Reduce the number of entrypoints to the compiler pipeline by one. Always require caller to provide … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/instruction-selector.h" 10 #include "src/compiler/instruction-selector.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 void GenerateCode() { Generate(); } 53 void GenerateCode() { Generate(); }
54 54
55 protected: 55 protected:
56 virtual byte* Generate() { 56 virtual byte* Generate() {
57 if (code_.is_null()) { 57 if (code_.is_null()) {
58 Schedule* schedule = this->Export(); 58 Schedule* schedule = this->Export();
59 CallDescriptor* call_descriptor = this->call_descriptor(); 59 CallDescriptor* call_descriptor = this->call_descriptor();
60 Graph* graph = this->graph(); 60 Graph* graph = this->graph();
61 code_ = Pipeline::GenerateCodeForTesting(this->isolate(), call_descriptor, 61 CompilationInfo info("testing", main_isolate(), main_zone());
62 graph, schedule); 62 code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph,
63 schedule);
63 } 64 }
64 return this->code_.ToHandleChecked()->entry(); 65 return this->code_.ToHandleChecked()->entry();
65 } 66 }
66 67
67 private: 68 private:
68 MaybeHandle<Code> code_; 69 MaybeHandle<Code> code_;
69 }; 70 };
70 71
71 72
72 static const bool USE_RESULT_BUFFER = true; 73 static const bool USE_RESULT_BUFFER = true;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } else { 315 } else {
315 CHECK_EQ(x, y); 316 CHECK_EQ(x, y);
316 } 317 }
317 } 318 }
318 319
319 } // namespace compiler 320 } // namespace compiler
320 } // namespace internal 321 } // namespace internal
321 } // namespace v8 322 } // namespace v8
322 323
323 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 324 #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