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

Side by Side Diff: src/objects.h

Issue 7576003: Merge r8823 and r8824 into 3.2 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.2/
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 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after
2547 // Returns the number of elements in the dictionary filtering out properties 2547 // Returns the number of elements in the dictionary filtering out properties
2548 // with the specified attributes. 2548 // with the specified attributes.
2549 int NumberOfElementsFilterAttributes(PropertyAttributes filter); 2549 int NumberOfElementsFilterAttributes(PropertyAttributes filter);
2550 2550
2551 // Returns the number of enumerable elements in the dictionary. 2551 // Returns the number of enumerable elements in the dictionary.
2552 int NumberOfEnumElements(); 2552 int NumberOfEnumElements();
2553 2553
2554 // Copies keys to preallocated fixed array. 2554 // Copies keys to preallocated fixed array.
2555 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); 2555 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter);
2556 // Fill in details for properties into storage. 2556 // Fill in details for properties into storage.
2557 void CopyKeysTo(FixedArray* storage); 2557 void CopyKeysTo(FixedArray* storage, int index);
2558 2558
2559 // Accessors for next enumeration index. 2559 // Accessors for next enumeration index.
2560 void SetNextEnumerationIndex(int index) { 2560 void SetNextEnumerationIndex(int index) {
2561 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); 2561 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index));
2562 } 2562 }
2563 2563
2564 int NextEnumerationIndex() { 2564 int NextEnumerationIndex() {
2565 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); 2565 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value();
2566 } 2566 }
2567 2567
(...skipping 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6678 } else { 6678 } else {
6679 value &= ~(1 << bit_position); 6679 value &= ~(1 << bit_position);
6680 } 6680 }
6681 return value; 6681 return value;
6682 } 6682 }
6683 }; 6683 };
6684 6684
6685 } } // namespace v8::internal 6685 } } // namespace v8::internal
6686 6686
6687 #endif // V8_OBJECTS_H_ 6687 #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