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

Side by Side Diff: src/objects.h

Issue 7566032: Merge r8823 and r8824 into 3.4 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.4/
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 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2754 2754
2755 // Returns the number of enumerable elements in the dictionary. 2755 // Returns the number of enumerable elements in the dictionary.
2756 int NumberOfEnumElements(); 2756 int NumberOfEnumElements();
2757 2757
2758 enum SortMode { UNSORTED, SORTED }; 2758 enum SortMode { UNSORTED, SORTED };
2759 // Copies keys to preallocated fixed array. 2759 // Copies keys to preallocated fixed array.
2760 void CopyKeysTo(FixedArray* storage, 2760 void CopyKeysTo(FixedArray* storage,
2761 PropertyAttributes filter, 2761 PropertyAttributes filter,
2762 SortMode sort_mode); 2762 SortMode sort_mode);
2763 // Fill in details for properties into storage. 2763 // Fill in details for properties into storage.
2764 void CopyKeysTo(FixedArray* storage, SortMode sort_mode); 2764 void CopyKeysTo(FixedArray* storage, int index, SortMode sort_mode);
2765 2765
2766 // Accessors for next enumeration index. 2766 // Accessors for next enumeration index.
2767 void SetNextEnumerationIndex(int index) { 2767 void SetNextEnumerationIndex(int index) {
2768 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); 2768 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index));
2769 } 2769 }
2770 2770
2771 int NextEnumerationIndex() { 2771 int NextEnumerationIndex() {
2772 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); 2772 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value();
2773 } 2773 }
2774 2774
(...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after
7174 } else { 7174 } else {
7175 value &= ~(1 << bit_position); 7175 value &= ~(1 << bit_position);
7176 } 7176 }
7177 return value; 7177 return value;
7178 } 7178 }
7179 }; 7179 };
7180 7180
7181 } } // namespace v8::internal 7181 } } // namespace v8::internal
7182 7182
7183 #endif // V8_OBJECTS_H_ 7183 #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