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

Side by Side Diff: src/handles.h

Issue 3920005: Fix GC error in ES5 read-only properties implementation. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 2 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 | « no previous file | src/handles.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // They might invoke garbage collection. The result is an handle to 186 // They might invoke garbage collection. The result is an handle to
187 // an object of expected type, or the handle is an error if running out 187 // an object of expected type, or the handle is an error if running out
188 // of space or encountering an internal error. 188 // of space or encountering an internal error.
189 189
190 void NormalizeProperties(Handle<JSObject> object, 190 void NormalizeProperties(Handle<JSObject> object,
191 PropertyNormalizationMode mode, 191 PropertyNormalizationMode mode,
192 int expected_additional_properties); 192 int expected_additional_properties);
193 void NormalizeElements(Handle<JSObject> object); 193 void NormalizeElements(Handle<JSObject> object);
194 void TransformToFastProperties(Handle<JSObject> object, 194 void TransformToFastProperties(Handle<JSObject> object,
195 int unused_property_fields); 195 int unused_property_fields);
196 void NumberDictionarySet(Handle<NumberDictionary> dictionary,
197 uint32_t index,
198 Handle<Object> value,
199 PropertyDetails details);
196 200
197 // Flattens a string. 201 // Flattens a string.
198 void FlattenString(Handle<String> str); 202 void FlattenString(Handle<String> str);
199 203
200 // Flattens a string and returns the underlying external or sequential 204 // Flattens a string and returns the underlying external or sequential
201 // string. 205 // string.
202 Handle<String> FlattenGetString(Handle<String> str); 206 Handle<String> FlattenGetString(Handle<String> str);
203 207
204 Handle<Object> SetProperty(Handle<JSObject> object, 208 Handle<Object> SetProperty(Handle<JSObject> object,
205 Handle<String> key, 209 Handle<String> key,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 private: 381 private:
378 bool has_been_transformed_; // Tells whether the object has been transformed. 382 bool has_been_transformed_; // Tells whether the object has been transformed.
379 int unused_property_fields_; // Captures the unused number of field. 383 int unused_property_fields_; // Captures the unused number of field.
380 Handle<JSObject> object_; // The object being optimized. 384 Handle<JSObject> object_; // The object being optimized.
381 }; 385 };
382 386
383 387
384 } } // namespace v8::internal 388 } } // namespace v8::internal
385 389
386 #endif // V8_HANDLES_H_ 390 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698