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

Side by Side Diff: test/cctest/compiler/test-scheduler.cc

Issue 470593002: Unify MachineType and RepType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « test/cctest/compiler/test-schedule.cc ('k') | test/cctest/compiler/test-simplified-lowering.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/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/generic-node-inl.h" 9 #include "src/compiler/generic-node-inl.h"
10 #include "src/compiler/generic-node.h" 10 #include "src/compiler/generic-node.h"
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 CHECK_EQ(62, GetScheduledNodeCount(schedule)); 1529 CHECK_EQ(62, GetScheduledNodeCount(schedule));
1530 } 1530 }
1531 1531
1532 1532
1533 TEST(BuildScheduleSimpleLoopWithCodeMotion) { 1533 TEST(BuildScheduleSimpleLoopWithCodeMotion) {
1534 HandleAndZoneScope scope; 1534 HandleAndZoneScope scope;
1535 Isolate* isolate = scope.main_isolate(); 1535 Isolate* isolate = scope.main_isolate();
1536 Graph graph(scope.main_zone()); 1536 Graph graph(scope.main_zone());
1537 CommonOperatorBuilder common_builder(scope.main_zone()); 1537 CommonOperatorBuilder common_builder(scope.main_zone());
1538 JSOperatorBuilder js_builder(scope.main_zone()); 1538 JSOperatorBuilder js_builder(scope.main_zone());
1539 MachineOperatorBuilder machine_builder(scope.main_zone(), kMachineWord32); 1539 MachineOperatorBuilder machine_builder(scope.main_zone());
1540 Operator* op; 1540 Operator* op;
1541 1541
1542 Handle<Object> object = 1542 Handle<Object> object =
1543 Handle<Object>(isolate->heap()->undefined_value(), isolate); 1543 Handle<Object>(isolate->heap()->undefined_value(), isolate);
1544 PrintableUnique<Object> unique_constant = 1544 PrintableUnique<Object> unique_constant =
1545 PrintableUnique<Object>::CreateUninitialized(scope.main_zone(), object); 1545 PrintableUnique<Object>::CreateUninitialized(scope.main_zone(), object);
1546 1546
1547 // Manually transcripted code for: 1547 // Manually transcripted code for:
1548 // function turbo_fan_test(a, b, c) { 1548 // function turbo_fan_test(a, b, c) {
1549 // while (a < b) { 1549 // while (a < b) {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 CHECK_EQ(deoptimization_node, deopt_block->control_input_); 1800 CHECK_EQ(deoptimization_node, deopt_block->control_input_);
1801 CHECK_EQ(5, static_cast<int>(deopt_block->nodes_.size())); 1801 CHECK_EQ(5, static_cast<int>(deopt_block->nodes_.size()));
1802 CHECK_EQ(lazy_deopt_node, deopt_block->nodes_[0]); 1802 CHECK_EQ(lazy_deopt_node, deopt_block->nodes_[0]);
1803 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[1]->op()->opcode()); 1803 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[1]->op()->opcode());
1804 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[2]->op()->opcode()); 1804 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[2]->op()->opcode());
1805 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[3]->op()->opcode()); 1805 CHECK_EQ(IrOpcode::kStateValues, deopt_block->nodes_[3]->op()->opcode());
1806 CHECK_EQ(state_node, deopt_block->nodes_[4]); 1806 CHECK_EQ(state_node, deopt_block->nodes_[4]);
1807 } 1807 }
1808 1808
1809 #endif 1809 #endif
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-schedule.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698