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

Unified Diff: test/cctest/compiler/test-codegen-deopt.cc

Issue 664123002: [turbofan] cleanup InstructionSequence (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-codegen-deopt.cc
diff --git a/test/cctest/compiler/test-codegen-deopt.cc b/test/cctest/compiler/test-codegen-deopt.cc
index d68298612918cbd46a01360fbe53f9132e95264e..3b5a7379eb8e09eb32de5d1aa4e8a1a9ab7c17d1 100644
--- a/test/cctest/compiler/test-codegen-deopt.cc
+++ b/test/cctest/compiler/test-codegen-deopt.cc
@@ -65,10 +65,10 @@ class DeoptCodegenTester {
// Initialize the codegen and generate code.
Linkage* linkage = new (scope_->main_zone()) Linkage(&info);
- code = new v8::internal::compiler::InstructionSequence(
- scope_->main_zone(), linkage, graph, schedule);
+ code = new v8::internal::compiler::InstructionSequence(scope_->main_zone(),
+ graph, schedule);
SourcePositionTable source_positions(graph);
- InstructionSelector selector(code, schedule, &source_positions);
+ InstructionSelector selector(linkage, code, schedule, &source_positions);
selector.SelectInstructions();
if (FLAG_trace_turbo) {
@@ -76,7 +76,8 @@ class DeoptCodegenTester {
<< *code;
}
- RegisterAllocator allocator(code);
+ Frame frame;
+ RegisterAllocator allocator(&frame, &info, code);
CHECK(allocator.Allocate());
if (FLAG_trace_turbo) {
@@ -84,7 +85,7 @@ class DeoptCodegenTester {
<< *code;
}
- compiler::CodeGenerator generator(code);
+ compiler::CodeGenerator generator(&frame, linkage, code);
result_code = generator.GenerateCode();
#ifdef OBJECT_PRINT
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698