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

Unified Diff: src/objects.h

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix function self-optimization; address first comment Created 9 years 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/objects.h
diff --git a/src/objects.h b/src/objects.h
index 5af771828999fc9b9a0370c6e2736e298f93c019..67a3683e980376d388f78c3ad787587f0557b8b2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5461,6 +5461,9 @@ class JSFunction: public JSObject {
// a weak list by the GC.
DECL_ACCESSORS(next_function_link, Object)
+ inline int profiler_ticks();
fschneider 2011/12/12 11:31:21 Shouldn't be this on SharedFunctionInfo instead?
fschneider 2011/12/13 11:53:01 This increases the size of each JSFunction by 1 wo
Jakob Kummerow 2011/12/14 08:42:31 Done.
+ inline void set_profiler_ticks(int ticks);
+
// Prints the name of the function using PrintF.
inline void PrintName() {
PrintName(stdout);
@@ -5500,7 +5503,9 @@ class JSFunction: public JSObject {
kPrototypeOrInitialMapOffset + kPointerSize;
static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize;
static const int kLiteralsOffset = kContextOffset + kPointerSize;
- static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize;
+ static const int kProfilerTicksOffset = kLiteralsOffset + kPointerSize;
+ static const int kNonWeakFieldsEndOffset =
+ kProfilerTicksOffset + kPointerSize;
static const int kNextFunctionLinkOffset = kNonWeakFieldsEndOffset;
static const int kSize = kNextFunctionLinkOffset + kPointerSize;

Powered by Google App Engine
This is Rietveld 408576698