OLD | NEW |
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/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 wasm::WasmCodePosition position); | 310 wasm::WasmCodePosition position); |
311 | 311 |
312 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, | 312 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, |
313 Node* control); | 313 Node* control); |
314 Node* BuildChangeInt32ToTagged(Node* value); | 314 Node* BuildChangeInt32ToTagged(Node* value); |
315 Node* BuildChangeFloat64ToTagged(Node* value); | 315 Node* BuildChangeFloat64ToTagged(Node* value); |
316 Node* BuildChangeTaggedToFloat64(Node* value); | 316 Node* BuildChangeTaggedToFloat64(Node* value); |
317 | 317 |
318 Node* BuildChangeInt32ToSmi(Node* value); | 318 Node* BuildChangeInt32ToSmi(Node* value); |
319 Node* BuildChangeSmiToInt32(Node* value); | 319 Node* BuildChangeSmiToInt32(Node* value); |
| 320 Node* BuildChangeUint32ToSmi(Node* value); |
320 Node* BuildChangeSmiToFloat64(Node* value); | 321 Node* BuildChangeSmiToFloat64(Node* value); |
321 Node* BuildTestNotSmi(Node* value); | 322 Node* BuildTestNotSmi(Node* value); |
322 Node* BuildSmiShiftBitsConstant(); | 323 Node* BuildSmiShiftBitsConstant(); |
323 | 324 |
324 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control); | 325 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control); |
325 Node* BuildLoadHeapNumberValue(Node* value, Node* control); | 326 Node* BuildLoadHeapNumberValue(Node* value, Node* control); |
326 Node* BuildHeapNumberValueIndexConstant(); | 327 Node* BuildHeapNumberValueIndexConstant(); |
| 328 Node* BuildGrowMemory(Node* input); |
327 | 329 |
328 // Asm.js specific functionality. | 330 // Asm.js specific functionality. |
329 Node* BuildI32AsmjsSConvertF32(Node* input); | 331 Node* BuildI32AsmjsSConvertF32(Node* input); |
330 Node* BuildI32AsmjsSConvertF64(Node* input); | 332 Node* BuildI32AsmjsSConvertF64(Node* input); |
331 Node* BuildI32AsmjsUConvertF32(Node* input); | 333 Node* BuildI32AsmjsUConvertF32(Node* input); |
332 Node* BuildI32AsmjsUConvertF64(Node* input); | 334 Node* BuildI32AsmjsUConvertF64(Node* input); |
333 Node* BuildI32AsmjsDivS(Node* left, Node* right); | 335 Node* BuildI32AsmjsDivS(Node* left, Node* right); |
334 Node* BuildI32AsmjsRemS(Node* left, Node* right); | 336 Node* BuildI32AsmjsRemS(Node* left, Node* right); |
335 Node* BuildI32AsmjsDivU(Node* left, Node* right); | 337 Node* BuildI32AsmjsDivU(Node* left, Node* right); |
336 Node* BuildI32AsmjsRemU(Node* left, Node* right); | 338 Node* BuildI32AsmjsRemU(Node* left, Node* right); |
337 Node* BuildAsmjsLoadMem(MachineType type, Node* index); | 339 Node* BuildAsmjsLoadMem(MachineType type, Node* index); |
338 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); | 340 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); |
339 | 341 |
340 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { | 342 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { |
341 Node** buf = Buffer(new_count); | 343 Node** buf = Buffer(new_count); |
342 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 344 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
343 return buf; | 345 return buf; |
344 } | 346 } |
345 }; | 347 }; |
346 } // namespace compiler | 348 } // namespace compiler |
347 } // namespace internal | 349 } // namespace internal |
348 } // namespace v8 | 350 } // namespace v8 |
349 | 351 |
350 #endif // V8_COMPILER_WASM_COMPILER_H_ | 352 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |