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

Side by Side Diff: src/compiler/opcodes.h

Issue 816053002: [turbofan] First version of loop peeling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/osr.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_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 // Opcodes for control operators. 8 // Opcodes for control operators.
9 #define INNER_CONTROL_OP_LIST(V) \ 9 #define INNER_CONTROL_OP_LIST(V) \
10 V(Dead) \ 10 V(Dead) \
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 // Returns true if opcode for JavaScript operator. 288 // Returns true if opcode for JavaScript operator.
289 static bool IsJsOpcode(Value value) { 289 static bool IsJsOpcode(Value value) {
290 return kJSEqual <= value && value <= kJSDebugger; 290 return kJSEqual <= value && value <= kJSDebugger;
291 } 291 }
292 292
293 // Returns true if opcode for constant operator. 293 // Returns true if opcode for constant operator.
294 static bool IsConstantOpcode(Value value) { 294 static bool IsConstantOpcode(Value value) {
295 return kInt32Constant <= value && value <= kHeapConstant; 295 return kInt32Constant <= value && value <= kHeapConstant;
296 } 296 }
297
298 static bool IsPhiOpcode(Value val) {
299 return val == kPhi || val == kEffectPhi;
300 }
297 }; 301 };
298 302
299 } // namespace compiler 303 } // namespace compiler
300 } // namespace internal 304 } // namespace internal
301 } // namespace v8 305 } // namespace v8
302 306
303 #endif // V8_COMPILER_OPCODES_H_ 307 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/osr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698