Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 6728ef4a0f4e78bed7b3b56e3ed7e0f2d286db2a..c2e6c45c3ac41875ddf835cd0251f410693452de 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -39,6 +39,7 @@ |
#include "builtins.h" |
#include "counters.h" |
#include "cpu.h" |
+#include "cpu-profiler.h" |
#include "debug.h" |
#include "deoptimizer.h" |
#include "execution.h" |
@@ -1328,6 +1329,30 @@ ExternalReference ExternalReference::address_of_uint32_bias() { |
} |
+ExternalReference ExternalReference::is_profiling_address(Isolate* isolate) { |
+ return ExternalReference(isolate->cpu_profiler()->is_profiling_address()); |
+} |
+ |
+ |
+ExternalReference ExternalReference::invoke_function_callback( |
+ Isolate* isolate) { |
+ Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback); |
+ ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL; |
+ ApiFunction thunk_fun(thunk_address); |
+ return ExternalReference(&thunk_fun, thunk_type, isolate); |
+} |
+ |
+ |
+ExternalReference ExternalReference::invoke_accessor_getter_callback( |
+ Isolate* isolate) { |
+ Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback); |
+ ExternalReference::Type thunk_type = |
+ ExternalReference::PROFILING_GETTER_CALL; |
+ ApiFunction thunk_fun(thunk_address); |
+ return ExternalReference(&thunk_fun, thunk_type, isolate); |
+} |
+ |
+ |
#ifndef V8_INTERPRETED_REGEXP |
ExternalReference ExternalReference::re_check_stack_guard_state( |