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.h

Issue 9372023: Handle CALLBACKS transitions in NormalizeProperties, CopyInsert and RemoveTransitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/objects.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 // 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Descriptor(String* key, 95 Descriptor(String* key,
96 Object* value, 96 Object* value,
97 PropertyAttributes attributes, 97 PropertyAttributes attributes,
98 PropertyType type, 98 PropertyType type,
99 int index = 0) 99 int index = 0)
100 : key_(key), 100 : key_(key),
101 value_(value), 101 value_(value),
102 details_(attributes, type, index) { } 102 details_(attributes, type, index) { }
103 103
104 friend class DescriptorArray; 104 friend class DescriptorArray;
105 friend class JSObject;
105 }; 106 };
106 107
107 // A pointer from a map to the new map that is created by adding 108 // A pointer from a map to the new map that is created by adding
108 // a named property. These are key to the speed and functioning of V8. 109 // a named property. These are key to the speed and functioning of V8.
109 // The two maps should always have the same prototype, since 110 // The two maps should always have the same prototype, since
110 // MapSpace::CreateBackPointers depends on this. 111 // MapSpace::CreateBackPointers depends on this.
111 class MapTransitionDescriptor: public Descriptor { 112 class MapTransitionDescriptor: public Descriptor {
112 public: 113 public:
113 MapTransitionDescriptor(String* key, Map* map, PropertyAttributes attributes) 114 MapTransitionDescriptor(String* key, Map* map, PropertyAttributes attributes)
114 : Descriptor(key, map, attributes, MAP_TRANSITION) { } 115 : Descriptor(key, map, attributes, MAP_TRANSITION) { }
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 JSReceiver* holder_; 376 JSReceiver* holder_;
376 int number_; 377 int number_;
377 bool cacheable_; 378 bool cacheable_;
378 PropertyDetails details_; 379 PropertyDetails details_;
379 }; 380 };
380 381
381 382
382 } } // namespace v8::internal 383 } } // namespace v8::internal
383 384
384 #endif // V8_PROPERTY_H_ 385 #endif // V8_PROPERTY_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698