Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 11523) |
+++ src/objects-inl.h (working copy) |
@@ -3082,7 +3082,6 @@ |
int Code::profiler_ticks() { |
- if (kind() == OPTIMIZED_FUNCTION) return 0; |
ASSERT_EQ(FUNCTION, kind()); |
return READ_BYTE_FIELD(this, kProfilerTicksOffset); |
} |
@@ -3673,6 +3672,12 @@ |
} |
+int SharedFunctionInfo::profiler_ticks() { |
+ if (Code::FUNCTION != code()->kind()) return 0; |
Michael Starzinger
2012/05/08 12:27:09
Could we flip the operands here?
|
+ return code()->profiler_ticks(); |
+} |
+ |
+ |
LanguageMode SharedFunctionInfo::language_mode() { |
int hints = compiler_hints(); |
if (BooleanBit::get(hints, kExtendedModeFunction)) { |