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

Unified Diff: src/serialize.cc

Issue 119036: * Modify simulator and ARM code generator to avoid swi... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
Index: src/serialize.cc
===================================================================
--- src/serialize.cc (revision 2053)
+++ src/serialize.cc (working copy)
@@ -450,20 +450,26 @@
const char* name) {
Address address;
switch (type) {
- case C_BUILTIN:
- address = Builtins::c_function_address(
- static_cast<Builtins::CFunctionId>(id));
+ case C_BUILTIN: {
+ ExternalReference ref(static_cast<Builtins::CFunctionId>(id));
+ address = ref.address();
break;
- case BUILTIN:
- address = Builtins::builtin_address(static_cast<Builtins::Name>(id));
+ }
+ case BUILTIN: {
+ ExternalReference ref(static_cast<Builtins::Name>(id));
+ address = ref.address();
break;
- case RUNTIME_FUNCTION:
- address = Runtime::FunctionForId(
- static_cast<Runtime::FunctionId>(id))->entry;
+ }
+ case RUNTIME_FUNCTION: {
+ ExternalReference ref(static_cast<Runtime::FunctionId>(id));
+ address = ref.address();
break;
- case IC_UTILITY:
- address = IC::AddressFromUtilityId(static_cast<IC::UtilityId>(id));
+ }
+ case IC_UTILITY: {
+ ExternalReference ref(IC_Utility(static_cast<IC::UtilityId>(id)));
+ address = ref.address();
break;
+ }
default:
UNREACHABLE();
return;
@@ -642,7 +648,7 @@
"StubCache::secondary_->value");
// Runtime entries
- Add(FUNCTION_ADDR(Runtime::PerformGC),
+ Add(ExternalReference::perform_gc_function().address(),
RUNTIME_ENTRY,
1,
"Runtime::PerformGC");

Powered by Google App Engine
This is Rietveld 408576698