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

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

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Merge branch 'master' into zonefolder 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 | « src/wasm/wasm-debug.cc ('k') | src/wasm/wasm-interpreter.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_WASM_INTERPRETER_H_ 5 #ifndef V8_WASM_INTERPRETER_H_
6 #define V8_WASM_INTERPRETER_H_ 6 #define V8_WASM_INTERPRETER_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 #include "src/zone-containers.h" 9 #include "src/zone/zone-containers.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace base { 12 namespace base {
13 class AccountingAllocator; 13 class AccountingAllocator;
14 } 14 }
15 15
16 namespace internal { 16 namespace internal {
17 namespace wasm { 17 namespace wasm {
18 18
19 // forward declarations. 19 // forward declarations.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual int GetFrameCount() = 0; 132 virtual int GetFrameCount() = 0;
133 virtual const WasmFrame* GetFrame(int index) = 0; 133 virtual const WasmFrame* GetFrame(int index) = 0;
134 virtual WasmFrame* GetMutableFrame(int index) = 0; 134 virtual WasmFrame* GetMutableFrame(int index) = 0;
135 virtual WasmVal GetReturnValue() = 0; 135 virtual WasmVal GetReturnValue() = 0;
136 136
137 // Thread-specific breakpoints. 137 // Thread-specific breakpoints.
138 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled); 138 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled);
139 bool GetBreakpoint(const WasmFunction* function, int pc); 139 bool GetBreakpoint(const WasmFunction* function, int pc);
140 }; 140 };
141 141
142 WasmInterpreter(WasmModuleInstance* instance, 142 WasmInterpreter(WasmModuleInstance* instance, AccountingAllocator* allocator);
143 base::AccountingAllocator* allocator);
144 ~WasmInterpreter(); 143 ~WasmInterpreter();
145 144
146 //========================================================================== 145 //==========================================================================
147 // Execution controls. 146 // Execution controls.
148 //========================================================================== 147 //==========================================================================
149 void Run(); 148 void Run();
150 void Pause(); 149 void Pause();
151 150
152 // Set a breakpoint at {pc} in {function} to be {enabled}. Returns the 151 // Set a breakpoint at {pc} in {function} to be {enabled}. Returns the
153 // previous state of the breakpoint at {pc}. 152 // previous state of the breakpoint at {pc}.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 private: 199 private:
201 Zone zone_; 200 Zone zone_;
202 WasmInterpreterInternals* internals_; 201 WasmInterpreterInternals* internals_;
203 }; 202 };
204 203
205 } // namespace wasm 204 } // namespace wasm
206 } // namespace internal 205 } // namespace internal
207 } // namespace v8 206 } // namespace v8
208 207
209 #endif // V8_WASM_INTERPRETER_H_ 208 #endif // V8_WASM_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-debug.cc ('k') | src/wasm/wasm-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698