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

Side by Side Diff: test/cctest/compiler/test-codegen-deopt.cc

Issue 669613002: [turbofan] remove schedule from 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/schedule.cc ('k') | test/cctest/compiler/test-instruction.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
7 7
8 #include "src/compiler/code-generator.h" 8 #include "src/compiler/code-generator.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 OFStream os(stdout); 61 OFStream os(stdout);
62 if (FLAG_trace_turbo) { 62 if (FLAG_trace_turbo) {
63 os << *schedule; 63 os << *schedule;
64 } 64 }
65 65
66 // Initialize the codegen and generate code. 66 // Initialize the codegen and generate code.
67 Linkage* linkage = new (scope_->main_zone()) Linkage(&info); 67 Linkage* linkage = new (scope_->main_zone()) Linkage(&info);
68 code = new v8::internal::compiler::InstructionSequence(linkage, graph, 68 code = new v8::internal::compiler::InstructionSequence(linkage, graph,
69 schedule); 69 schedule);
70 SourcePositionTable source_positions(graph); 70 SourcePositionTable source_positions(graph);
71 InstructionSelector selector(code, &source_positions); 71 InstructionSelector selector(code, schedule, &source_positions);
72 selector.SelectInstructions(); 72 selector.SelectInstructions();
73 73
74 if (FLAG_trace_turbo) { 74 if (FLAG_trace_turbo) {
75 os << "----- Instruction sequence before register allocation -----\n" 75 os << "----- Instruction sequence before register allocation -----\n"
76 << *code; 76 << *code;
77 } 77 }
78 78
79 RegisterAllocator allocator(code); 79 RegisterAllocator allocator(code);
80 CHECK(allocator.Allocate()); 80 CHECK(allocator.Allocate());
81 81
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 Handle<Object> result; 306 Handle<Object> result;
307 bool has_pending_exception = 307 bool has_pending_exception =
308 !Execution::Call(isolate, t.function, 308 !Execution::Call(isolate, t.function,
309 isolate->factory()->undefined_value(), 0, NULL, 309 isolate->factory()->undefined_value(), 0, NULL,
310 false).ToHandle(&result); 310 false).ToHandle(&result);
311 CHECK(!has_pending_exception); 311 CHECK(!has_pending_exception);
312 CHECK(result->SameValue(Smi::FromInt(42))); 312 CHECK(result->SameValue(Smi::FromInt(42)));
313 } 313 }
314 314
315 #endif 315 #endif
OLDNEW
« no previous file with comments | « src/compiler/schedule.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698