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

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

Issue 2084623002: Reland: [Interpreter] Map runtime id's to intrinsic id's in InvokeIntrinsic bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reland Created 4 years, 6 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/frames.h" 10 #include "src/frames.h"
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 const uint8_t* operand_start = 730 const uint8_t* operand_start =
731 &bytecode_start[prefix_offset + 731 &bytecode_start[prefix_offset +
732 GetOperandOffset(bytecode, i, operand_scale)]; 732 GetOperandOffset(bytecode, i, operand_scale)];
733 switch (op_type) { 733 switch (op_type) {
734 case interpreter::OperandType::kRegCount: 734 case interpreter::OperandType::kRegCount:
735 os << "#" 735 os << "#"
736 << DecodeUnsignedOperand(operand_start, op_type, operand_scale); 736 << DecodeUnsignedOperand(operand_start, op_type, operand_scale);
737 break; 737 break;
738 case interpreter::OperandType::kIdx: 738 case interpreter::OperandType::kIdx:
739 case interpreter::OperandType::kRuntimeId: 739 case interpreter::OperandType::kRuntimeId:
740 case interpreter::OperandType::kIntrinsicId:
740 os << "[" 741 os << "["
741 << DecodeUnsignedOperand(operand_start, op_type, operand_scale) 742 << DecodeUnsignedOperand(operand_start, op_type, operand_scale)
742 << "]"; 743 << "]";
743 break; 744 break;
744 case interpreter::OperandType::kImm: 745 case interpreter::OperandType::kImm:
745 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale) 746 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale)
746 << "]"; 747 << "]";
747 break; 748 break;
748 case interpreter::OperandType::kFlag8: 749 case interpreter::OperandType::kFlag8:
749 os << "#" 750 os << "#"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 } else { 940 } else {
940 std::ostringstream s; 941 std::ostringstream s;
941 s << "r" << index(); 942 s << "r" << index();
942 return s.str(); 943 return s.str();
943 } 944 }
944 } 945 }
945 946
946 } // namespace interpreter 947 } // namespace interpreter
947 } // namespace internal 948 } // namespace internal
948 } // namespace v8 949 } // 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