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"); |