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

Side by Side Diff: test/cctest/compiler/test-js-typed-lowering.cc

Issue 562543002: Revert "Switch inlining to use simplified instead of machine loads.", "Fix size_t to int conversion… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-typed-lowering.h" 9 #include "src/compiler/js-typed-lowering.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Typer typer; 43 Typer typer;
44 Node* context_node; 44 Node* context_node;
45 45
46 Node* Parameter(Type* t, int32_t index = 0) { 46 Node* Parameter(Type* t, int32_t index = 0) {
47 Node* n = graph.NewNode(common.Parameter(index), graph.start()); 47 Node* n = graph.NewNode(common.Parameter(index), graph.start());
48 NodeProperties::SetBounds(n, Bounds(Type::None(), t)); 48 NodeProperties::SetBounds(n, Bounds(Type::None(), t));
49 return n; 49 return n;
50 } 50 }
51 51
52 Node* reduce(Node* node) { 52 Node* reduce(Node* node) {
53 JSGraph jsgraph(&graph, &common, &javascript, &typer, &machine); 53 JSGraph jsgraph(&graph, &common, &typer);
54 JSTypedLowering reducer(&jsgraph); 54 JSTypedLowering reducer(&jsgraph);
55 Reduction reduction = reducer.Reduce(node); 55 Reduction reduction = reducer.Reduce(node);
56 if (reduction.Changed()) return reduction.replacement(); 56 if (reduction.Changed()) return reduction.replacement();
57 return node; 57 return node;
58 } 58 }
59 59
60 Node* start() { return graph.start(); } 60 Node* start() { return graph.start(); }
61 61
62 Node* context() { 62 Node* context() {
63 if (context_node == NULL) { 63 if (context_node == NULL) {
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 CHECK_EQ(p1, r->InputAt(0)); 1343 CHECK_EQ(p1, r->InputAt(0));
1344 CHECK_EQ(p0, r->InputAt(1)); 1344 CHECK_EQ(p0, r->InputAt(1));
1345 } else { 1345 } else {
1346 CHECK_EQ(p0, r->InputAt(0)); 1346 CHECK_EQ(p0, r->InputAt(0));
1347 CHECK_EQ(p1, r->InputAt(1)); 1347 CHECK_EQ(p1, r->InputAt(1));
1348 } 1348 }
1349 } 1349 }
1350 } 1350 }
1351 } 1351 }
1352 } 1352 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-context-specialization.cc ('k') | test/cctest/compiler/test-machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698