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

Unified Diff: src/objects-inl.h

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix snapshot build and memory leaks 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
« no previous file with comments | « src/objects.h ('k') | src/platform.h » ('j') | src/platform-linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 43eeb0f6269efeaacacea8b5842810b0df1a021f..b4ed90c7c226e70ae51c72dc36eef964c67060a0 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3688,6 +3688,9 @@ void SharedFunctionInfo::set_deopt_counter(Smi* value) {
}
+SMI_ACCESSORS(SharedFunctionInfo, call_counter, kCallCounterOffset)
+
+
bool SharedFunctionInfo::is_compiled() {
return code() !=
Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile);
@@ -3794,6 +3797,8 @@ void JSFunction::ReplaceCode(Code* code) {
}
if (was_optimized && !is_optimized) {
context()->global_context()->RemoveOptimizedFunction(this);
+ shared()->set_call_counter(
+ SharedFunctionInfo::kCallsUntilPrimitiveOptimization);
}
}
@@ -3876,6 +3881,9 @@ bool JSFunction::is_compiled() {
}
+SMI_ACCESSORS(JSFunction, profiler_ticks, kProfilerTicksOffset)
+
+
FixedArray* JSFunction::literals() {
ASSERT(!shared()->bound());
return literals_or_bindings();
« no previous file with comments | « src/objects.h ('k') | src/platform.h » ('j') | src/platform-linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698