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

Side by Side Diff: src/wasm/wasm-text.cc

Issue 2595733003: [wasm] Remove non-standard kExprI8Const bytecode (Closed)
Patch Set: Remove regression test Created 3 years, 11 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 "src/wasm/wasm-text.h" 5 #include "src/wasm/wasm-text.h"
6 6
7 #include "src/debug/interface-types.h" 7 #include "src/debug/interface-types.h"
8 #include "src/ostreams.h" 8 #include "src/ostreams.h"
9 #include "src/vector.h" 9 #include "src/vector.h"
10 #include "src/wasm/function-body-decoder.h" 10 #include "src/wasm/function-body-decoder.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 GlobalIndexOperand operand(&i, i.pc()); 256 GlobalIndexOperand operand(&i, i.pc());
257 os << GetOpName(opcode) << ' ' << operand.index; 257 os << GetOpName(opcode) << ' ' << operand.index;
258 break; 258 break;
259 } 259 }
260 #define CASE_CONST(type, str, cast_type) \ 260 #define CASE_CONST(type, str, cast_type) \
261 case kExpr##type##Const: { \ 261 case kExpr##type##Const: { \
262 Imm##type##Operand operand(&i, i.pc()); \ 262 Imm##type##Operand operand(&i, i.pc()); \
263 os << #str ".const " << static_cast<cast_type>(operand.value); \ 263 os << #str ".const " << static_cast<cast_type>(operand.value); \
264 break; \ 264 break; \
265 } 265 }
266 CASE_CONST(I8, i8, int32_t)
267 CASE_CONST(I32, i32, int32_t) 266 CASE_CONST(I32, i32, int32_t)
268 CASE_CONST(I64, i64, int64_t) 267 CASE_CONST(I64, i64, int64_t)
269 CASE_CONST(F32, f32, float) 268 CASE_CONST(F32, f32, float)
270 CASE_CONST(F64, f64, double) 269 CASE_CONST(F64, f64, double)
271 270
272 #define CASE_OPCODE(opcode, _, __) case kExpr##opcode: 271 #define CASE_OPCODE(opcode, _, __) case kExpr##opcode:
273 FOREACH_LOAD_MEM_OPCODE(CASE_OPCODE) 272 FOREACH_LOAD_MEM_OPCODE(CASE_OPCODE)
274 FOREACH_STORE_MEM_OPCODE(CASE_OPCODE) { 273 FOREACH_STORE_MEM_OPCODE(CASE_OPCODE) {
275 MemoryAccessOperand operand(&i, i.pc(), kMaxUInt32); 274 MemoryAccessOperand operand(&i, i.pc(), kMaxUInt32);
276 os << GetOpName(opcode) << " offset=" << operand.offset 275 os << GetOpName(opcode) << " offset=" << operand.offset
(...skipping 27 matching lines...) Expand all
304 default: 303 default:
305 UNREACHABLE(); 304 UNREACHABLE();
306 break; 305 break;
307 } 306 }
308 os << '\n'; 307 os << '\n';
309 ++line_nr; 308 ++line_nr;
310 } 309 }
311 DCHECK_EQ(0, control_depth); 310 DCHECK_EQ(0, control_depth);
312 DCHECK(i.ok()); 311 DCHECK(i.ok());
313 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698