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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 1723223002: [Interpreter] Textual representation for runtime function IDs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // Returns true if the bytecode is a jump or conditional jump taking 471 // Returns true if the bytecode is a jump or conditional jump taking
472 // any kind of operand. 472 // any kind of operand.
473 static bool IsJump(Bytecode bytecode); 473 static bool IsJump(Bytecode bytecode);
474 474
475 // Returns true if the bytecode is a conditional jump, a jump, or a return. 475 // Returns true if the bytecode is a conditional jump, a jump, or a return.
476 static bool IsJumpOrReturn(Bytecode bytecode); 476 static bool IsJumpOrReturn(Bytecode bytecode);
477 477
478 // Returns true if the bytecode is a call or a constructor call. 478 // Returns true if the bytecode is a call or a constructor call.
479 static bool IsCallOrNew(Bytecode bytecode); 479 static bool IsCallOrNew(Bytecode bytecode);
480 480
481 // Returns true if the bytecode is a call to runtime.
oth 2016/02/23 17:37:15 s/to runtime/to the runtime/
Stefano Sanfilippo 2016/02/23 17:43:50 Done.
482 static bool IsCallRuntime(Bytecode bytecode);
483
481 // Returns true if the bytecode is a debug break. 484 // Returns true if the bytecode is a debug break.
482 static bool IsDebugBreak(Bytecode bytecode); 485 static bool IsDebugBreak(Bytecode bytecode);
483 486
484 // Returns true if |operand_type| is a register index operand (kIdx8/kIdx16). 487 // Returns true if |operand_type| is a register index operand (kIdx8/kIdx16).
485 static bool IsIndexOperandType(OperandType operand_type); 488 static bool IsIndexOperandType(OperandType operand_type);
486 489
487 // Returns true if |operand_type| represents an immediate. 490 // Returns true if |operand_type| represents an immediate.
488 static bool IsImmediateOperandType(OperandType operand_type); 491 static bool IsImmediateOperandType(OperandType operand_type);
489 492
490 // Returns true if |operand_type| is a register count operand 493 // Returns true if |operand_type| is a register count operand
(...skipping 23 matching lines...) Expand all
514 517
515 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 518 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
516 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 519 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
517 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 520 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
518 521
519 } // namespace interpreter 522 } // namespace interpreter
520 } // namespace internal 523 } // namespace internal
521 } // namespace v8 524 } // namespace v8
522 525
523 #endif // V8_INTERPRETER_BYTECODES_H_ 526 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecodes.cc » ('j') | test/cctest/interpreter/bytecode-expectations-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698