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

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

Issue 223193005: Get rid of the TRANSITION PropertyType and consistently use CanHoldValue(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use number_ for LastAdded in transition results. Created 6 years, 8 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') | src/runtime.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 // 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 enum PropertyType { 70 enum PropertyType {
71 // Only in slow mode. 71 // Only in slow mode.
72 NORMAL = 0, 72 NORMAL = 0,
73 // Only in fast mode. 73 // Only in fast mode.
74 FIELD = 1, 74 FIELD = 1,
75 CONSTANT = 2, 75 CONSTANT = 2,
76 CALLBACKS = 3, 76 CALLBACKS = 3,
77 // Only in lookup results, not in descriptors. 77 // Only in lookup results, not in descriptors.
78 HANDLER = 4, 78 HANDLER = 4,
79 INTERCEPTOR = 5, 79 INTERCEPTOR = 5,
80 TRANSITION = 6,
81 // Only used as a marker in LookupResult. 80 // Only used as a marker in LookupResult.
82 NONEXISTENT = 7 81 NONEXISTENT = 6
83 }; 82 };
84 83
85 84
86 class Representation { 85 class Representation {
87 public: 86 public:
88 enum Kind { 87 enum Kind {
89 kNone, 88 kNone,
90 kInteger8, 89 kInteger8,
91 kUInteger8, 90 kUInteger8,
92 kInteger16, 91 kInteger16,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 PropertyDetails(int value, PropertyAttributes attributes) { 321 PropertyDetails(int value, PropertyAttributes attributes) {
323 value_ = AttributesField::update(value, attributes); 322 value_ = AttributesField::update(value, attributes);
324 } 323 }
325 324
326 uint32_t value_; 325 uint32_t value_;
327 }; 326 };
328 327
329 } } // namespace v8::internal 328 } } // namespace v8::internal
330 329
331 #endif // V8_PROPERTY_DETAILS_H_ 330 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/property.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698