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

Side by Side Diff: src/compiler/operator-properties-inl.h

Issue 642883003: [turbofan] Add support for deferred code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add cctest 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/instruction-selector.cc ('k') | src/compiler/schedule.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 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 switch (op->opcode()) { 116 switch (op->opcode()) {
117 case IrOpcode::kPhi: 117 case IrOpcode::kPhi:
118 case IrOpcode::kEffectPhi: 118 case IrOpcode::kEffectPhi:
119 case IrOpcode::kLoad: 119 case IrOpcode::kLoad:
120 case IrOpcode::kLoadElement: 120 case IrOpcode::kLoadElement:
121 case IrOpcode::kLoadField: 121 case IrOpcode::kLoadField:
122 return 1; 122 return 1;
123 #define OPCODE_CASE(x) case IrOpcode::k##x: 123 #define OPCODE_CASE(x) case IrOpcode::k##x:
124 CONTROL_OP_LIST(OPCODE_CASE) 124 CONTROL_OP_LIST(OPCODE_CASE)
125 #undef OPCODE_CASE 125 #undef OPCODE_CASE
126 // Branch operator is special
127 if (op->opcode() == IrOpcode::kBranch) return 1;
126 // Control operators are Operator1<int>. 128 // Control operators are Operator1<int>.
127 return OpParameter<int>(op); 129 return OpParameter<int>(op);
128 default: 130 default:
129 // Operators that have write effects must have a control 131 // Operators that have write effects must have a control
130 // dependency. Effect dependencies only ensure the correct order of 132 // dependency. Effect dependencies only ensure the correct order of
131 // write/read operations without consideration of control flow. Without an 133 // write/read operations without consideration of control flow. Without an
132 // explicit control dependency writes can be float in the schedule too 134 // explicit control dependency writes can be float in the schedule too
133 // early along a path that shouldn't generate a side-effect. 135 // early along a path that shouldn't generate a side-effect.
134 return op->HasProperty(Operator::kNoWrite) ? 0 : 1; 136 return op->HasProperty(Operator::kNoWrite) ? 0 : 1;
135 } 137 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 183 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
182 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 184 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
183 opcode == IrOpcode::kIfFalse; 185 opcode == IrOpcode::kIfFalse;
184 } 186 }
185 187
186 } // namespace compiler 188 } // namespace compiler
187 } // namespace internal 189 } // namespace internal
188 } // namespace v8 190 } // namespace v8
189 191
190 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 192 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/schedule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698