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

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

Issue 1961973002: [wasm] Implement parallel compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make the implementation thread-safe. 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 Node* Loop(Node* entry); 91 Node* Loop(Node* entry);
92 Node* Terminate(Node* effect, Node* control); 92 Node* Terminate(Node* effect, Node* control);
93 Node* Merge(unsigned count, Node** controls); 93 Node* Merge(unsigned count, Node** controls);
94 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); 94 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control);
95 Node* EffectPhi(unsigned count, Node** effects, Node* control); 95 Node* EffectPhi(unsigned count, Node** effects, Node* control);
96 Node* NumberConstant(int32_t value); 96 Node* NumberConstant(int32_t value);
97 Node* Int32Constant(int32_t value); 97 Node* Int32Constant(int32_t value);
98 Node* Int64Constant(int64_t value); 98 Node* Int64Constant(int64_t value);
99 Node* Float32Constant(float value); 99 Node* Float32Constant(float value);
100 Node* Float64Constant(double value); 100 Node* Float64Constant(double value);
101 Node* Constant(Handle<Object> value); 101 Node* HeapConstant(Handle<HeapObject> value);
102 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, 102 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right,
103 wasm::WasmCodePosition position = wasm::kNoCodePosition); 103 wasm::WasmCodePosition position = wasm::kNoCodePosition);
104 Node* Unop(wasm::WasmOpcode opcode, Node* input, 104 Node* Unop(wasm::WasmOpcode opcode, Node* input,
105 wasm::WasmCodePosition position = wasm::kNoCodePosition); 105 wasm::WasmCodePosition position = wasm::kNoCodePosition);
106 unsigned InputCount(Node* node); 106 unsigned InputCount(Node* node);
107 bool IsPhiWithMerge(Node* phi, Node* merge); 107 bool IsPhiWithMerge(Node* phi, Node* merge);
108 void AppendToMerge(Node* merge, Node* from); 108 void AppendToMerge(Node* merge, Node* from);
109 void AppendToPhi(Node* phi, Node* from); 109 void AppendToPhi(Node* phi, Node* from);
110 110
111 //----------------------------------------------------------------------- 111 //-----------------------------------------------------------------------
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 Node** buf = Buffer(new_count); 307 Node** buf = Buffer(new_count);
308 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 308 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
309 return buf; 309 return buf;
310 } 310 }
311 }; 311 };
312 } // namespace compiler 312 } // namespace compiler
313 } // namespace internal 313 } // namespace internal
314 } // namespace v8 314 } // namespace v8
315 315
316 #endif // V8_COMPILER_WASM_COMPILER_H_ 316 #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