| 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 3859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3870 | 3870 |
| 3871 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) | 3871 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) |
| 3872 ACCESSORS(ObjectTemplateInfo, internal_field_count, Object, | 3872 ACCESSORS(ObjectTemplateInfo, internal_field_count, Object, |
| 3873 kInternalFieldCountOffset) | 3873 kInternalFieldCountOffset) |
| 3874 | 3874 |
| 3875 ACCESSORS(SignatureInfo, receiver, Object, kReceiverOffset) | 3875 ACCESSORS(SignatureInfo, receiver, Object, kReceiverOffset) |
| 3876 ACCESSORS(SignatureInfo, args, Object, kArgsOffset) | 3876 ACCESSORS(SignatureInfo, args, Object, kArgsOffset) |
| 3877 | 3877 |
| 3878 ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset) | 3878 ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset) |
| 3879 | 3879 |
| 3880 ACCESSORS(AllocationSiteInfo, payload, Object, kPayloadOffset) |
| 3881 |
| 3880 ACCESSORS(Script, source, Object, kSourceOffset) | 3882 ACCESSORS(Script, source, Object, kSourceOffset) |
| 3881 ACCESSORS(Script, name, Object, kNameOffset) | 3883 ACCESSORS(Script, name, Object, kNameOffset) |
| 3882 ACCESSORS(Script, id, Object, kIdOffset) | 3884 ACCESSORS(Script, id, Object, kIdOffset) |
| 3883 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) | 3885 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) |
| 3884 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 3886 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
| 3885 ACCESSORS(Script, data, Object, kDataOffset) | 3887 ACCESSORS(Script, data, Object, kDataOffset) |
| 3886 ACCESSORS(Script, context_data, Object, kContextOffset) | 3888 ACCESSORS(Script, context_data, Object, kContextOffset) |
| 3887 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) | 3889 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) |
| 3888 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 3890 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
| 3889 ACCESSORS_TO_SMI(Script, compilation_type, kCompilationTypeOffset) | 3891 ACCESSORS_TO_SMI(Script, compilation_type, kCompilationTypeOffset) |
| (...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5340 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) { | 5342 Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) { |
| 5341 return isolate->factory()->the_hole_value(); | 5343 return isolate->factory()->the_hole_value(); |
| 5342 } | 5344 } |
| 5343 | 5345 |
| 5344 | 5346 |
| 5345 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) { | 5347 Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) { |
| 5346 return isolate->factory()->undefined_value(); | 5348 return isolate->factory()->undefined_value(); |
| 5347 } | 5349 } |
| 5348 | 5350 |
| 5349 | 5351 |
| 5352 Handle<Object> TypeFeedbackCells::MonomorphicArraySentinel( |
| 5353 ElementsKind elements_kind) { |
| 5354 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind))); |
| 5355 } |
| 5356 |
| 5357 |
| 5350 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { | 5358 Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) { |
| 5351 return heap->the_hole_value(); | 5359 return heap->the_hole_value(); |
| 5352 } | 5360 } |
| 5353 | 5361 |
| 5354 | 5362 |
| 5355 int TypeFeedbackInfo::ic_total_count() { | 5363 int TypeFeedbackInfo::ic_total_count() { |
| 5356 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); | 5364 int current = Smi::cast(READ_FIELD(this, kStorage1Offset))->value(); |
| 5357 return ICTotalCountField::decode(current); | 5365 return ICTotalCountField::decode(current); |
| 5358 } | 5366 } |
| 5359 | 5367 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5541 #undef WRITE_UINT32_FIELD | 5549 #undef WRITE_UINT32_FIELD |
| 5542 #undef READ_SHORT_FIELD | 5550 #undef READ_SHORT_FIELD |
| 5543 #undef WRITE_SHORT_FIELD | 5551 #undef WRITE_SHORT_FIELD |
| 5544 #undef READ_BYTE_FIELD | 5552 #undef READ_BYTE_FIELD |
| 5545 #undef WRITE_BYTE_FIELD | 5553 #undef WRITE_BYTE_FIELD |
| 5546 | 5554 |
| 5547 | 5555 |
| 5548 } } // namespace v8::internal | 5556 } } // namespace v8::internal |
| 5549 | 5557 |
| 5550 #endif // V8_OBJECTS_INL_H_ | 5558 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |