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

Side by Side Diff: src/compiler/wasm-compiler.h

Issue 1968943002: [wasm] Introduce custom asm.js bytecodes for loads and stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm_asmjs_convert
Patch Set: 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
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | test/cctest/wasm/test-run-wasm-asmjs.cc » ('J')
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_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 // Asm.js specific functionality. 294 // Asm.js specific functionality.
295 Node* BuildI32AsmjsSConvertF32(Node* input); 295 Node* BuildI32AsmjsSConvertF32(Node* input);
296 Node* BuildI32AsmjsSConvertF64(Node* input); 296 Node* BuildI32AsmjsSConvertF64(Node* input);
297 Node* BuildI32AsmjsUConvertF32(Node* input); 297 Node* BuildI32AsmjsUConvertF32(Node* input);
298 Node* BuildI32AsmjsUConvertF64(Node* input); 298 Node* BuildI32AsmjsUConvertF64(Node* input);
299 Node* BuildI32AsmjsDivS(Node* left, Node* right); 299 Node* BuildI32AsmjsDivS(Node* left, Node* right);
300 Node* BuildI32AsmjsRemS(Node* left, Node* right); 300 Node* BuildI32AsmjsRemS(Node* left, Node* right);
301 Node* BuildI32AsmjsDivU(Node* left, Node* right); 301 Node* BuildI32AsmjsDivU(Node* left, Node* right);
302 Node* BuildI32AsmjsRemU(Node* left, Node* right); 302 Node* BuildI32AsmjsRemU(Node* left, Node* right);
303 Node* BuildAsmjsLoadMem(MachineType type, Node* index);
304 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val);
303 305
304 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { 306 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
305 Node** buf = Buffer(new_count); 307 Node** buf = Buffer(new_count);
306 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 308 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
307 return buf; 309 return buf;
308 } 310 }
309 }; 311 };
310 } // namespace compiler 312 } // namespace compiler
311 } // namespace internal 313 } // namespace internal
312 } // namespace v8 314 } // namespace v8
313 315
314 #endif // V8_COMPILER_WASM_COMPILER_H_ 316 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | test/cctest/wasm/test-run-wasm-asmjs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698