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

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

Issue 2438603003: [wasm] Track in the interpreter if a NaN could have been produced. (Closed)
Patch Set: Fixed nits. Created 4 years, 1 month 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') | 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/zone-containers.h" 9 #include "src/zone/zone-containers.h"
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void Pause() = 0; 118 virtual void Pause() = 0;
119 virtual void Reset() = 0; 119 virtual void Reset() = 0;
120 virtual ~Thread() {} 120 virtual ~Thread() {}
121 121
122 // Stack inspection and modification. 122 // Stack inspection and modification.
123 virtual pc_t GetBreakpointPc() = 0; 123 virtual pc_t GetBreakpointPc() = 0;
124 virtual int GetFrameCount() = 0; 124 virtual int GetFrameCount() = 0;
125 virtual const WasmFrame* GetFrame(int index) = 0; 125 virtual const WasmFrame* GetFrame(int index) = 0;
126 virtual WasmFrame* GetMutableFrame(int index) = 0; 126 virtual WasmFrame* GetMutableFrame(int index) = 0;
127 virtual WasmVal GetReturnValue(int index = 0) = 0; 127 virtual WasmVal GetReturnValue(int index = 0) = 0;
128 // Returns true if the thread executed an instruction which may produce
129 // nondeterministic results, e.g. float div, float sqrt, and float mul,
130 // where the sign bit of a NaN is nondeterministic.
131 virtual bool PossibleNondeterminism() = 0;
128 132
129 // Thread-specific breakpoints. 133 // Thread-specific breakpoints.
130 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled); 134 bool SetBreakpoint(const WasmFunction* function, int pc, bool enabled);
131 bool GetBreakpoint(const WasmFunction* function, int pc); 135 bool GetBreakpoint(const WasmFunction* function, int pc);
132 }; 136 };
133 137
134 WasmInterpreter(WasmInstance* instance, AccountingAllocator* allocator); 138 WasmInterpreter(WasmInstance* instance, AccountingAllocator* allocator);
135 ~WasmInterpreter(); 139 ~WasmInterpreter();
136 140
137 //========================================================================== 141 //==========================================================================
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 private: 194 private:
191 Zone zone_; 195 Zone zone_;
192 WasmInterpreterInternals* internals_; 196 WasmInterpreterInternals* internals_;
193 }; 197 };
194 198
195 } // namespace wasm 199 } // namespace wasm
196 } // namespace internal 200 } // namespace internal
197 } // namespace v8 201 } // namespace v8
198 202
199 #endif // V8_WASM_INTERPRETER_H_ 203 #endif // V8_WASM_INTERPRETER_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698