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

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

Issue 595863002: Adding more missing deoptimization points in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase 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 | « test/cctest/compiler/test-codegen-deopt.cc ('k') | test/mjsunit/big-array-literal.js » ('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/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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 Unique<Object> unique = Unique<Object>::CreateUninitialized(constant); 58 Unique<Object> unique = Unique<Object>::CreateUninitialized(constant);
59 return graph.NewNode(common.HeapConstant(unique)); 59 return graph.NewNode(common.HeapConstant(unique));
60 } 60 }
61 61
62 Node* EmptyFrameState(Node* context) { 62 Node* EmptyFrameState(Node* context) {
63 Node* parameters = graph.NewNode(common.StateValues(0)); 63 Node* parameters = graph.NewNode(common.StateValues(0));
64 Node* locals = graph.NewNode(common.StateValues(0)); 64 Node* locals = graph.NewNode(common.StateValues(0));
65 Node* stack = graph.NewNode(common.StateValues(0)); 65 Node* stack = graph.NewNode(common.StateValues(0));
66 66
67 Node* state_node = 67 Node* state_node =
68 graph.NewNode(common.FrameState(JS_FRAME, BailoutId(0), kIgnoreOutput), 68 graph.NewNode(common.FrameState(JS_FRAME, BailoutId(0),
69 OutputFrameStateCombine::Ignore()),
69 parameters, locals, stack, context, UndefinedConstant()); 70 parameters, locals, stack, context, UndefinedConstant());
70 71
71 return state_node; 72 return state_node;
72 } 73 }
73 74
74 Node* reduce(Node* node) { 75 Node* reduce(Node* node) {
75 JSGraph jsgraph(&graph, &common, &javascript, &typer, &machine); 76 JSGraph jsgraph(&graph, &common, &javascript, &typer, &machine);
76 JSTypedLowering reducer(&jsgraph); 77 JSTypedLowering reducer(&jsgraph);
77 Reduction reduction = reducer.Reduce(node); 78 Reduction reduction = reducer.Reduce(node);
78 if (reduction.Changed()) return reduction.replacement(); 79 if (reduction.Changed()) return reduction.replacement();
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 CHECK_EQ(p1, r->InputAt(0)); 1377 CHECK_EQ(p1, r->InputAt(0));
1377 CHECK_EQ(p0, r->InputAt(1)); 1378 CHECK_EQ(p0, r->InputAt(1));
1378 } else { 1379 } else {
1379 CHECK_EQ(p0, r->InputAt(0)); 1380 CHECK_EQ(p0, r->InputAt(0));
1380 CHECK_EQ(p1, r->InputAt(1)); 1381 CHECK_EQ(p1, r->InputAt(1));
1381 } 1382 }
1382 } 1383 }
1383 } 1384 }
1384 } 1385 }
1385 } 1386 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-codegen-deopt.cc ('k') | test/mjsunit/big-array-literal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698