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

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

Issue 1640213002: [Interpreter] Add option to trace bytecode execution. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments 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
« no previous file with comments | « src/interpreter/bytecode-array-iterator.cc ('k') | src/interpreter/bytecodes.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 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 uint16_t ToWideOperand() const; 337 uint16_t ToWideOperand() const;
338 338
339 static Register FromRawOperand(uint32_t raw_operand); 339 static Register FromRawOperand(uint32_t raw_operand);
340 uint32_t ToRawOperand() const; 340 uint32_t ToRawOperand() const;
341 341
342 static bool AreContiguous(Register reg1, Register reg2, 342 static bool AreContiguous(Register reg1, Register reg2,
343 Register reg3 = Register(), 343 Register reg3 = Register(),
344 Register reg4 = Register(), 344 Register reg4 = Register(),
345 Register reg5 = Register()); 345 Register reg5 = Register());
346 346
347 std::string ToString(int parameter_count);
348
347 bool operator==(const Register& other) const { 349 bool operator==(const Register& other) const {
348 return index() == other.index(); 350 return index() == other.index();
349 } 351 }
350 bool operator!=(const Register& other) const { 352 bool operator!=(const Register& other) const {
351 return index() != other.index(); 353 return index() != other.index();
352 } 354 }
353 bool operator<(const Register& other) const { 355 bool operator<(const Register& other) const {
354 return index() < other.index(); 356 return index() < other.index();
355 } 357 }
356 bool operator<=(const Register& other) const { 358 bool operator<=(const Register& other) const {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 472
471 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 473 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
472 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 474 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
473 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 475 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
474 476
475 } // namespace interpreter 477 } // namespace interpreter
476 } // namespace internal 478 } // namespace internal
477 } // namespace v8 479 } // namespace v8
478 480
479 #endif // V8_INTERPRETER_BYTECODES_H_ 481 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-iterator.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698