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

Unified Diff: runtime/vm/stub_code.h

Issue 1270803003: VM: More abstract interface for generating stub calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/runtime_entry_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
diff --git a/runtime/vm/stub_code.h b/runtime/vm/stub_code.h
index 5eef8d110db969acf469f6fd5327f54606cd81c2..3a5ffc18693b4c2f048ce1b693c9e16b72aea35b 100644
--- a/runtime/vm/stub_code.h
+++ b/runtime/vm/stub_code.h
@@ -116,15 +116,9 @@ class StubCode : public AllStatic {
// Define the shared stub code accessors.
#define STUB_CODE_ACCESSOR(name) \
- static StubEntry* name##_entry() { \
+ static const StubEntry* name##_entry() { \
return name##_entry_; \
} \
- static const ExternalLabel& name##Label() { \
- return name##_entry()->label(); \
- } \
- static uword name##EntryPoint() { \
- return name##_entry()->EntryPoint(); \
- } \
static intptr_t name##Size() { \
return name##_entry()->Size(); \
}
@@ -133,7 +127,7 @@ class StubCode : public AllStatic {
static RawCode* GetAllocationStubForClass(const Class& cls);
- static uword UnoptimizedStaticCallEntryPoint(intptr_t num_args_tested);
+ static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested);
static const intptr_t kNoInstantiator = 0;
« no previous file with comments | « runtime/vm/runtime_entry_x64.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698