OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 "test/cctest/interpreter/bytecode-expectations-printer.h" | 5 #include "test/cctest/interpreter/bytecode-expectations-printer.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <iostream> | 8 #include <iostream> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } else { | 143 } else { |
144 stream << 'U' << size_tag << '('; | 144 stream << 'U' << size_tag << '('; |
145 | 145 |
146 switch (op_type) { | 146 switch (op_type) { |
147 case OperandType::kFlag8: | 147 case OperandType::kFlag8: |
148 stream << bytecode_iterator.GetFlagOperand(op_index); | 148 stream << bytecode_iterator.GetFlagOperand(op_index); |
149 break; | 149 break; |
150 case OperandType::kIdx: | 150 case OperandType::kIdx: |
151 stream << bytecode_iterator.GetIndexOperand(op_index); | 151 stream << bytecode_iterator.GetIndexOperand(op_index); |
152 break; | 152 break; |
| 153 case OperandType::kUImm: |
| 154 stream << bytecode_iterator.GetUnsignedImmediateOperand(op_index); |
| 155 break; |
153 case OperandType::kImm: | 156 case OperandType::kImm: |
154 stream << bytecode_iterator.GetImmediateOperand(op_index); | 157 stream << bytecode_iterator.GetImmediateOperand(op_index); |
155 break; | 158 break; |
156 case OperandType::kRegCount: | 159 case OperandType::kRegCount: |
157 stream << bytecode_iterator.GetRegisterCountOperand(op_index); | 160 stream << bytecode_iterator.GetRegisterCountOperand(op_index); |
158 break; | 161 break; |
159 case OperandType::kRuntimeId: { | 162 case OperandType::kRuntimeId: { |
160 Runtime::FunctionId id = | 163 Runtime::FunctionId id = |
161 bytecode_iterator.GetRuntimeIdOperand(op_index); | 164 bytecode_iterator.GetRuntimeIdOperand(op_index); |
162 stream << "Runtime::k" << i::Runtime::FunctionForId(id)->name; | 165 stream << "Runtime::k" << i::Runtime::FunctionForId(id)->name; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 336 |
334 stream << "---\n"; | 337 stream << "---\n"; |
335 PrintCodeSnippet(stream, snippet); | 338 PrintCodeSnippet(stream, snippet); |
336 PrintBytecodeArray(stream, bytecode_array); | 339 PrintBytecodeArray(stream, bytecode_array); |
337 stream << '\n'; | 340 stream << '\n'; |
338 } | 341 } |
339 | 342 |
340 } // namespace interpreter | 343 } // namespace interpreter |
341 } // namespace internal | 344 } // namespace internal |
342 } // namespace v8 | 345 } // namespace v8 |
OLD | NEW |