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

Unified Diff: runtime/vm/stub_code.cc

Issue 354063004: Allow StackFrameIterator to be used on a different thread than the isolate whose stack frames are b… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « runtime/vm/stub_code.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code.cc
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
index d7b0030b80bd2d4ca2b34fa58b0720ce8e23591f..aef2062f697210c203075dd66126d2269b21957a 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -91,8 +91,14 @@ void StubCode::VisitObjectPointers(ObjectPointerVisitor* visitor) {
bool StubCode::InInvocationStub(uword pc) {
- return ((pc >= InvokeDartCodeEntryPoint()) &&
- (pc < (InvokeDartCodeEntryPoint() + InvokeDartCodeSize())));
+ return InInvocationStubForIsolate(Isolate::Current(), pc);
+}
+
+
+bool StubCode::InInvocationStubForIsolate(Isolate* isolate, uword pc) {
+ uword entry = isolate->stub_code()->InvokeDartCodeEntryPoint();
+ uword size = isolate->stub_code()->InvokeDartCodeSize();
+ return (pc >= entry) && (pc < (entry + size));
}
« no previous file with comments | « runtime/vm/stub_code.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698