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

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

Issue 2051043002: Implement Wasm GrowMemory opcode as a wasm runtime call (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ben's review, fix includes Created 4 years, 6 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_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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 Node* BuildChangeInt32ToSmi(Node* value); 324 Node* BuildChangeInt32ToSmi(Node* value);
325 Node* BuildChangeSmiToInt32(Node* value); 325 Node* BuildChangeSmiToInt32(Node* value);
326 Node* BuildChangeSmiToFloat64(Node* value); 326 Node* BuildChangeSmiToFloat64(Node* value);
327 Node* BuildTestNotSmi(Node* value); 327 Node* BuildTestNotSmi(Node* value);
328 Node* BuildSmiShiftBitsConstant(); 328 Node* BuildSmiShiftBitsConstant();
329 329
330 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control); 330 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control);
331 Node* BuildLoadHeapNumberValue(Node* value, Node* control); 331 Node* BuildLoadHeapNumberValue(Node* value, Node* control);
332 Node* BuildHeapNumberValueIndexConstant(); 332 Node* BuildHeapNumberValueIndexConstant();
333 Node* BuildGrowMemory(Node* input);
333 334
334 // Asm.js specific functionality. 335 // Asm.js specific functionality.
335 Node* BuildI32AsmjsSConvertF32(Node* input); 336 Node* BuildI32AsmjsSConvertF32(Node* input);
336 Node* BuildI32AsmjsSConvertF64(Node* input); 337 Node* BuildI32AsmjsSConvertF64(Node* input);
337 Node* BuildI32AsmjsUConvertF32(Node* input); 338 Node* BuildI32AsmjsUConvertF32(Node* input);
338 Node* BuildI32AsmjsUConvertF64(Node* input); 339 Node* BuildI32AsmjsUConvertF64(Node* input);
339 Node* BuildI32AsmjsDivS(Node* left, Node* right); 340 Node* BuildI32AsmjsDivS(Node* left, Node* right);
340 Node* BuildI32AsmjsRemS(Node* left, Node* right); 341 Node* BuildI32AsmjsRemS(Node* left, Node* right);
341 Node* BuildI32AsmjsDivU(Node* left, Node* right); 342 Node* BuildI32AsmjsDivU(Node* left, Node* right);
342 Node* BuildI32AsmjsRemU(Node* left, Node* right); 343 Node* BuildI32AsmjsRemU(Node* left, Node* right);
343 Node* BuildAsmjsLoadMem(MachineType type, Node* index); 344 Node* BuildAsmjsLoadMem(MachineType type, Node* index);
344 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); 345 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val);
345 346
346 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { 347 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
347 Node** buf = Buffer(new_count); 348 Node** buf = Buffer(new_count);
348 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 349 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
349 return buf; 350 return buf;
350 } 351 }
351 }; 352 };
352 } // namespace compiler 353 } // namespace compiler
353 } // namespace internal 354 } // namespace internal
354 } // namespace v8 355 } // namespace v8
355 356
356 #endif // V8_COMPILER_WASM_COMPILER_H_ 357 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698