Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 4210) |
+++ src/objects-inl.h (working copy) |
@@ -2368,8 +2368,8 @@ |
ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) |
#endif |
+ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
-ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
ACCESSORS(SharedFunctionInfo, instance_class_name, Object, |
kInstanceClassNameOffset) |
ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) |
@@ -2401,6 +2401,7 @@ |
kFormalParameterCountOffset) |
INT_ACCESSORS(SharedFunctionInfo, expected_nof_properties, |
kExpectedNofPropertiesOffset) |
+INT_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) |
INT_ACCESSORS(SharedFunctionInfo, start_position_and_type, |
kStartPositionAndTypeOffset) |
INT_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) |
@@ -2573,6 +2574,7 @@ |
int JSFunction::NumberOfLiterals() { |
+ ASSERT(!IsBoilerplate()); |
return literals()->length(); |
} |