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

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

Issue 805453002: Introduced PropertyType ACCESSOR_FIELD. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 6 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/property.cc ('k') | test/cctest/test-heap-profiler.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 // 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Must fit in the BitField PropertyDetails::StoreModeField. 50 // Must fit in the BitField PropertyDetails::StoreModeField.
51 enum PropertyLocation { IN_OBJECT = 0, IN_DESCRIPTOR = 1 }; 51 enum PropertyLocation { IN_OBJECT = 0, IN_DESCRIPTOR = 1 };
52 52
53 53
54 // Order of properties is significant. 54 // Order of properties is significant.
55 // Must fit in the BitField PropertyDetails::TypeField. 55 // Must fit in the BitField PropertyDetails::TypeField.
56 // A copy of this is in mirror-debugger.js. 56 // A copy of this is in mirror-debugger.js.
57 enum PropertyType { 57 enum PropertyType {
58 FIELD = (IN_OBJECT << 1) | DATA, 58 FIELD = (IN_OBJECT << 1) | DATA,
59 CONSTANT = (IN_DESCRIPTOR << 1) | DATA, 59 CONSTANT = (IN_DESCRIPTOR << 1) | DATA,
60 ACCESSOR_FIELD = (IN_OBJECT << 1) | ACCESSOR,
60 CALLBACKS = (IN_DESCRIPTOR << 1) | ACCESSOR 61 CALLBACKS = (IN_DESCRIPTOR << 1) | ACCESSOR
61 }; 62 };
62 63
63 64
64 class Representation { 65 class Representation {
65 public: 66 public:
66 enum Kind { 67 enum Kind {
67 kNone, 68 kNone,
68 kInteger8, 69 kInteger8,
69 kUInteger8, 70 kUInteger8,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 uint32_t value_; 319 uint32_t value_;
319 }; 320 };
320 321
321 322
322 std::ostream& operator<<(std::ostream& os, 323 std::ostream& operator<<(std::ostream& os,
323 const PropertyAttributes& attributes); 324 const PropertyAttributes& attributes);
324 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); 325 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details);
325 } } // namespace v8::internal 326 } } // namespace v8::internal
326 327
327 #endif // V8_PROPERTY_DETAILS_H_ 328 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/property.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698