Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: src/objects-inl.h

Issue 9837005: Age inline caches after context disposal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Advance incremental marking Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4111 return reinterpret_cast<JSMessageObject*>(obj); 4111 return reinterpret_cast<JSMessageObject*>(obj);
4112 } 4112 }
4113 4113
4114 4114
4115 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 4115 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
4116 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 4116 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
4117 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 4117 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
4118 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 4118 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
4119 ACCESSORS(Code, type_feedback_info, Object, kTypeFeedbackInfoOffset) 4119 ACCESSORS(Code, type_feedback_info, Object, kTypeFeedbackInfoOffset)
4120 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) 4120 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset)
4121 4121 INT_ACCESSORS(Code, ic_age, kICAgeOffset)
4122 4122
4123 byte* Code::instruction_start() { 4123 byte* Code::instruction_start() {
4124 return FIELD_ADDR(this, kHeaderSize); 4124 return FIELD_ADDR(this, kHeaderSize);
4125 } 4125 }
4126 4126
4127 4127
4128 byte* Code::instruction_end() { 4128 byte* Code::instruction_end() {
4129 return instruction_start() + instruction_size(); 4129 return instruction_start() + instruction_size();
4130 } 4130 }
4131 4131
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
4694 template <int entrysize> 4694 template <int entrysize>
4695 MaybeObject* ObjectHashTableShape<entrysize>::AsObject(Object* key) { 4695 MaybeObject* ObjectHashTableShape<entrysize>::AsObject(Object* key) {
4696 return key; 4696 return key;
4697 } 4697 }
4698 4698
4699 4699
4700 void Map::ClearCodeCache(Heap* heap) { 4700 void Map::ClearCodeCache(Heap* heap) {
4701 // No write barrier is needed since empty_fixed_array is not in new space. 4701 // No write barrier is needed since empty_fixed_array is not in new space.
4702 // Please note this function is used during marking: 4702 // Please note this function is used during marking:
4703 // - MarkCompactCollector::MarkUnmarkedObject 4703 // - MarkCompactCollector::MarkUnmarkedObject
4704 // - IncrementalMarking::Step
4704 ASSERT(!heap->InNewSpace(heap->raw_unchecked_empty_fixed_array())); 4705 ASSERT(!heap->InNewSpace(heap->raw_unchecked_empty_fixed_array()));
4705 WRITE_FIELD(this, kCodeCacheOffset, heap->raw_unchecked_empty_fixed_array()); 4706 WRITE_FIELD(this, kCodeCacheOffset, heap->raw_unchecked_empty_fixed_array());
4706 } 4707 }
4707 4708
4708 4709
4709 void JSArray::EnsureSize(int required_size) { 4710 void JSArray::EnsureSize(int required_size) {
4710 ASSERT(HasFastTypeElements()); 4711 ASSERT(HasFastTypeElements());
4711 FixedArray* elts = FixedArray::cast(elements()); 4712 FixedArray* elts = FixedArray::cast(elements());
4712 const int kArraySizeThatFitsComfortablyInNewSpace = 128; 4713 const int kArraySizeThatFitsComfortablyInNewSpace = 128;
4713 if (elts->length() < required_size) { 4714 if (elts->length() < required_size) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
4915 #undef WRITE_UINT32_FIELD 4916 #undef WRITE_UINT32_FIELD
4916 #undef READ_SHORT_FIELD 4917 #undef READ_SHORT_FIELD
4917 #undef WRITE_SHORT_FIELD 4918 #undef WRITE_SHORT_FIELD
4918 #undef READ_BYTE_FIELD 4919 #undef READ_BYTE_FIELD
4919 #undef WRITE_BYTE_FIELD 4920 #undef WRITE_BYTE_FIELD
4920 4921
4921 4922
4922 } } // namespace v8::internal 4923 } } // namespace v8::internal
4923 4924
4924 #endif // V8_OBJECTS_INL_H_ 4925 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698