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

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

Issue 2055803002: [wasm] Fix CFI failures due to Wasm threads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/wasm/wasm-interpreter.cc » ('j') | src/wasm/wasm-interpreter.cc » ('J')
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-containers.h"
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Gets the current state of the breakpoint at {function}. 156 // Gets the current state of the breakpoint at {function}.
157 bool GetBreakpoint(const WasmFunction* function, pc_t pc); 157 bool GetBreakpoint(const WasmFunction* function, pc_t pc);
158 158
159 // Enable or disable tracing for {function}. Return the previous state. 159 // Enable or disable tracing for {function}. Return the previous state.
160 bool SetTracing(const WasmFunction* function, bool enabled); 160 bool SetTracing(const WasmFunction* function, bool enabled);
161 161
162 //========================================================================== 162 //==========================================================================
163 // Thread iteration and inspection. 163 // Thread iteration and inspection.
164 //========================================================================== 164 //==========================================================================
165 int GetThreadCount(); 165 int GetThreadCount();
166 Thread& GetThread(int id); 166 Thread* GetThread(int id);
167 167
168 //========================================================================== 168 //==========================================================================
169 // Stack frame inspection. 169 // Stack frame inspection.
170 //========================================================================== 170 //==========================================================================
171 WasmVal GetLocalVal(const WasmFrame* frame, int index); 171 WasmVal GetLocalVal(const WasmFrame* frame, int index);
172 WasmVal GetExprVal(const WasmFrame* frame, int pc); 172 WasmVal GetExprVal(const WasmFrame* frame, int pc);
173 void SetLocalVal(WasmFrame* frame, int index, WasmVal val); 173 void SetLocalVal(WasmFrame* frame, int index, WasmVal val);
174 void SetExprVal(WasmFrame* frame, int pc, WasmVal val); 174 void SetExprVal(WasmFrame* frame, int pc, WasmVal val);
175 175
176 //========================================================================== 176 //==========================================================================
(...skipping 23 matching lines...) Expand all
200 private: 200 private:
201 Zone zone_; 201 Zone zone_;
202 WasmInterpreterInternals* internals_; 202 WasmInterpreterInternals* internals_;
203 }; 203 };
204 204
205 } // namespace wasm 205 } // namespace wasm
206 } // namespace internal 206 } // namespace internal
207 } // namespace v8 207 } // namespace v8
208 208
209 #endif // V8_WASM_INTERPRETER_H_ 209 #endif // V8_WASM_INTERPRETER_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-interpreter.cc » ('j') | src/wasm/wasm-interpreter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698