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

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

Issue 157543002: A64: Synchronize with r18581. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/promise.js ('k') | src/runtime.h » ('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 // 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;
58 class Type; 61 template<class> class TypeImpl;
62 struct HeapTypeConfig;
63 typedef TypeImpl<HeapTypeConfig> Type;
59 class TypeInfo; 64 class TypeInfo;
60 65
61 // Type of properties. 66 // Type of properties.
62 // Order of properties is significant. 67 // Order of properties is significant.
63 // Must fit in the BitField PropertyDetails::TypeField. 68 // Must fit in the BitField PropertyDetails::TypeField.
64 // A copy of this is in mirror-debugger.js. 69 // A copy of this is in mirror-debugger.js.
65 enum PropertyType { 70 enum PropertyType {
66 // Only in slow mode. 71 // Only in slow mode.
67 NORMAL = 0, 72 NORMAL = 0,
68 // Only in fast mode. 73 // Only in fast mode.
(...skipping 26 matching lines...) Expand all
95 kNumRepresentations 100 kNumRepresentations
96 }; 101 };
97 102
98 Representation() : kind_(kNone) { } 103 Representation() : kind_(kNone) { }
99 104
100 static Representation None() { return Representation(kNone); } 105 static Representation None() { return Representation(kNone); }
101 static Representation Tagged() { return Representation(kTagged); } 106 static Representation Tagged() { return Representation(kTagged); }
102 static Representation Integer8() { return Representation(kInteger8); } 107 static Representation Integer8() { return Representation(kInteger8); }
103 static Representation UInteger8() { return Representation(kUInteger8); } 108 static Representation UInteger8() { return Representation(kUInteger8); }
104 static Representation Integer16() { return Representation(kInteger16); } 109 static Representation Integer16() { return Representation(kInteger16); }
105 static Representation UInteger16() { 110 static Representation UInteger16() { return Representation(kUInteger16); }
106 return Representation(kUInteger16);
107 }
108 static Representation Smi() { return Representation(kSmi); } 111 static Representation Smi() { return Representation(kSmi); }
109 static Representation Integer32() { return Representation(kInteger32); } 112 static Representation Integer32() { return Representation(kInteger32); }
110 static Representation Double() { return Representation(kDouble); } 113 static Representation Double() { return Representation(kDouble); }
111 static Representation HeapObject() { return Representation(kHeapObject); } 114 static Representation HeapObject() { return Representation(kHeapObject); }
112 static Representation External() { return Representation(kExternal); } 115 static Representation External() { return Representation(kExternal); }
113 116
114 static Representation FromKind(Kind kind) { return Representation(kind); } 117 static Representation FromKind(Kind kind) { return Representation(kind); }
115 118
116 static Representation FromType(Handle<Type> type); 119 static Representation FromType(Handle<Type> type);
117 120
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 PropertyDetails(int value, PropertyAttributes attributes) { 320 PropertyDetails(int value, PropertyAttributes attributes) {
318 value_ = AttributesField::update(value, attributes); 321 value_ = AttributesField::update(value, attributes);
319 } 322 }
320 323
321 uint32_t value_; 324 uint32_t value_;
322 }; 325 };
323 326
324 } } // namespace v8::internal 327 } } // namespace v8::internal
325 328
326 #endif // V8_PROPERTY_DETAILS_H_ 329 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/promise.js ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698