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

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

Issue 1971693002: [wasm] Introduce custom asm.js bytecodes for double->int conversions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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') | 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
275 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position); 270 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position);
276 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position); 271 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position);
277 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position); 272 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position);
278 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position); 273 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position);
279 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref, 274 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref,
280 MachineType result_type, int trap_zero, 275 MachineType result_type, int trap_zero,
281 wasm::WasmCodePosition position); 276 wasm::WasmCodePosition position);
282 277
283 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, 278 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect,
284 Node* control); 279 Node* control);
285 Node* BuildChangeInt32ToTagged(Node* value); 280 Node* BuildChangeInt32ToTagged(Node* value);
286 Node* BuildChangeFloat64ToTagged(Node* value); 281 Node* BuildChangeFloat64ToTagged(Node* value);
287 Node* BuildChangeTaggedToFloat64(Node* value); 282 Node* BuildChangeTaggedToFloat64(Node* value);
288 283
289 Node* BuildChangeInt32ToSmi(Node* value); 284 Node* BuildChangeInt32ToSmi(Node* value);
290 Node* BuildChangeSmiToInt32(Node* value); 285 Node* BuildChangeSmiToInt32(Node* value);
291 Node* BuildChangeSmiToFloat64(Node* value); 286 Node* BuildChangeSmiToFloat64(Node* value);
292 Node* BuildTestNotSmi(Node* value); 287 Node* BuildTestNotSmi(Node* value);
293 Node* BuildSmiShiftBitsConstant(); 288 Node* BuildSmiShiftBitsConstant();
294 289
295 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control); 290 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control);
296 Node* BuildLoadHeapNumberValue(Node* value, Node* control); 291 Node* BuildLoadHeapNumberValue(Node* value, Node* control);
297 Node* BuildHeapNumberValueIndexConstant(); 292 Node* BuildHeapNumberValueIndexConstant();
298 293
294 // Asm.js specific functionality.
295 Node* BuildI32AsmjsSConvertF32(Node* input);
296 Node* BuildI32AsmjsSConvertF64(Node* input);
297 Node* BuildI32AsmjsUConvertF32(Node* input);
298 Node* BuildI32AsmjsUConvertF64(Node* input);
299 Node* BuildI32AsmjsDivS(Node* left, Node* right);
300 Node* BuildI32AsmjsRemS(Node* left, Node* right);
301 Node* BuildI32AsmjsDivU(Node* left, Node* right);
302 Node* BuildI32AsmjsRemU(Node* left, Node* right);
303
299 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { 304 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
300 Node** buf = Buffer(new_count); 305 Node** buf = Buffer(new_count);
301 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 306 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
302 return buf; 307 return buf;
303 } 308 }
304 }; 309 };
305 } // namespace compiler 310 } // namespace compiler
306 } // namespace internal 311 } // namespace internal
307 } // namespace v8 312 } // namespace v8
308 313
309 #endif // V8_COMPILER_WASM_COMPILER_H_ 314 #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