| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 } | 3081 } |
| 3082 | 3082 |
| 3083 | 3083 |
| 3084 void Code::set_allow_osr_at_loop_nesting_level(int level) { | 3084 void Code::set_allow_osr_at_loop_nesting_level(int level) { |
| 3085 ASSERT(kind() == FUNCTION); | 3085 ASSERT(kind() == FUNCTION); |
| 3086 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); | 3086 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); |
| 3087 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); | 3087 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); |
| 3088 } | 3088 } |
| 3089 | 3089 |
| 3090 | 3090 |
| 3091 int Code::profiler_ticks() { |
| 3092 ASSERT(kind() == FUNCTION); |
| 3093 return READ_BYTE_FIELD(this, kProfilerTicksOffset); |
| 3094 } |
| 3095 |
| 3096 |
| 3097 void Code::set_profiler_ticks(int ticks) { |
| 3098 ASSERT(kind() == FUNCTION); |
| 3099 ASSERT(ticks < 256); |
| 3100 WRITE_BYTE_FIELD(this, kProfilerTicksOffset, ticks); |
| 3101 } |
| 3102 |
| 3103 |
| 3091 unsigned Code::stack_slots() { | 3104 unsigned Code::stack_slots() { |
| 3092 ASSERT(kind() == OPTIMIZED_FUNCTION); | 3105 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 3093 return READ_UINT32_FIELD(this, kStackSlotsOffset); | 3106 return READ_UINT32_FIELD(this, kStackSlotsOffset); |
| 3094 } | 3107 } |
| 3095 | 3108 |
| 3096 | 3109 |
| 3097 void Code::set_stack_slots(unsigned slots) { | 3110 void Code::set_stack_slots(unsigned slots) { |
| 3098 ASSERT(kind() == OPTIMIZED_FUNCTION); | 3111 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 3099 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots); | 3112 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots); |
| 3100 } | 3113 } |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3500 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) | 3513 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
| 3501 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) | 3514 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) |
| 3502 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, | 3515 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, |
| 3503 kInstanceClassNameOffset) | 3516 kInstanceClassNameOffset) |
| 3504 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) | 3517 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) |
| 3505 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) | 3518 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) |
| 3506 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) | 3519 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) |
| 3507 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) | 3520 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) |
| 3508 ACCESSORS(SharedFunctionInfo, this_property_assignments, Object, | 3521 ACCESSORS(SharedFunctionInfo, this_property_assignments, Object, |
| 3509 kThisPropertyAssignmentsOffset) | 3522 kThisPropertyAssignmentsOffset) |
| 3523 SMI_ACCESSORS(SharedFunctionInfo, ic_age, kICAgeOffset) |
| 3510 | 3524 |
| 3511 SMI_ACCESSORS(SharedFunctionInfo, profiler_ticks, kProfilerTicksOffset) | |
| 3512 | 3525 |
| 3513 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, | 3526 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, |
| 3514 kHiddenPrototypeBit) | 3527 kHiddenPrototypeBit) |
| 3515 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) | 3528 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) |
| 3516 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, | 3529 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, |
| 3517 kNeedsAccessCheckBit) | 3530 kNeedsAccessCheckBit) |
| 3518 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, | 3531 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, |
| 3519 kReadOnlyPrototypeBit) | 3532 kReadOnlyPrototypeBit) |
| 3520 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, | 3533 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, |
| 3521 kIsExpressionBit) | 3534 kIsExpressionBit) |
| (...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4807 return isolate->factory()->undefined_value(); | 4820 return isolate->factory()->undefined_value(); |
| 4808 } | 4821 } |
| 4809 | 4822 |
| 4810 | 4823 |
| 4811 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { | 4824 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { |
| 4812 return heap->raw_unchecked_the_hole_value(); | 4825 return heap->raw_unchecked_the_hole_value(); |
| 4813 } | 4826 } |
| 4814 | 4827 |
| 4815 | 4828 |
| 4816 SMI_ACCESSORS(TypeFeedbackInfo, ic_total_count, kIcTotalCountOffset) | 4829 SMI_ACCESSORS(TypeFeedbackInfo, ic_total_count, kIcTotalCountOffset) |
| 4817 SMI_ACCESSORS(TypeFeedbackInfo, ic_with_typeinfo_count, | 4830 SMI_ACCESSORS(TypeFeedbackInfo, ic_with_type_info_count, |
| 4818 kIcWithTypeinfoCountOffset) | 4831 kIcWithTypeinfoCountOffset) |
| 4819 ACCESSORS(TypeFeedbackInfo, type_feedback_cells, TypeFeedbackCells, | 4832 ACCESSORS(TypeFeedbackInfo, type_feedback_cells, TypeFeedbackCells, |
| 4820 kTypeFeedbackCellsOffset) | 4833 kTypeFeedbackCellsOffset) |
| 4821 | 4834 |
| 4822 | 4835 |
| 4823 SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot) | 4836 SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot) |
| 4824 | 4837 |
| 4825 | 4838 |
| 4826 Relocatable::Relocatable(Isolate* isolate) { | 4839 Relocatable::Relocatable(Isolate* isolate) { |
| 4827 ASSERT(isolate == Isolate::Current()); | 4840 ASSERT(isolate == Isolate::Current()); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4928 #undef WRITE_UINT32_FIELD | 4941 #undef WRITE_UINT32_FIELD |
| 4929 #undef READ_SHORT_FIELD | 4942 #undef READ_SHORT_FIELD |
| 4930 #undef WRITE_SHORT_FIELD | 4943 #undef WRITE_SHORT_FIELD |
| 4931 #undef READ_BYTE_FIELD | 4944 #undef READ_BYTE_FIELD |
| 4932 #undef WRITE_BYTE_FIELD | 4945 #undef WRITE_BYTE_FIELD |
| 4933 | 4946 |
| 4934 | 4947 |
| 4935 } } // namespace v8::internal | 4948 } } // namespace v8::internal |
| 4936 | 4949 |
| 4937 #endif // V8_OBJECTS_INL_H_ | 4950 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |