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

Side by Side Diff: src/handles.cc

Issue 4171002: Port some GC fixes from the bleeding edge to the 2.3 branch. These are:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.3/
Patch Set: Created 10 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/handles.h ('k') | src/objects.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 188 }
189 189
190 190
191 void TransformToFastProperties(Handle<JSObject> object, 191 void TransformToFastProperties(Handle<JSObject> object,
192 int unused_property_fields) { 192 int unused_property_fields) {
193 CALL_HEAP_FUNCTION_VOID( 193 CALL_HEAP_FUNCTION_VOID(
194 object->TransformToFastProperties(unused_property_fields)); 194 object->TransformToFastProperties(unused_property_fields));
195 } 195 }
196 196
197 197
198 void NumberDictionarySet(Handle<NumberDictionary> dictionary,
199 uint32_t index,
200 Handle<Object> value,
201 PropertyDetails details) {
202 CALL_HEAP_FUNCTION_VOID(dictionary->Set(index, *value, details));
203 }
204
205
198 void FlattenString(Handle<String> string) { 206 void FlattenString(Handle<String> string) {
199 CALL_HEAP_FUNCTION_VOID(string->TryFlatten()); 207 CALL_HEAP_FUNCTION_VOID(string->TryFlatten());
200 } 208 }
201 209
202 210
203 Handle<String> FlattenGetString(Handle<String> string) { 211 Handle<String> FlattenGetString(Handle<String> string) {
204 Handle<String> result; 212 Handle<String> result;
205 CALL_AND_RETRY(string->TryFlatten(), 213 CALL_AND_RETRY(string->TryFlatten(),
206 { result = Handle<String>(String::cast(__object__)); 214 { result = Handle<String>(String::cast(__object__));
207 break; }, 215 break; },
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 832
825 OptimizedObjectForAddingMultipleProperties:: 833 OptimizedObjectForAddingMultipleProperties::
826 ~OptimizedObjectForAddingMultipleProperties() { 834 ~OptimizedObjectForAddingMultipleProperties() {
827 // Reoptimize the object to allow fast property access. 835 // Reoptimize the object to allow fast property access.
828 if (has_been_transformed_) { 836 if (has_been_transformed_) {
829 TransformToFastProperties(object_, unused_property_fields_); 837 TransformToFastProperties(object_, unused_property_fields_);
830 } 838 }
831 } 839 }
832 840
833 } } // namespace v8::internal 841 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698