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

Unified Diff: runtime/vm/stub_code.h

Issue 365983002: Make isolate specific stub code accessors instance methods instead (Closed) Base URL: http://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/intermediate_language_x64.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code.h
===================================================================
--- runtime/vm/stub_code.h (revision 37923)
+++ runtime/vm/stub_code.h (working copy)
@@ -140,16 +140,16 @@
// Define the per-isolate stub code accessors.
#define STUB_CODE_ACCESSOR(name) \
- static StubEntry* name##_entry() { \
- return Isolate::Current()->stub_code()->name##_entry_; \
+ StubEntry* name##_entry() { \
+ return name##_entry_; \
} \
- static const ExternalLabel& name##Label() { \
+ const ExternalLabel& name##Label() { \
return name##_entry()->label(); \
} \
- static uword name##EntryPoint() { \
+ uword name##EntryPoint() { \
return name##_entry()->EntryPoint(); \
} \
- static intptr_t name##Size() { \
+ intptr_t name##Size() { \
return name##_entry()->Size(); \
}
STUB_CODE_LIST(STUB_CODE_ACCESSOR);
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698