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

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

Issue 492433005: Get rid of the NONEXISTENT PropertyType (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix lookupresult Created 6 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 | « src/property.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 28 matching lines...) Expand all
39 struct ZoneTypeConfig; 39 struct ZoneTypeConfig;
40 typedef TypeImpl<ZoneTypeConfig> Type; 40 typedef TypeImpl<ZoneTypeConfig> Type;
41 class TypeInfo; 41 class TypeInfo;
42 42
43 // Type of properties. 43 // Type of properties.
44 // Order of properties is significant. 44 // Order of properties is significant.
45 // Must fit in the BitField PropertyDetails::TypeField. 45 // Must fit in the BitField PropertyDetails::TypeField.
46 // A copy of this is in mirror-debugger.js. 46 // A copy of this is in mirror-debugger.js.
47 enum PropertyType { 47 enum PropertyType {
48 // Only in slow mode. 48 // Only in slow mode.
49 NORMAL = 0, 49 NORMAL = 0,
50 // Only in fast mode. 50 // Only in fast mode.
51 FIELD = 1, 51 FIELD = 1,
52 CONSTANT = 2, 52 CONSTANT = 2,
53 CALLBACKS = 3, 53 CALLBACKS = 3,
54 // Only in lookup results, not in descriptors. 54 // Only in lookup results, not in descriptors.
55 HANDLER = 4, 55 HANDLER = 4,
56 INTERCEPTOR = 5, 56 INTERCEPTOR = 5
57 // Only used as a marker in LookupResult.
58 NONEXISTENT = 6
59 }; 57 };
60 58
61 59
62 class Representation { 60 class Representation {
63 public: 61 public:
64 enum Kind { 62 enum Kind {
65 kNone, 63 kNone,
66 kInteger8, 64 kInteger8,
67 kUInteger8, 65 kUInteger8,
68 kInteger16, 66 kInteger16,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 PropertyDetails(int value, PropertyAttributes attributes) { 296 PropertyDetails(int value, PropertyAttributes attributes) {
299 value_ = AttributesField::update(value, attributes); 297 value_ = AttributesField::update(value, attributes);
300 } 298 }
301 299
302 uint32_t value_; 300 uint32_t value_;
303 }; 301 };
304 302
305 } } // namespace v8::internal 303 } } // namespace v8::internal
306 304
307 #endif // V8_PROPERTY_DETAILS_H_ 305 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/property.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698