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

Unified Diff: src/wasm/wasm-interpreter.cc

Issue 2365633002: [wasm] Make sure the interpreter only executes preprocessed code. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-interpreter.cc
diff --git a/src/wasm/wasm-interpreter.cc b/src/wasm/wasm-interpreter.cc
index 164da8dfe509939b4e3716797b09e79342614375..25265fa314d5739179a888361e757aea11c1fdc6 100644
--- a/src/wasm/wasm-interpreter.cc
+++ b/src/wasm/wasm-interpreter.cc
@@ -1036,7 +1036,8 @@ class ThreadImpl : public WasmInterpreter::Thread {
if (state_ == WasmInterpreter::STOPPED ||
state_ == WasmInterpreter::PAUSED) {
state_ = WasmInterpreter::RUNNING;
- Execute(frames_.back().code, frames_.back().ret_pc, kRunSteps);
+ Execute(codemap()->Preprocess(frames_.back().code),
titzer 2016/09/22 14:18:24 Maybe PushFrame should do this?
ahaas 2016/09/22 14:40:37 I moved Preprocess to FindCode in the CodeMap. I t
+ frames_.back().ret_pc, kRunSteps);
}
} while (state_ == WasmInterpreter::STOPPED);
return state_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698