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

Side by Side Diff: src/wasm/wasm-macro-gen.h

Issue 1798863004: [wasm] Add I64Eqz operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-opcodes.h » ('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 #ifndef V8_WASM_MACRO_GEN_H_ 5 #ifndef V8_WASM_MACRO_GEN_H_
6 #define V8_WASM_MACRO_GEN_H_ 6 #define V8_WASM_MACRO_GEN_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 9
10 #define U32_LE(v) \ 10 #define U32_LE(v) \
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 #define WASM_I32_LES(x, y) kExprI32LeS, x, y 392 #define WASM_I32_LES(x, y) kExprI32LeS, x, y
393 #define WASM_I32_LTU(x, y) kExprI32LtU, x, y 393 #define WASM_I32_LTU(x, y) kExprI32LtU, x, y
394 #define WASM_I32_LEU(x, y) kExprI32LeU, x, y 394 #define WASM_I32_LEU(x, y) kExprI32LeU, x, y
395 #define WASM_I32_GTS(x, y) kExprI32GtS, x, y 395 #define WASM_I32_GTS(x, y) kExprI32GtS, x, y
396 #define WASM_I32_GES(x, y) kExprI32GeS, x, y 396 #define WASM_I32_GES(x, y) kExprI32GeS, x, y
397 #define WASM_I32_GTU(x, y) kExprI32GtU, x, y 397 #define WASM_I32_GTU(x, y) kExprI32GtU, x, y
398 #define WASM_I32_GEU(x, y) kExprI32GeU, x, y 398 #define WASM_I32_GEU(x, y) kExprI32GeU, x, y
399 #define WASM_I32_CLZ(x) kExprI32Clz, x 399 #define WASM_I32_CLZ(x) kExprI32Clz, x
400 #define WASM_I32_CTZ(x) kExprI32Ctz, x 400 #define WASM_I32_CTZ(x) kExprI32Ctz, x
401 #define WASM_I32_POPCNT(x) kExprI32Popcnt, x 401 #define WASM_I32_POPCNT(x) kExprI32Popcnt, x
402 #define WASM_I32_EQZ(x) kExprI32Eqz, x
402 403
403 //------------------------------------------------------------------------------ 404 //------------------------------------------------------------------------------
404 // Int64 operations 405 // Int64 operations
405 //------------------------------------------------------------------------------ 406 //------------------------------------------------------------------------------
406 #define WASM_I64_ADD(x, y) kExprI64Add, x, y 407 #define WASM_I64_ADD(x, y) kExprI64Add, x, y
407 #define WASM_I64_SUB(x, y) kExprI64Sub, x, y 408 #define WASM_I64_SUB(x, y) kExprI64Sub, x, y
408 #define WASM_I64_MUL(x, y) kExprI64Mul, x, y 409 #define WASM_I64_MUL(x, y) kExprI64Mul, x, y
409 #define WASM_I64_DIVS(x, y) kExprI64DivS, x, y 410 #define WASM_I64_DIVS(x, y) kExprI64DivS, x, y
410 #define WASM_I64_DIVU(x, y) kExprI64DivU, x, y 411 #define WASM_I64_DIVU(x, y) kExprI64DivU, x, y
411 #define WASM_I64_REMS(x, y) kExprI64RemS, x, y 412 #define WASM_I64_REMS(x, y) kExprI64RemS, x, y
(...skipping 12 matching lines...) Expand all
424 #define WASM_I64_LES(x, y) kExprI64LeS, x, y 425 #define WASM_I64_LES(x, y) kExprI64LeS, x, y
425 #define WASM_I64_LTU(x, y) kExprI64LtU, x, y 426 #define WASM_I64_LTU(x, y) kExprI64LtU, x, y
426 #define WASM_I64_LEU(x, y) kExprI64LeU, x, y 427 #define WASM_I64_LEU(x, y) kExprI64LeU, x, y
427 #define WASM_I64_GTS(x, y) kExprI64GtS, x, y 428 #define WASM_I64_GTS(x, y) kExprI64GtS, x, y
428 #define WASM_I64_GES(x, y) kExprI64GeS, x, y 429 #define WASM_I64_GES(x, y) kExprI64GeS, x, y
429 #define WASM_I64_GTU(x, y) kExprI64GtU, x, y 430 #define WASM_I64_GTU(x, y) kExprI64GtU, x, y
430 #define WASM_I64_GEU(x, y) kExprI64GeU, x, y 431 #define WASM_I64_GEU(x, y) kExprI64GeU, x, y
431 #define WASM_I64_CLZ(x) kExprI64Clz, x 432 #define WASM_I64_CLZ(x) kExprI64Clz, x
432 #define WASM_I64_CTZ(x) kExprI64Ctz, x 433 #define WASM_I64_CTZ(x) kExprI64Ctz, x
433 #define WASM_I64_POPCNT(x) kExprI64Popcnt, x 434 #define WASM_I64_POPCNT(x) kExprI64Popcnt, x
435 #define WASM_I64_EQZ(x) kExprI64Eqz, x
434 436
435 //------------------------------------------------------------------------------ 437 //------------------------------------------------------------------------------
436 // Float32 operations 438 // Float32 operations
437 //------------------------------------------------------------------------------ 439 //------------------------------------------------------------------------------
438 #define WASM_F32_ADD(x, y) kExprF32Add, x, y 440 #define WASM_F32_ADD(x, y) kExprF32Add, x, y
439 #define WASM_F32_SUB(x, y) kExprF32Sub, x, y 441 #define WASM_F32_SUB(x, y) kExprF32Sub, x, y
440 #define WASM_F32_MUL(x, y) kExprF32Mul, x, y 442 #define WASM_F32_MUL(x, y) kExprF32Mul, x, y
441 #define WASM_F32_DIV(x, y) kExprF32Div, x, y 443 #define WASM_F32_DIV(x, y) kExprF32Div, x, y
442 #define WASM_F32_MIN(x, y) kExprF32Min, x, y 444 #define WASM_F32_MIN(x, y) kExprF32Min, x, y
443 #define WASM_F32_MAX(x, y) kExprF32Max, x, y 445 #define WASM_F32_MAX(x, y) kExprF32Max, x, y
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 #define WASM_F64_SCONVERT_I32(x) kExprF64SConvertI32, x 505 #define WASM_F64_SCONVERT_I32(x) kExprF64SConvertI32, x
504 #define WASM_F64_UCONVERT_I32(x) kExprF64UConvertI32, x 506 #define WASM_F64_UCONVERT_I32(x) kExprF64UConvertI32, x
505 #define WASM_F64_SCONVERT_I64(x) kExprF64SConvertI64, x 507 #define WASM_F64_SCONVERT_I64(x) kExprF64SConvertI64, x
506 #define WASM_F64_UCONVERT_I64(x) kExprF64UConvertI64, x 508 #define WASM_F64_UCONVERT_I64(x) kExprF64UConvertI64, x
507 #define WASM_F64_CONVERT_F32(x) kExprF64ConvertF32, x 509 #define WASM_F64_CONVERT_F32(x) kExprF64ConvertF32, x
508 #define WASM_F64_REINTERPRET_I64(x) kExprF64ReinterpretI64, x 510 #define WASM_F64_REINTERPRET_I64(x) kExprF64ReinterpretI64, x
509 #define WASM_I32_REINTERPRET_F32(x) kExprI32ReinterpretF32, x 511 #define WASM_I32_REINTERPRET_F32(x) kExprI32ReinterpretF32, x
510 #define WASM_I64_REINTERPRET_F64(x) kExprI64ReinterpretF64, x 512 #define WASM_I64_REINTERPRET_F64(x) kExprI64ReinterpretF64, x
511 513
512 #endif // V8_WASM_MACRO_GEN_H_ 514 #endif // V8_WASM_MACRO_GEN_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698