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

Side by Side Diff: src/compiler/ast-graph-builder.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 | « no previous file | src/compiler/code-generator.h » ('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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 218
219 219
220 Node* AstGraphBuilder::Environment::Checkpoint( 220 Node* AstGraphBuilder::Environment::Checkpoint(
221 BailoutId ast_id, OutputFrameStateCombine combine) { 221 BailoutId ast_id, OutputFrameStateCombine combine) {
222 UpdateStateValues(&parameters_node_, 0, parameters_count()); 222 UpdateStateValues(&parameters_node_, 0, parameters_count());
223 UpdateStateValues(&locals_node_, parameters_count(), locals_count()); 223 UpdateStateValues(&locals_node_, parameters_count(), locals_count());
224 UpdateStateValues(&stack_node_, parameters_count() + locals_count(), 224 UpdateStateValues(&stack_node_, parameters_count() + locals_count(),
225 stack_height()); 225 stack_height());
226 226
227 const Operator* op = common()->FrameState(JS_FRAME, ast_id, combine); 227 const Operator* op = common()->FrameState(ast_id, combine);
228 228
229 return graph()->NewNode(op, parameters_node_, locals_node_, stack_node_, 229 return graph()->NewNode(op, parameters_node_, locals_node_, stack_node_,
230 GetContext(), 230 GetContext(),
231 builder()->jsgraph()->UndefinedConstant()); 231 builder()->jsgraph()->UndefinedConstant());
232 } 232 }
233 233
234 234
235 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own, 235 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own,
236 Expression::Context kind) 236 Expression::Context kind)
237 : kind_(kind), owner_(own), outer_(own->ast_context()) { 237 : kind_(kind), owner_(own), outer_(own->ast_context()) {
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 UNREACHABLE(); 2013 UNREACHABLE();
2014 js_op = NULL; 2014 js_op = NULL;
2015 } 2015 }
2016 return NewNode(js_op, left, right); 2016 return NewNode(js_op, left, right);
2017 } 2017 }
2018 2018
2019 2019
2020 void AstGraphBuilder::PrepareFrameState(Node* node, BailoutId ast_id, 2020 void AstGraphBuilder::PrepareFrameState(Node* node, BailoutId ast_id,
2021 OutputFrameStateCombine combine) { 2021 OutputFrameStateCombine combine) {
2022 if (OperatorProperties::HasFrameStateInput(node->op())) { 2022 if (OperatorProperties::HasFrameStateInput(node->op())) {
2023 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == 2023 int frame_state_index = NodeProperties::GetFrameStateIndex(node);
2024 IrOpcode::kDead); 2024
2025 NodeProperties::ReplaceFrameStateInput( 2025 DCHECK(node->InputAt(frame_state_index)->op()->opcode() == IrOpcode::kDead);
2026 node, environment()->Checkpoint(ast_id, combine)); 2026
2027 Node* frame_state_node = environment()->Checkpoint(ast_id, combine);
2028 node->ReplaceInput(frame_state_index, frame_state_node);
2027 } 2029 }
2028 } 2030 }
2029 2031
2030 } 2032 }
2031 } 2033 }
2032 } // namespace v8::internal::compiler 2034 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698