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 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 void Map::set_prototype(Object* value, WriteBarrierMode mode) { | 3324 void Map::set_prototype(Object* value, WriteBarrierMode mode) { |
3325 ASSERT(value->IsNull() || value->IsJSReceiver()); | 3325 ASSERT(value->IsNull() || value->IsJSReceiver()); |
3326 WRITE_FIELD(this, kPrototypeOffset, value); | 3326 WRITE_FIELD(this, kPrototypeOffset, value); |
3327 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kPrototypeOffset, value, mode); | 3327 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kPrototypeOffset, value, mode); |
3328 } | 3328 } |
3329 | 3329 |
3330 | 3330 |
3331 DescriptorArray* Map::instance_descriptors() { | 3331 DescriptorArray* Map::instance_descriptors() { |
3332 Object* object = READ_FIELD(this, kInstanceDescriptorsOrBitField3Offset); | 3332 Object* object = READ_FIELD(this, kInstanceDescriptorsOrBitField3Offset); |
3333 if (object->IsSmi()) { | 3333 if (object->IsSmi()) { |
3334 return HEAP->empty_descriptor_array(); | 3334 return GetHeap()->empty_descriptor_array(); |
3335 } else { | 3335 } else { |
3336 return DescriptorArray::cast(object); | 3336 return DescriptorArray::cast(object); |
3337 } | 3337 } |
3338 } | 3338 } |
3339 | 3339 |
3340 | 3340 |
3341 void Map::init_instance_descriptors() { | 3341 void Map::init_instance_descriptors() { |
3342 WRITE_FIELD(this, kInstanceDescriptorsOrBitField3Offset, Smi::FromInt(0)); | 3342 WRITE_FIELD(this, kInstanceDescriptorsOrBitField3Offset, Smi::FromInt(0)); |
3343 } | 3343 } |
3344 | 3344 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3638 } | 3638 } |
3639 | 3639 |
3640 | 3640 |
3641 BOOL_ACCESSORS(SharedFunctionInfo, | 3641 BOOL_ACCESSORS(SharedFunctionInfo, |
3642 compiler_hints, | 3642 compiler_hints, |
3643 live_objects_may_exist, | 3643 live_objects_may_exist, |
3644 kLiveObjectsMayExist) | 3644 kLiveObjectsMayExist) |
3645 | 3645 |
3646 | 3646 |
3647 bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() { | 3647 bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() { |
3648 return initial_map() != HEAP->undefined_value(); | 3648 return initial_map() != GetHeap()->undefined_value(); |
3649 } | 3649 } |
3650 | 3650 |
3651 | 3651 |
3652 BOOL_GETTER(SharedFunctionInfo, | 3652 BOOL_GETTER(SharedFunctionInfo, |
3653 compiler_hints, | 3653 compiler_hints, |
3654 optimization_disabled, | 3654 optimization_disabled, |
3655 kOptimizationDisabled) | 3655 kOptimizationDisabled) |
3656 | 3656 |
3657 | 3657 |
3658 void SharedFunctionInfo::set_optimization_disabled(bool disable) { | 3658 void SharedFunctionInfo::set_optimization_disabled(bool disable) { |
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4906 #undef WRITE_INT_FIELD | 4906 #undef WRITE_INT_FIELD |
4907 #undef READ_SHORT_FIELD | 4907 #undef READ_SHORT_FIELD |
4908 #undef WRITE_SHORT_FIELD | 4908 #undef WRITE_SHORT_FIELD |
4909 #undef READ_BYTE_FIELD | 4909 #undef READ_BYTE_FIELD |
4910 #undef WRITE_BYTE_FIELD | 4910 #undef WRITE_BYTE_FIELD |
4911 | 4911 |
4912 | 4912 |
4913 } } // namespace v8::internal | 4913 } } // namespace v8::internal |
4914 | 4914 |
4915 #endif // V8_OBJECTS_INL_H_ | 4915 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |