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

Side by Side Diff: src/objects.h

Issue 672323003: Widen definition of %HasComplexElements() to include non-enumerability (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename test Created 6 years, 2 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after
3544 } 3544 }
3545 3545
3546 // Returns the number of elements in the dictionary filtering out properties 3546 // Returns the number of elements in the dictionary filtering out properties
3547 // with the specified attributes. 3547 // with the specified attributes.
3548 int NumberOfElementsFilterAttributes(PropertyAttributes filter); 3548 int NumberOfElementsFilterAttributes(PropertyAttributes filter);
3549 3549
3550 // Returns the number of enumerable elements in the dictionary. 3550 // Returns the number of enumerable elements in the dictionary.
3551 int NumberOfEnumElements(); 3551 int NumberOfEnumElements();
3552 3552
3553 // Returns true if the dictionary contains any elements that are non-writable, 3553 // Returns true if the dictionary contains any elements that are non-writable,
3554 // non-configurable, or have getters/setters. 3554 // non-configurable, non-enumerable, or have getters/setters.
3555 bool HasComplexElements(); 3555 bool HasComplexElements();
3556 3556
3557 enum SortMode { UNSORTED, SORTED }; 3557 enum SortMode { UNSORTED, SORTED };
3558 // Copies keys to preallocated fixed array. 3558 // Copies keys to preallocated fixed array.
3559 void CopyKeysTo(FixedArray* storage, 3559 void CopyKeysTo(FixedArray* storage,
3560 PropertyAttributes filter, 3560 PropertyAttributes filter,
3561 SortMode sort_mode); 3561 SortMode sort_mode);
3562 // Fill in details for properties into storage. 3562 // Fill in details for properties into storage.
3563 void CopyKeysTo(FixedArray* storage, 3563 void CopyKeysTo(FixedArray* storage,
3564 int index, 3564 int index,
(...skipping 7346 matching lines...) Expand 10 before | Expand all | Expand 10 after
10911 } else { 10911 } else {
10912 value &= ~(1 << bit_position); 10912 value &= ~(1 << bit_position);
10913 } 10913 }
10914 return value; 10914 return value;
10915 } 10915 }
10916 }; 10916 };
10917 10917
10918 } } // namespace v8::internal 10918 } } // namespace v8::internal
10919 10919
10920 #endif // V8_OBJECTS_H_ 10920 #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