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

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

Issue 581673002: Revert "Add handling for argument adaptor frames to inlining." (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
« no previous file with comments | « test/cctest/cctest.status ('k') | test/cctest/compiler/test-js-typed-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/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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Unique<Object> caller_context_constant = 141 Unique<Object> caller_context_constant =
142 Unique<Object>::CreateUninitialized(caller_context); 142 Unique<Object>::CreateUninitialized(caller_context);
143 Node* caller_context_node = 143 Node* caller_context_node =
144 m.NewNode(common.HeapConstant(caller_context_constant)); 144 m.NewNode(common.HeapConstant(caller_context_constant));
145 145
146 bailout_id = GetCallBailoutId(); 146 bailout_id = GetCallBailoutId();
147 Node* parameters = m.NewNode(common.StateValues(1), m.UndefinedConstant()); 147 Node* parameters = m.NewNode(common.StateValues(1), m.UndefinedConstant());
148 Node* locals = m.NewNode(common.StateValues(0)); 148 Node* locals = m.NewNode(common.StateValues(0));
149 Node* stack = m.NewNode(common.StateValues(0)); 149 Node* stack = m.NewNode(common.StateValues(0));
150 150
151 Node* state_node = m.NewNode( 151 Node* state_node =
152 common.FrameState(JS_FRAME, bailout_id, kIgnoreOutput), parameters, 152 m.NewNode(common.FrameState(bailout_id, kIgnoreOutput), parameters,
153 locals, stack, caller_context_node, m.UndefinedConstant()); 153 locals, stack, caller_context_node, m.UndefinedConstant());
154 154
155 Handle<Context> context(deopt_function->context(), CcTest::i_isolate()); 155 Handle<Context> context(deopt_function->context(), CcTest::i_isolate());
156 Unique<Object> context_constant = 156 Unique<Object> context_constant =
157 Unique<Object>::CreateUninitialized(context); 157 Unique<Object>::CreateUninitialized(context);
158 Node* context_node = m.NewNode(common.HeapConstant(context_constant)); 158 Node* context_node = m.NewNode(common.HeapConstant(context_constant));
159 159
160 m.CallJS0(deopt_fun_node, m.UndefinedConstant(), context_node, state_node); 160 m.CallJS0(deopt_fun_node, m.UndefinedConstant(), context_node, state_node);
161 161
162 m.Return(m.UndefinedConstant()); 162 m.Return(m.UndefinedConstant());
163 163
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 Handle<Context> context(function->context(), CcTest::i_isolate()); 255 Handle<Context> context(function->context(), CcTest::i_isolate());
256 Unique<Object> context_constant = 256 Unique<Object> context_constant =
257 Unique<Object>::CreateUninitialized(context); 257 Unique<Object>::CreateUninitialized(context);
258 Node* context_node = m.NewNode(common.HeapConstant(context_constant)); 258 Node* context_node = m.NewNode(common.HeapConstant(context_constant));
259 259
260 bailout_id = GetCallBailoutId(); 260 bailout_id = GetCallBailoutId();
261 Node* parameters = m.NewNode(common.StateValues(1), m.UndefinedConstant()); 261 Node* parameters = m.NewNode(common.StateValues(1), m.UndefinedConstant());
262 Node* locals = m.NewNode(common.StateValues(0)); 262 Node* locals = m.NewNode(common.StateValues(0));
263 Node* stack = m.NewNode(common.StateValues(0)); 263 Node* stack = m.NewNode(common.StateValues(0));
264 264
265 Node* state_node = m.NewNode( 265 Node* state_node =
266 common.FrameState(JS_FRAME, bailout_id, kIgnoreOutput), parameters, 266 m.NewNode(common.FrameState(bailout_id, kIgnoreOutput), parameters,
267 locals, stack, context_node, m.UndefinedConstant()); 267 locals, stack, context_node, m.UndefinedConstant());
268 268
269 m.CallRuntime1(Runtime::kDeoptimizeFunction, this_fun_node, context_node, 269 m.CallRuntime1(Runtime::kDeoptimizeFunction, this_fun_node, context_node,
270 state_node); 270 state_node);
271 271
272 m.Return(m.UndefinedConstant()); 272 m.Return(m.UndefinedConstant());
273 273
274 // Schedule the graph: 274 // Schedule the graph:
275 Schedule* schedule = m.Export(); 275 Schedule* schedule = m.Export();
276 276
277 return schedule; 277 return schedule;
(...skipping 30 matching lines...) Expand all
308 Handle<Object> result; 308 Handle<Object> result;
309 bool has_pending_exception = 309 bool has_pending_exception =
310 !Execution::Call(isolate, t.function, 310 !Execution::Call(isolate, t.function,
311 isolate->factory()->undefined_value(), 0, NULL, 311 isolate->factory()->undefined_value(), 0, NULL,
312 false).ToHandle(&result); 312 false).ToHandle(&result);
313 CHECK(!has_pending_exception); 313 CHECK(!has_pending_exception);
314 CHECK(result->SameValue(Smi::FromInt(42))); 314 CHECK(result->SameValue(Smi::FromInt(42)));
315 } 315 }
316 316
317 #endif 317 #endif
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698