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

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

Issue 2324733002: [wasm] Do not support grow_memory for asmjs modules. (Closed)
Patch Set: Fixed a typo Created 4 years, 3 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 #include <memory> 8 #include <memory>
9 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Node* Uint32Constant(uint32_t value); 126 Node* Uint32Constant(uint32_t value);
127 Node* Int32Constant(int32_t value); 127 Node* Int32Constant(int32_t value);
128 Node* Int64Constant(int64_t value); 128 Node* Int64Constant(int64_t value);
129 Node* Float32Constant(float value); 129 Node* Float32Constant(float value);
130 Node* Float64Constant(double value); 130 Node* Float64Constant(double value);
131 Node* HeapConstant(Handle<HeapObject> value); 131 Node* HeapConstant(Handle<HeapObject> value);
132 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, 132 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right,
133 wasm::WasmCodePosition position = wasm::kNoCodePosition); 133 wasm::WasmCodePosition position = wasm::kNoCodePosition);
134 Node* Unop(wasm::WasmOpcode opcode, Node* input, 134 Node* Unop(wasm::WasmOpcode opcode, Node* input,
135 wasm::WasmCodePosition position = wasm::kNoCodePosition); 135 wasm::WasmCodePosition position = wasm::kNoCodePosition);
136 Node* GrowMemory(Node* input);
136 unsigned InputCount(Node* node); 137 unsigned InputCount(Node* node);
137 bool IsPhiWithMerge(Node* phi, Node* merge); 138 bool IsPhiWithMerge(Node* phi, Node* merge);
138 void AppendToMerge(Node* merge, Node* from); 139 void AppendToMerge(Node* merge, Node* from);
139 void AppendToPhi(Node* phi, Node* from); 140 void AppendToPhi(Node* phi, Node* from);
140 141
141 void StackCheck(wasm::WasmCodePosition position); 142 void StackCheck(wasm::WasmCodePosition position);
142 143
143 //----------------------------------------------------------------------- 144 //-----------------------------------------------------------------------
144 // Operations that read and/or write {control} and {effect}. 145 // Operations that read and/or write {control} and {effect}.
145 //----------------------------------------------------------------------- 146 //-----------------------------------------------------------------------
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 Node* BuildChangeInt32ToSmi(Node* value); 313 Node* BuildChangeInt32ToSmi(Node* value);
313 Node* BuildChangeSmiToInt32(Node* value); 314 Node* BuildChangeSmiToInt32(Node* value);
314 Node* BuildChangeUint32ToSmi(Node* value); 315 Node* BuildChangeUint32ToSmi(Node* value);
315 Node* BuildChangeSmiToFloat64(Node* value); 316 Node* BuildChangeSmiToFloat64(Node* value);
316 Node* BuildTestNotSmi(Node* value); 317 Node* BuildTestNotSmi(Node* value);
317 Node* BuildSmiShiftBitsConstant(); 318 Node* BuildSmiShiftBitsConstant();
318 319
319 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control); 320 Node* BuildAllocateHeapNumberWithValue(Node* value, Node* control);
320 Node* BuildLoadHeapNumberValue(Node* value, Node* control); 321 Node* BuildLoadHeapNumberValue(Node* value, Node* control);
321 Node* BuildHeapNumberValueIndexConstant(); 322 Node* BuildHeapNumberValueIndexConstant();
322 Node* BuildGrowMemory(Node* input);
323 323
324 // Asm.js specific functionality. 324 // Asm.js specific functionality.
325 Node* BuildI32AsmjsSConvertF32(Node* input); 325 Node* BuildI32AsmjsSConvertF32(Node* input);
326 Node* BuildI32AsmjsSConvertF64(Node* input); 326 Node* BuildI32AsmjsSConvertF64(Node* input);
327 Node* BuildI32AsmjsUConvertF32(Node* input); 327 Node* BuildI32AsmjsUConvertF32(Node* input);
328 Node* BuildI32AsmjsUConvertF64(Node* input); 328 Node* BuildI32AsmjsUConvertF64(Node* input);
329 Node* BuildI32AsmjsDivS(Node* left, Node* right); 329 Node* BuildI32AsmjsDivS(Node* left, Node* right);
330 Node* BuildI32AsmjsRemS(Node* left, Node* right); 330 Node* BuildI32AsmjsRemS(Node* left, Node* right);
331 Node* BuildI32AsmjsDivU(Node* left, Node* right); 331 Node* BuildI32AsmjsDivU(Node* left, Node* right);
332 Node* BuildI32AsmjsRemU(Node* left, Node* right); 332 Node* BuildI32AsmjsRemU(Node* left, Node* right);
333 Node* BuildAsmjsLoadMem(MachineType type, Node* index); 333 Node* BuildAsmjsLoadMem(MachineType type, Node* index);
334 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); 334 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val);
335 335
336 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { 336 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
337 Node** buf = Buffer(new_count); 337 Node** buf = Buffer(new_count);
338 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 338 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
339 return buf; 339 return buf;
340 } 340 }
341 341
342 int AddParameterNodes(Node** args, int pos, int param_count, 342 int AddParameterNodes(Node** args, int pos, int param_count,
343 wasm::FunctionSig* sig); 343 wasm::FunctionSig* sig);
344 }; 344 };
345 } // namespace compiler 345 } // namespace compiler
346 } // namespace internal 346 } // namespace internal
347 } // namespace v8 347 } // namespace v8
348 348
349 #endif // V8_COMPILER_WASM_COMPILER_H_ 349 #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