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

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

Issue 1147973002: [turbofan] Add streaming operator for opcodes to ease debugging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | src/compiler/opcodes.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 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 #include <iosfwd>
9
8 // Opcodes for control operators. 10 // Opcodes for control operators.
9 #define CONTROL_OP_LIST(V) \ 11 #define CONTROL_OP_LIST(V) \
10 V(Start) \ 12 V(Start) \
11 V(Dead) \ 13 V(Dead) \
12 V(Loop) \ 14 V(Loop) \
13 V(Branch) \ 15 V(Branch) \
14 V(Switch) \ 16 V(Switch) \
15 V(IfTrue) \ 17 V(IfTrue) \
16 V(IfFalse) \ 18 V(IfFalse) \
17 V(IfSuccess) \ 19 V(IfSuccess) \
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 343 }
342 344
343 // Returns true if opcode for comparison operator. 345 // Returns true if opcode for comparison operator.
344 static bool IsComparisonOpcode(Value value) { 346 static bool IsComparisonOpcode(Value value) {
345 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || 347 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
346 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || 348 (kNumberEqual <= value && value <= kStringLessThanOrEqual) ||
347 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); 349 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual);
348 } 350 }
349 }; 351 };
350 352
353 std::ostream& operator<<(std::ostream&, IrOpcode::Value);
354
351 } // namespace compiler 355 } // namespace compiler
352 } // namespace internal 356 } // namespace internal
353 } // namespace v8 357 } // namespace v8
354 358
355 #endif // V8_COMPILER_OPCODES_H_ 359 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/opcodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698