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

Side by Side Diff: src/objects.h

Issue 7461127: Merge r8823 and r8824 into 3.3 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: Created 9 years, 4 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 | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 // Returns the number of elements in the dictionary filtering out properties 2578 // Returns the number of elements in the dictionary filtering out properties
2579 // with the specified attributes. 2579 // with the specified attributes.
2580 int NumberOfElementsFilterAttributes(PropertyAttributes filter); 2580 int NumberOfElementsFilterAttributes(PropertyAttributes filter);
2581 2581
2582 // Returns the number of enumerable elements in the dictionary. 2582 // Returns the number of enumerable elements in the dictionary.
2583 int NumberOfEnumElements(); 2583 int NumberOfEnumElements();
2584 2584
2585 // Copies keys to preallocated fixed array. 2585 // Copies keys to preallocated fixed array.
2586 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); 2586 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter);
2587 // Fill in details for properties into storage. 2587 // Fill in details for properties into storage.
2588 void CopyKeysTo(FixedArray* storage); 2588 void CopyKeysTo(FixedArray* storage, int index);
2589 2589
2590 // Accessors for next enumeration index. 2590 // Accessors for next enumeration index.
2591 void SetNextEnumerationIndex(int index) { 2591 void SetNextEnumerationIndex(int index) {
2592 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); 2592 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index));
2593 } 2593 }
2594 2594
2595 int NextEnumerationIndex() { 2595 int NextEnumerationIndex() {
2596 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); 2596 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value();
2597 } 2597 }
2598 2598
(...skipping 4266 matching lines...) Expand 10 before | Expand all | Expand 10 after
6865 } else { 6865 } else {
6866 value &= ~(1 << bit_position); 6866 value &= ~(1 << bit_position);
6867 } 6867 }
6868 return value; 6868 return value;
6869 } 6869 }
6870 }; 6870 };
6871 6871
6872 } } // namespace v8::internal 6872 } } // namespace v8::internal
6873 6873
6874 #endif // V8_OBJECTS_H_ 6874 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698