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

Unified Diff: runtime/vm/stub_code.cc

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/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | 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 4282dc4bc64638e853808c53192ce7df730320c8..486531a327fd6d00d69afe28b076a9c2fc17983e 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -61,14 +61,14 @@ void StubCode::VisitObjectPointers(ObjectPointerVisitor* visitor) {
bool StubCode::InInvocationStub(uword pc) {
- uword entry = StubCode::InvokeDartCodeEntryPoint();
+ uword entry = StubCode::InvokeDartCode_entry()->EntryPoint();
uword size = StubCode::InvokeDartCodeSize();
return (pc >= entry) && (pc < (entry + size));
}
bool StubCode::InJumpToExceptionHandlerStub(uword pc) {
- uword entry = StubCode::JumpToExceptionHandlerEntryPoint();
+ uword entry = StubCode::JumpToExceptionHandler_entry()->EntryPoint();
uword size = StubCode::JumpToExceptionHandlerSize();
return (pc >= entry) && (pc < (entry + size));
}
@@ -109,17 +109,18 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
}
-uword StubCode::UnoptimizedStaticCallEntryPoint(intptr_t num_args_tested) {
+const StubEntry* StubCode::UnoptimizedStaticCallEntry(
+ intptr_t num_args_tested) {
switch (num_args_tested) {
case 0:
- return ZeroArgsUnoptimizedStaticCallEntryPoint();
+ return ZeroArgsUnoptimizedStaticCall_entry();
case 1:
- return OneArgUnoptimizedStaticCallEntryPoint();
+ return OneArgUnoptimizedStaticCall_entry();
case 2:
- return TwoArgsUnoptimizedStaticCallEntryPoint();
+ return TwoArgsUnoptimizedStaticCall_entry();
default:
UNIMPLEMENTED();
- return 0;
+ return NULL;
}
}
@@ -145,7 +146,8 @@ RawCode* StubCode::Generate(const char* name,
const char* StubCode::NameOfStub(uword entry_point) {
#define VM_STUB_CODE_TESTER(name) \
- if ((name##_entry() != NULL) && (entry_point == name##EntryPoint())) { \
+ if ((name##_entry() != NULL) && \
+ (entry_point == name##_entry()->EntryPoint())) { \
return ""#name; \
}
VM_STUB_CODE_LIST(VM_STUB_CODE_TESTER);
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698