Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: src/x64/full-codegen-x64.cc

Issue 10706002: Implements a new API to set a function entry hook for profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sketch ARM code stub. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/x64/full-codegen-x64.cc
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
index 050c0d657ef91fcfc476c870f3d3ce0b17241569..6aef7267807456a12dba9f5f7f3b89d52de14ae8 100644
--- a/src/x64/full-codegen-x64.cc
+++ b/src/x64/full-codegen-x64.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). rcx is zero for method calls and non-zero for

Powered by Google App Engine
This is Rietveld 408576698