Index: src/assembler.cc |
=================================================================== |
--- src/assembler.cc (revision 3149) |
+++ src/assembler.cc (working copy) |
@@ -522,6 +522,10 @@ |
: address_(Redirect(Builtins::c_function_address(id))) {} |
+ExternalReference::ExternalReference(ApiFunction* fun) |
+ : address_(Redirect(fun->address())) {} |
+ |
+ |
ExternalReference::ExternalReference(Builtins::Name name) |
: address_(Builtins::builtin_address(name)) {} |
@@ -608,6 +612,27 @@ |
return ExternalReference(Heap::NewSpaceAllocationLimitAddress()); |
} |
+ |
+ExternalReference ExternalReference::handle_scope_extensions_address() { |
+ return ExternalReference(HandleScope::current_extensions_address()); |
+} |
+ |
+ |
+ExternalReference ExternalReference::handle_scope_next_address() { |
+ return ExternalReference(HandleScope::current_next_address()); |
+} |
+ |
+ |
+ExternalReference ExternalReference::handle_scope_limit_address() { |
+ return ExternalReference(HandleScope::current_limit_address()); |
+} |
+ |
+ |
+ExternalReference ExternalReference::scheduled_exception_address() { |
+ return ExternalReference(Top::scheduled_exception_address()); |
+} |
+ |
+ |
#ifdef V8_NATIVE_REGEXP |
ExternalReference ExternalReference::re_check_stack_guard_state() { |