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

Side by Side Diff: src/property.h

Issue 8190: Revert changes 601 and 602. TBR (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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-inl.h ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int index = 0) 92 int index = 0)
93 : key_(key), 93 : key_(key),
94 value_(value), 94 value_(value),
95 details_(attributes, type, index) { } 95 details_(attributes, type, index) { }
96 96
97 friend class DescriptorWriter; 97 friend class DescriptorWriter;
98 friend class DescriptorReader; 98 friend class DescriptorReader;
99 friend class DescriptorArray; 99 friend class DescriptorArray;
100 }; 100 };
101 101
102 // A pointer from a map to the new map that is created by adding 102
103 // a named property. These are key to the speed and functioning of V8.
104 // The two maps should always have the same prototype, since
105 // MapSpace::CreateBackPointers depends on this.
106 class MapTransitionDescriptor: public Descriptor { 103 class MapTransitionDescriptor: public Descriptor {
107 public: 104 public:
108 MapTransitionDescriptor(String* key, Map* map, PropertyAttributes attributes) 105 MapTransitionDescriptor(String* key, Map* map, PropertyAttributes attributes)
109 : Descriptor(key, map, attributes, MAP_TRANSITION) { } 106 : Descriptor(key, map, attributes, MAP_TRANSITION) { }
110 }; 107 };
111 108
112 // Marks a field name in a map so that adding the field is guaranteed 109 // Marks a field name in a map so that adding the field is guaranteed
113 // to create a FIELD descriptor in the new map. Used after adding 110 // to create a FIELD descriptor in the new map. Used after adding
114 // a constant function the first time, creating a CONSTANT_FUNCTION 111 // a constant function the first time, creating a CONSTANT_FUNCTION
115 // descriptor in the new map. This avoids creating multiple maps with 112 // descriptor in the new map. This avoids creating multiple maps with
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 380
384 // Append a descriptor to this stream. 381 // Append a descriptor to this stream.
385 void Write(Descriptor* desc); 382 void Write(Descriptor* desc);
386 // Read a descriptor from the reader and append it to this stream. 383 // Read a descriptor from the reader and append it to this stream.
387 void WriteFrom(DescriptorReader* reader); 384 void WriteFrom(DescriptorReader* reader);
388 }; 385 };
389 386
390 } } // namespace v8::internal 387 } } // namespace v8::internal
391 388
392 #endif // V8_PROPERTY_H_ 389 #endif // V8_PROPERTY_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698