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

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

Issue 1991143002: Convert SIMD wasm ops to runtime function calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Bill's review Created 4 years, 7 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 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 #include "src/zone-containers.h" 10 #include "src/zone-containers.h"
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 #define WASM_F32_REINTERPRET_I32(x) x, kExprF32ReinterpretI32 563 #define WASM_F32_REINTERPRET_I32(x) x, kExprF32ReinterpretI32
564 #define WASM_F64_SCONVERT_I32(x) x, kExprF64SConvertI32 564 #define WASM_F64_SCONVERT_I32(x) x, kExprF64SConvertI32
565 #define WASM_F64_UCONVERT_I32(x) x, kExprF64UConvertI32 565 #define WASM_F64_UCONVERT_I32(x) x, kExprF64UConvertI32
566 #define WASM_F64_SCONVERT_I64(x) x, kExprF64SConvertI64 566 #define WASM_F64_SCONVERT_I64(x) x, kExprF64SConvertI64
567 #define WASM_F64_UCONVERT_I64(x) x, kExprF64UConvertI64 567 #define WASM_F64_UCONVERT_I64(x) x, kExprF64UConvertI64
568 #define WASM_F64_CONVERT_F32(x) x, kExprF64ConvertF32 568 #define WASM_F64_CONVERT_F32(x) x, kExprF64ConvertF32
569 #define WASM_F64_REINTERPRET_I64(x) x, kExprF64ReinterpretI64 569 #define WASM_F64_REINTERPRET_I64(x) x, kExprF64ReinterpretI64
570 #define WASM_I32_REINTERPRET_F32(x) x, kExprI32ReinterpretF32 570 #define WASM_I32_REINTERPRET_F32(x) x, kExprI32ReinterpretF32
571 #define WASM_I64_REINTERPRET_F64(x) x, kExprI64ReinterpretF64 571 #define WASM_I64_REINTERPRET_F64(x) x, kExprI64ReinterpretF64
572 572
573 //------------------------------------------------------------------------------
574 // Type conversions.
575 //------------------------------------------------------------------------------
576 #define WASM_SIMD_I32x4_SPLAT(x) kExprI32x4S128Splat, x
577 #define WASM_SIMD_I32x4_EXTRACT_LANE(x, y) kExprI32x4S128ExtractLane, x, y
578
573 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0 579 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0
574 #define SIZEOF_SIG_ENTRY_v_v 3 580 #define SIZEOF_SIG_ENTRY_v_v 3
575 581
576 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0 582 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0
577 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0 583 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0
578 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0 584 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0
579 #define SIZEOF_SIG_ENTRY_v_x 4 585 #define SIZEOF_SIG_ENTRY_v_x 4
580 #define SIZEOF_SIG_ENTRY_v_xx 5 586 #define SIZEOF_SIG_ENTRY_v_xx 5
581 #define SIZEOF_SIG_ENTRY_v_xxx 6 587 #define SIZEOF_SIG_ENTRY_v_xxx 6
582 588
583 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r 589 #define SIG_ENTRY_x(r) kWasmFunctionTypeForm, 0, 1, r
584 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r 590 #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeForm, 1, a, 1, r
585 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r 591 #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeForm, 2, a, b, 1, r
586 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r 592 #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 1, r
587 #define SIZEOF_SIG_ENTRY_x 4 593 #define SIZEOF_SIG_ENTRY_x 4
588 #define SIZEOF_SIG_ENTRY_x_x 5 594 #define SIZEOF_SIG_ENTRY_x_x 5
589 #define SIZEOF_SIG_ENTRY_x_xx 6 595 #define SIZEOF_SIG_ENTRY_x_xx 6
590 #define SIZEOF_SIG_ENTRY_x_xxx 7 596 #define SIZEOF_SIG_ENTRY_x_xxx 7
591 597
592 #endif // V8_WASM_MACRO_GEN_H_ 598 #endif // V8_WASM_MACRO_GEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698