Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 83afd323bb767c253c8cb940235c95c7d426d51d..68bd159f3791d498854bcd820847434bee53149d 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5199,7 +5199,6 @@ ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) |
ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) |
ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) |
ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) |
-SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) |
SMI_ACCESSORS(FunctionTemplateInfo, length, kLengthOffset) |
@@ -5254,6 +5253,8 @@ SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, |
SMI_ACCESSORS(SharedFunctionInfo, opt_count_and_bailout_reason, |
kOptCountAndBailoutReasonOffset) |
SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) |
+SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) |
+SMI_ACCESSORS(SharedFunctionInfo, profiler_ticks, kProfilerTicksOffset) |
#else |
@@ -5304,9 +5305,15 @@ PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, |
PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
opt_count_and_bailout_reason, |
kOptCountAndBailoutReasonOffset) |
- |
PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, counters, kCountersOffset) |
+PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
+ ast_node_count, |
+ kAstNodeCountOffset) |
+PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, |
+ profiler_ticks, |
+ kProfilerTicksOffset) |
+ |
#endif |
@@ -5350,12 +5357,6 @@ void SharedFunctionInfo::set_optimization_disabled(bool disable) { |
} |
-int SharedFunctionInfo::profiler_ticks() { |
- if (code()->kind() != Code::FUNCTION) return 0; |
- return code()->profiler_ticks(); |
-} |
- |
- |
StrictMode SharedFunctionInfo::strict_mode() { |
return BooleanBit::get(compiler_hints(), kStrictModeFunction) |
? STRICT : SLOPPY; |