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

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

Issue 688323005: build fix after 25072 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | 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 void GenerateCodeFromSchedule(Schedule* schedule) { 61 void GenerateCodeFromSchedule(Schedule* schedule) {
62 OFStream os(stdout); 62 OFStream os(stdout);
63 if (FLAG_trace_turbo) { 63 if (FLAG_trace_turbo) {
64 os << *schedule; 64 os << *schedule;
65 } 65 }
66 66
67 // Initialize the codegen and generate code. 67 // Initialize the codegen and generate code.
68 Linkage* linkage = new (scope_->main_zone()) Linkage(info.zone(), &info); 68 Linkage* linkage = new (scope_->main_zone()) Linkage(info.zone(), &info);
69 InstructionBlocks* instruction_blocks = 69 InstructionBlocks* instruction_blocks =
70 TestInstrSeq::InstructionBlocksFor(scope_->main_zone(), schedule); 70 TestInstrSeq::InstructionBlocksFor(scope_->main_zone(), schedule);
71 code = new TestInstrSeq::InstructionSequence(scope_->main_zone(), 71 code = new TestInstrSeq(scope_->main_zone(), instruction_blocks);
72 instruction_blocks);
73 SourcePositionTable source_positions(graph); 72 SourcePositionTable source_positions(graph);
74 InstructionSelector selector(scope_->main_zone(), graph, linkage, code, 73 InstructionSelector selector(scope_->main_zone(), graph, linkage, code,
75 schedule, &source_positions); 74 schedule, &source_positions);
76 selector.SelectInstructions(); 75 selector.SelectInstructions();
77 76
78 if (FLAG_trace_turbo) { 77 if (FLAG_trace_turbo) {
79 os << "----- Instruction sequence before register allocation -----\n" 78 os << "----- Instruction sequence before register allocation -----\n"
80 << *code; 79 << *code;
81 } 80 }
82 81
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 Handle<Object> result; 311 Handle<Object> result;
313 bool has_pending_exception = 312 bool has_pending_exception =
314 !Execution::Call(isolate, t.function, 313 !Execution::Call(isolate, t.function,
315 isolate->factory()->undefined_value(), 0, NULL, 314 isolate->factory()->undefined_value(), 0, NULL,
316 false).ToHandle(&result); 315 false).ToHandle(&result);
317 CHECK(!has_pending_exception); 316 CHECK(!has_pending_exception);
318 CHECK(result->SameValue(Smi::FromInt(42))); 317 CHECK(result->SameValue(Smi::FromInt(42)));
319 } 318 }
320 319
321 #endif 320 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698