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

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

Issue 1968493002: [wasm] Introduce special bytecodes for asm.js division/remainder instead of relying on module state. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move asm.js tests to their own file. 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') | 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_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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 Node* BuildI64SConvertF32(Node* input, wasm::WasmCodePosition position); 260 Node* BuildI64SConvertF32(Node* input, wasm::WasmCodePosition position);
261 Node* BuildI64UConvertF32(Node* input, wasm::WasmCodePosition position); 261 Node* BuildI64UConvertF32(Node* input, wasm::WasmCodePosition position);
262 Node* BuildI64SConvertF64(Node* input, wasm::WasmCodePosition position); 262 Node* BuildI64SConvertF64(Node* input, wasm::WasmCodePosition position);
263 Node* BuildI64UConvertF64(Node* input, wasm::WasmCodePosition position); 263 Node* BuildI64UConvertF64(Node* input, wasm::WasmCodePosition position);
264 264
265 Node* BuildI32DivS(Node* left, Node* right, wasm::WasmCodePosition position); 265 Node* BuildI32DivS(Node* left, Node* right, wasm::WasmCodePosition position);
266 Node* BuildI32RemS(Node* left, Node* right, wasm::WasmCodePosition position); 266 Node* BuildI32RemS(Node* left, Node* right, wasm::WasmCodePosition position);
267 Node* BuildI32DivU(Node* left, Node* right, wasm::WasmCodePosition position); 267 Node* BuildI32DivU(Node* left, Node* right, wasm::WasmCodePosition position);
268 Node* BuildI32RemU(Node* left, Node* right, wasm::WasmCodePosition position); 268 Node* BuildI32RemU(Node* left, Node* right, wasm::WasmCodePosition position);
269 269
270 Node* BuildI32AsmjsDivS(Node* left, Node* right);
271 Node* BuildI32AsmjsRemS(Node* left, Node* right);
272 Node* BuildI32AsmjsDivU(Node* left, Node* right);
273 Node* BuildI32AsmjsRemU(Node* left, Node* right);
274
270 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position); 275 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position);
271 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position); 276 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position);
272 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position); 277 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position);
273 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position); 278 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position);
274 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref, 279 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref,
275 MachineType result_type, int trap_zero, 280 MachineType result_type, int trap_zero,
276 wasm::WasmCodePosition position); 281 wasm::WasmCodePosition position);
277 282
278 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, 283 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect,
279 Node* control); 284 Node* control);
(...skipping 15 matching lines...) Expand all
295 Node** buf = Buffer(new_count); 300 Node** buf = Buffer(new_count);
296 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 301 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
297 return buf; 302 return buf;
298 } 303 }
299 }; 304 };
300 } // namespace compiler 305 } // namespace compiler
301 } // namespace internal 306 } // namespace internal
302 } // namespace v8 307 } // namespace v8
303 308
304 #endif // V8_COMPILER_WASM_COMPILER_H_ 309 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698