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

Unified Diff: runtime/vm/stub_code.cc

Issue 395233002: Move some isolate state setup from C++ code to JumpToExceptionHandler stub (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
Index: runtime/vm/stub_code.cc
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
index 060fac92ad36d9008babe88186c66a5410daeba2..30987b2e518ef386fe585126869ffec98c340417 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -103,6 +103,13 @@ bool StubCode::InInvocationStubForIsolate(Isolate* isolate, uword pc) {
}
+bool StubCode::InJumpToExceptionHandlerStub(uword pc) {
+ uword entry = StubCode::JumpToExceptionHandlerEntryPoint();
+ uword size = StubCode::JumpToExceptionHandlerSize();
+ return (pc >= entry) && (pc < (entry + size));
+}
+
+
RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
Isolate* isolate = Isolate::Current();
const Error& error = Error::Handle(isolate, cls.EnsureIsFinalized(isolate));

Powered by Google App Engine
This is Rietveld 408576698