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

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

Issue 108083005: ES6: Add Object.getOwnPropertySymbols (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove FilterKeyNames from js and inverse filter check Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 24 matching lines...) Expand all
35 // Ecma-262 3rd 8.6.1 35 // Ecma-262 3rd 8.6.1
36 enum PropertyAttributes { 36 enum PropertyAttributes {
37 NONE = v8::None, 37 NONE = v8::None,
38 READ_ONLY = v8::ReadOnly, 38 READ_ONLY = v8::ReadOnly,
39 DONT_ENUM = v8::DontEnum, 39 DONT_ENUM = v8::DontEnum,
40 DONT_DELETE = v8::DontDelete, 40 DONT_DELETE = v8::DontDelete,
41 41
42 SEALED = DONT_DELETE, 42 SEALED = DONT_DELETE,
43 FROZEN = SEALED | READ_ONLY, 43 FROZEN = SEALED | READ_ONLY,
44 44
45 SYMBOLIC = 8, // Used to filter symbol names 45 STRING = 8, // Used to filter symbols and string names
46 DONT_SHOW = DONT_ENUM | SYMBOLIC, 46 SYMBOLIC = 16,
47 ABSENT = 16 // Used in runtime to indicate a property is absent. 47 PRIVATE_SYMBOL = 32,
48
49 DONT_SHOW = DONT_ENUM | SYMBOLIC | PRIVATE_SYMBOL,
50 ABSENT = 64 // Used in runtime to indicate a property is absent.
48 // ABSENT can never be stored in or returned from a descriptor's attributes 51 // ABSENT can never be stored in or returned from a descriptor's attributes
49 // bitfield. It is only used as a return value meaning the attributes of 52 // bitfield. It is only used as a return value meaning the attributes of
50 // a non-existent property. 53 // a non-existent property.
51 }; 54 };
52 55
53 56
54 namespace v8 { 57 namespace v8 {
55 namespace internal { 58 namespace internal {
56 59
57 class Smi; 60 class Smi;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 PropertyDetails(int value, PropertyAttributes attributes) { 322 PropertyDetails(int value, PropertyAttributes attributes) {
320 value_ = AttributesField::update(value, attributes); 323 value_ = AttributesField::update(value, attributes);
321 } 324 }
322 325
323 uint32_t value_; 326 uint32_t value_;
324 }; 327 };
325 328
326 } } // namespace v8::internal 329 } } // namespace v8::internal
327 330
328 #endif // V8_PROPERTY_DETAILS_H_ 331 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698