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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 641373002: Introduce FeedbackVectorSlot type - better than int. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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 | « src/compiler/ast-graph-builder.h ('k') | src/compiler/js-generic-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/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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 compare_if.End(); 1704 compare_if.End();
1705 ast_context()->ReplaceValue(); 1705 ast_context()->ReplaceValue();
1706 } 1706 }
1707 1707
1708 1708
1709 StrictMode AstGraphBuilder::strict_mode() const { 1709 StrictMode AstGraphBuilder::strict_mode() const {
1710 return info()->strict_mode(); 1710 return info()->strict_mode();
1711 } 1711 }
1712 1712
1713 1713
1714 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(int slot) const { 1714 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
1715 FeedbackVectorSlot slot) const {
1715 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 1716 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot);
1716 } 1717 }
1717 1718
1718 1719
1719 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) { 1720 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) {
1720 DCHECK(environment()->stack_height() >= arity); 1721 DCHECK(environment()->stack_height() >= arity);
1721 Node** all = info()->zone()->NewArray<Node*>(arity); 1722 Node** all = info()->zone()->NewArray<Node*>(arity);
1722 for (int i = arity - 1; i >= 0; --i) { 1723 for (int i = arity - 1; i >= 0; --i) {
1723 all[i] = environment()->Pop(); 1724 all[i] = environment()->Pop();
1724 } 1725 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == 2111 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() ==
2111 IrOpcode::kDead); 2112 IrOpcode::kDead);
2112 NodeProperties::ReplaceFrameStateInput( 2113 NodeProperties::ReplaceFrameStateInput(
2113 node, environment()->Checkpoint(ast_id, combine)); 2114 node, environment()->Checkpoint(ast_id, combine));
2114 } 2115 }
2115 } 2116 }
2116 2117
2117 } 2118 }
2118 } 2119 }
2119 } // namespace v8::internal::compiler 2120 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698