Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 34595f83ff4257510eccd7a8f815e61777333b8e..34346a9105d3377ce3fe6c1f2dc558f20d24cea9 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -522,6 +522,10 @@ ExternalReference::ExternalReference(Builtins::CFunctionId id) |
: 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 @@ ExternalReference ExternalReference::new_space_allocation_limit_address() { |
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() { |