Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index a399e4563ee3bcdf9962bc3941f72fab1e55f112..51d9ddb8fa2bce92be9616b446547b6d17094e4a 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -750,6 +750,9 @@ Object* LoadCallbackProperty(Arguments args) { |
{ |
// Leaving JavaScript. |
VMState state(EXTERNAL); |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
+ state.set_external_callback(getter_address); |
+#endif |
result = fun(v8::Utils::ToLocal(args.at<String>(4)), info); |
} |
RETURN_IF_SCHEDULED_EXCEPTION(); |
@@ -773,6 +776,9 @@ Object* StoreCallbackProperty(Arguments args) { |
{ |
// Leaving JavaScript. |
VMState state(EXTERNAL); |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
+ state.set_external_callback(setter_address); |
+#endif |
fun(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), info); |
} |
RETURN_IF_SCHEDULED_EXCEPTION(); |