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

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

Issue 10656018: Separate stub types from property types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also moving all other bits to the left Created 8 years, 6 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.h ('k') | src/stub-cache.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 enum PropertyType { 57 enum PropertyType {
58 NORMAL = 0, // only in slow mode 58 NORMAL = 0, // only in slow mode
59 FIELD = 1, // only in fast mode 59 FIELD = 1, // only in fast mode
60 CONSTANT_FUNCTION = 2, // only in fast mode 60 CONSTANT_FUNCTION = 2, // only in fast mode
61 CALLBACKS = 3, 61 CALLBACKS = 3,
62 HANDLER = 4, // only in lookup results, not in descriptors 62 HANDLER = 4, // only in lookup results, not in descriptors
63 INTERCEPTOR = 5, // only in lookup results, not in descriptors 63 INTERCEPTOR = 5, // only in lookup results, not in descriptors
64 // All properties before MAP_TRANSITION are real. 64 // All properties before MAP_TRANSITION are real.
65 MAP_TRANSITION = 6, // only in fast mode 65 MAP_TRANSITION = 6, // only in fast mode
66 CONSTANT_TRANSITION = 7, // only in fast mode 66 CONSTANT_TRANSITION = 7, // only in fast mode
67 NULL_DESCRIPTOR = 8, // only in fast mode 67 NULL_DESCRIPTOR = 8 // only in fast mode
68 // There are no IC stubs for NULL_DESCRIPTORS. Therefore,
69 // NULL_DESCRIPTOR can be used as the type flag for IC stubs for
70 // nonexistent properties.
71 NONEXISTENT = NULL_DESCRIPTOR
72 }; 68 };
73 69
74 70
75 // PropertyDetails captures type and attributes for a property. 71 // PropertyDetails captures type and attributes for a property.
76 // They are used both in property dictionaries and instance descriptors. 72 // They are used both in property dictionaries and instance descriptors.
77 class PropertyDetails BASE_EMBEDDED { 73 class PropertyDetails BASE_EMBEDDED {
78 public: 74 public:
79 PropertyDetails(PropertyAttributes attributes, 75 PropertyDetails(PropertyAttributes attributes,
80 PropertyType type, 76 PropertyType type,
81 int index = 0) { 77 int index = 0) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 118
123 static const int kInitialIndex = 1; 119 static const int kInitialIndex = 1;
124 120
125 private: 121 private:
126 uint32_t value_; 122 uint32_t value_;
127 }; 123 };
128 124
129 } } // namespace v8::internal 125 } } // namespace v8::internal
130 126
131 #endif // V8_PROPERTY_DETAILS_H_ 127 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698