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