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

Side by Side Diff: src/property-details.h

Issue 1515473003: [cleanup] Drop JSObject::GetOwnPropertyNames(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years 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
« no previous file with comments | « src/objects.cc ('k') | no next file » | 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_PROPERTY_DETAILS_H_ 5 #ifndef V8_PROPERTY_DETAILS_H_
6 #define V8_PROPERTY_DETAILS_H_ 6 #define V8_PROPERTY_DETAILS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/utils.h" 10 #include "src/utils.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // When creating a property, EVAL_DECLARED used to indicate that the property 32 // When creating a property, EVAL_DECLARED used to indicate that the property
33 // came from a sloppy-mode direct eval, and certain checks need to be done. 33 // came from a sloppy-mode direct eval, and certain checks need to be done.
34 // Cannot be stored in or returned from a descriptor's attributes bitfield. 34 // Cannot be stored in or returned from a descriptor's attributes bitfield.
35 EVAL_DECLARED = 128 35 EVAL_DECLARED = 128
36 }; 36 };
37 37
38 38
39 enum PropertyFilter { 39 enum PropertyFilter {
40 ALL_PROPERTIES = 0, 40 ALL_PROPERTIES = 0,
41 ONLY_WRITABLE = 1,
41 ONLY_ENUMERABLE = 2, 42 ONLY_ENUMERABLE = 2,
43 ONLY_CONFIGURABLE = 4,
42 SKIP_STRINGS = 8, 44 SKIP_STRINGS = 8,
43 SKIP_SYMBOLS = 16, 45 SKIP_SYMBOLS = 16,
44 ONLY_ALL_CAN_READ = 32, 46 ONLY_ALL_CAN_READ = 32,
45 ENUMERABLE_STRINGS = ONLY_ENUMERABLE | SKIP_SYMBOLS, 47 ENUMERABLE_STRINGS = ONLY_ENUMERABLE | SKIP_SYMBOLS,
46 }; 48 };
47 // Enable fast comparisons of PropertyAttributes against PropertyFilters. 49 // Enable fast comparisons of PropertyAttributes against PropertyFilters.
48 STATIC_ASSERT(ALL_PROPERTIES == static_cast<PropertyFilter>(NONE)); 50 STATIC_ASSERT(ALL_PROPERTIES == static_cast<PropertyFilter>(NONE));
51 STATIC_ASSERT(ONLY_WRITABLE == static_cast<PropertyFilter>(READ_ONLY));
49 STATIC_ASSERT(ONLY_ENUMERABLE == static_cast<PropertyFilter>(DONT_ENUM)); 52 STATIC_ASSERT(ONLY_ENUMERABLE == static_cast<PropertyFilter>(DONT_ENUM));
53 STATIC_ASSERT(ONLY_CONFIGURABLE == static_cast<PropertyFilter>(DONT_DELETE));
50 STATIC_ASSERT(((SKIP_STRINGS | SKIP_SYMBOLS | ONLY_ALL_CAN_READ) & 54 STATIC_ASSERT(((SKIP_STRINGS | SKIP_SYMBOLS | ONLY_ALL_CAN_READ) &
51 ALL_ATTRIBUTES_MASK) == 0); 55 ALL_ATTRIBUTES_MASK) == 0);
52 56
53 57
54 class Smi; 58 class Smi;
55 template<class> class TypeImpl; 59 template<class> class TypeImpl;
56 struct ZoneTypeConfig; 60 struct ZoneTypeConfig;
57 typedef TypeImpl<ZoneTypeConfig> Type; 61 typedef TypeImpl<ZoneTypeConfig> Type;
58 class TypeInfo; 62 class TypeInfo;
59 63
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 }; 389 };
386 390
387 391
388 std::ostream& operator<<(std::ostream& os, 392 std::ostream& operator<<(std::ostream& os,
389 const PropertyAttributes& attributes); 393 const PropertyAttributes& attributes);
390 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); 394 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details);
391 } // namespace internal 395 } // namespace internal
392 } // namespace v8 396 } // namespace v8
393 397
394 #endif // V8_PROPERTY_DETAILS_H_ 398 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698