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

Side by Side Diff: src/compiler/node.cc

Issue 492203002: Initial support for debugger frame state in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Another attempt to fix Win64 Created 6 years, 4 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/node.h ('k') | src/compiler/node-properties.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/node.h" 5 #include "src/compiler/node.h"
6 6
7 #include "src/compiler/generic-node-inl.h" 7 #include "src/compiler/generic-node-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 namespace compiler { 11 namespace compiler {
12 12
13 void Node::CollectProjections(int projection_count, Node** projections) { 13 void Node::CollectProjections(NodeVector* projections) {
titzer 2014/08/25 11:00:06 Why did you change this? It now relies on the use
14 for (int i = 0; i < projection_count; ++i) projections[i] = NULL;
15 for (UseIter i = uses().begin(); i != uses().end(); ++i) { 14 for (UseIter i = uses().begin(); i != uses().end(); ++i) {
16 if ((*i)->opcode() != IrOpcode::kProjection) continue; 15 if ((*i)->opcode() != IrOpcode::kProjection) continue;
17 int32_t index = OpParameter<int32_t>(*i); 16 DCHECK_GE(OpParameter<int32_t>(*i), 0);
18 DCHECK_GE(index, 0); 17 projections->push_back(*i);
19 DCHECK_LT(index, projection_count);
20 DCHECK_EQ(NULL, projections[index]);
21 projections[index] = *i;
22 } 18 }
23 } 19 }
24 20
25 21
26 Node* Node::FindProjection(int32_t projection_index) { 22 Node* Node::FindProjection(int32_t projection_index) {
27 for (UseIter i = uses().begin(); i != uses().end(); ++i) { 23 for (UseIter i = uses().begin(); i != uses().end(); ++i) {
28 if ((*i)->opcode() == IrOpcode::kProjection && 24 if ((*i)->opcode() == IrOpcode::kProjection &&
29 OpParameter<int32_t>(*i) == projection_index) { 25 OpParameter<int32_t>(*i) == projection_index) {
30 return *i; 26 return *i;
31 } 27 }
(...skipping 14 matching lines...) Expand all
46 os << n.InputAt(i)->id(); 42 os << n.InputAt(i)->id();
47 } 43 }
48 os << ")"; 44 os << ")";
49 } 45 }
50 return os; 46 return os;
51 } 47 }
52 48
53 } // namespace compiler 49 } // namespace compiler
54 } // namespace internal 50 } // namespace internal
55 } // namespace v8 51 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/node-properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698