| 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();
|
|
|