Remove mterp.
Test: test.py
Change-Id: Id800bcf86965ab19cf1e79ecbfa8996a6a6c335e
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 080ba63..d30dd87 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -781,7 +781,7 @@
}
void SetNonStandardExitsEnabled() {
- DoAndMaybeSwitchInterpreter([=](){ non_standard_exits_enabled_ = true; });
+ non_standard_exits_enabled_ = true;
}
bool AreAsyncExceptionsThrown() const {
@@ -789,20 +789,9 @@
}
void SetAsyncExceptionsThrown() {
- DoAndMaybeSwitchInterpreter([=](){ async_exceptions_thrown_ = true; });
+ async_exceptions_thrown_ = true;
}
- // Change state and re-check which interpreter should be used.
- //
- // This must be called whenever there is an event that forces
- // us to use different interpreter (e.g. debugger is attached).
- //
- // Changing the state using the lamda gives us some multihreading safety.
- // It ensures that two calls do not interfere with each other and
- // it makes it possible to DCHECK that thread local flag is correct.
- template<typename Action>
- static void DoAndMaybeSwitchInterpreter(Action lamda);
-
// Returns the build fingerprint, if set. Otherwise an empty string is returned.
std::string GetFingerprint() {
return fingerprint_;