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.h

Issue 10559032: Implementing weak referencing elements transition maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/mark-compact.cc ('k') | src/objects.cc » ('j') | 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 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 // 2431 //
2432 class DescriptorArray: public FixedArray { 2432 class DescriptorArray: public FixedArray {
2433 public: 2433 public:
2434 // Returns true for both shared empty_descriptor_array and for smis, which the 2434 // Returns true for both shared empty_descriptor_array and for smis, which the
2435 // map uses to encode additional bit fields when the descriptor array is not 2435 // map uses to encode additional bit fields when the descriptor array is not
2436 // yet used. 2436 // yet used.
2437 inline bool IsEmpty(); 2437 inline bool IsEmpty();
2438 inline bool MayContainTransitions(); 2438 inline bool MayContainTransitions();
2439 2439
2440 DECL_ACCESSORS(elements_transition_map, Map) 2440 DECL_ACCESSORS(elements_transition_map, Map)
2441 inline void ClearElementsTransition();
2441 2442
2442 // Returns the number of descriptors in the array. 2443 // Returns the number of descriptors in the array.
2443 int number_of_descriptors() { 2444 int number_of_descriptors() {
2444 ASSERT(length() >= kFirstIndex || IsEmpty()); 2445 ASSERT(length() >= kFirstIndex || IsEmpty());
2445 int len = length(); 2446 int len = length();
2446 return len <= kFirstIndex ? 0 : (len - kFirstIndex) / kDescriptorSize; 2447 return len <= kFirstIndex ? 0 : (len - kFirstIndex) / kDescriptorSize;
2447 } 2448 }
2448 2449
2449 int NextEnumerationIndex() { 2450 int NextEnumerationIndex() {
2450 if (IsEmpty()) return PropertyDetails::kInitialIndex; 2451 if (IsEmpty()) return PropertyDetails::kInitialIndex;
(...skipping 6329 matching lines...) Expand 10 before | Expand all | Expand 10 after
8780 } else { 8781 } else {
8781 value &= ~(1 << bit_position); 8782 value &= ~(1 << bit_position);
8782 } 8783 }
8783 return value; 8784 return value;
8784 } 8785 }
8785 }; 8786 };
8786 8787
8787 } } // namespace v8::internal 8788 } } // namespace v8::internal
8788 8789
8789 #endif // V8_OBJECTS_H_ 8790 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698