Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 1a9aea241947c2af79a969a5a389428c3f6e5e3b..0daacbe1af9026af4b824d90a7a7c58a82ab97cb 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -130,6 +130,12 @@ void FullCodeGenerator::Generate() { |
} |
#endif |
+ const FunctionEntryHook* hook_location = V8::GetFunctionEntryHookLocation(); |
+ if (*hook_location != NULL) { |
+ ProfileEntryHookStub stub; |
+ __ CallStub(&stub); |
+ } |
+ |
// Strict mode functions and builtins need to replace the receiver |
// with undefined when called as functions (without an explicit |
// receiver object). ecx is zero for method calls and non-zero for |
@@ -4550,7 +4556,6 @@ FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
return previous_; |
} |
- |
#undef __ |
} } // namespace v8::internal |