Home | History | Annotate | Download | only in wasm

Lines Matching defs:WasmInterpreter

1093   // Implementation of public interface for WasmInterpreter::Thread.
1096 WasmInterpreter::State state() { return state_; }
1107 WasmInterpreter::State Run(int num_steps = -1) {
1108 DCHECK(state_ == WasmInterpreter::STOPPED ||
1109 state_ == WasmInterpreter::PAUSED);
1118 state_ = WasmInterpreter::RUNNING;
1121 DCHECK_IMPLIES(state_ == WasmInterpreter::STOPPED,
1132 state_ = WasmInterpreter::STOPPED;
1143 if (state_ == WasmInterpreter::TRAPPED) return WasmValue(0xDEADBEEF);
1144 DCHECK_EQ(WasmInterpreter::FINISHED, state_);
1171 void ClearBreakFlags() { break_flags_ = WasmInterpreter::BreakFlag::None; }
1185 state_ = WasmInterpreter::STOPPED;
1208 WasmInterpreter::Thread::ExceptionHandlingResult HandleException(
1220 state_ = WasmInterpreter::STOPPED;
1221 return WasmInterpreter::Thread::UNWOUND;
1252 WasmInterpreter::State state_ = WasmInterpreter::STOPPED;
1256 uint8_t break_flags_ = 0; // a combination of WasmInterpreter::BreakFlag
1267 state_ = WasmInterpreter::TRAPPED;
1355 state_ = WasmInterpreter::FINISHED;
2073 return HandleException(isolate) == WasmInterpreter::Thread::HANDLED;
2092 if (V8_UNLIKELY(break_flags_ & WasmInterpreter::BreakFlag::flag)) { \
2606 state_ = WasmInterpreter::PAUSED;
2701 if (HandleException(isolate) == WasmInterpreter::Thread::UNWOUND) {
2986 // Converters between WasmInterpreter::Thread and WasmInterpreter::ThreadImpl.
2990 WasmInterpreter::Thread* ToThread(ThreadImpl* impl) {
2991 return reinterpret_cast<WasmInterpreter::Thread*>(impl);
2993 ThreadImpl* ToImpl(WasmInterpreter::Thread* thread) {
3008 // Implementation of the pimpl idiom for WasmInterpreter::Thread.
3013 WasmInterpreter::State WasmInterpreter::Thread::state() {
3016 void WasmInterpreter::Thread::InitFrame(const WasmFunction* function,
3020 WasmInterpreter::State WasmInterpreter::Thread::Run(int num_steps) {
3023 void WasmInterpreter::Thread::Pause() { return ToImpl(this)->Pause(); }
3024 void WasmInterpreter::Thread::Reset() { return ToImpl(this)->Reset(); }
3025 WasmInterpreter::Thread::ExceptionHandlingResult
3026 WasmInterpreter::Thread::HandleException(Isolate* isolate) {
3029 pc_t WasmInterpreter::Thread::GetBreakpointPc() {
3032 int WasmInterpreter::Thread::GetFrameCount() {
3035 WasmInterpreter::FramePtr WasmInterpreter::Thread::GetFrame(int index) {
3040 WasmValue WasmInterpreter::Thread::GetReturnValue(int index) {
3043 TrapReason WasmInterpreter::Thread::GetTrapReason() {
3046 bool WasmInterpreter::Thread::PossibleNondeterminism() {
3049 uint64_t WasmInterpreter::Thread::NumInterpretedCalls() {
3052 void WasmInterpreter::Thread::AddBreakFlags(uint8_t flags) {
3055 void WasmInterpreter::Thread::ClearBreakFlags() {
3058 uint32_t WasmInterpreter::Thread::NumActivations() {
3061 uint32_t WasmInterpreter::Thread::StartActivation() {
3064 void WasmInterpreter::Thread::FinishActivation(uint32_t id) {
3067 uint32_t WasmInterpreter::Thread::ActivationFrameBase(uint32_t id) {
3102 // TODO(wasm): use a phantom handle in the WasmInterpreter.
3113 WasmInterpreter::WasmInterpreter(Isolate* isolate, const WasmModule* module,
3120 WasmInterpreter::~WasmInterpreter() { internals_->~WasmInterpreterInternals(); }
3122 void WasmInterpreter::Run() { internals_->threads_[0].Run(); }
3124 void WasmInterpreter::Pause() { internals_->threads_[0].Pause(); }
3126 bool WasmInterpreter::SetBreakpoint(const WasmFunction* function, pc_t pc,
3147 bool WasmInterpreter::GetBreakpoint(const WasmFunction* function, pc_t pc) {
3156 bool WasmInterpreter::SetTracing(const WasmFunction* function, bool enabled) {
3161 int WasmInterpreter::GetThreadCount() {
3165 WasmInterpreter::Thread* WasmInterpreter::GetThread(int id) {
3170 void WasmInterpreter::AddFunctionForTesting(const WasmFunction* function) {
3174 void WasmInterpreter::SetFunctionCodeForTesting(const WasmFunction* function,
3180 void WasmInterpreter::SetCallIndirectTestMode() {
3184 ControlTransferMap WasmInterpreter::ComputeControlTransfersForTesting(