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

Side by Side Diff: test/cctest/interpreter/bytecode-expectations-printer.cc

Issue 2336203002: [Interpreter] Add an unsigned immediate operand type (Closed)
Patch Set: Address comments Created 4 years, 3 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 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
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
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
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | test/unittests/interpreter/interpreter-assembler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698