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

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

Issue 2169813002: [interpreter] Add output register to ToName (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts
Patch Set: comments Created 4 years, 5 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/bytecodes.h ('k') | src/interpreter/interpreter.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 #include "src/interpreter/bytecodes.h" 5 #include "src/interpreter/bytecodes.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 case Bytecode::kWide: 498 case Bytecode::kWide:
499 case Bytecode::kDebugBreakWide: 499 case Bytecode::kDebugBreakWide:
500 return true; 500 return true;
501 default: 501 default:
502 return false; 502 return false;
503 } 503 }
504 } 504 }
505 505
506 // static 506 // static
507 bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) { 507 bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) {
508 return bytecode == Bytecode::kToName || bytecode == Bytecode::kTypeOf; 508 return bytecode == Bytecode::kTypeOf;
509 } 509 }
510 510
511 // static 511 // static
512 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { 512 bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) {
513 return bytecode == Bytecode::kReturn || IsJump(bytecode); 513 return bytecode == Bytecode::kReturn || IsJump(bytecode);
514 } 514 }
515 515
516 // static 516 // static
517 bool Bytecodes::IsMaybeRegisterOperandType(OperandType operand_type) { 517 bool Bytecodes::IsMaybeRegisterOperandType(OperandType operand_type) {
518 return operand_type == OperandType::kMaybeReg; 518 return operand_type == OperandType::kMaybeReg;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 return os << Bytecodes::OperandScaleToString(operand_scale); 674 return os << Bytecodes::OperandScaleToString(operand_scale);
675 } 675 }
676 676
677 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type) { 677 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type) {
678 return os << Bytecodes::OperandTypeToString(operand_type); 678 return os << Bytecodes::OperandTypeToString(operand_type);
679 } 679 }
680 680
681 } // namespace interpreter 681 } // namespace interpreter
682 } // namespace internal 682 } // namespace internal
683 } // namespace v8 683 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698