Chromium Code Reviews

Unified Diff: src/handles.cc

Issue 6240012: Optimize calls to object literal properties that are initialized with a funct... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.cc
===================================================================
--- src/handles.cc (revision 6540)
+++ src/handles.cc (working copy)
@@ -867,34 +867,4 @@
return result;
}
-
-OptimizedObjectForAddingMultipleProperties::
Mads Ager (chromium) 2011/02/01 13:51:00 Is there a change to the header file missing here.
fschneider 2011/02/02 10:18:38 Done.
-OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object,
- int expected_additional_properties,
- bool condition) {
- object_ = object;
- if (condition && object_->HasFastProperties()) {
- // Normalize the properties of object to avoid n^2 behavior
- // when extending the object multiple properties. Indicate the number of
- // properties to be added.
- unused_property_fields_ = object->map()->unused_property_fields();
- NormalizeProperties(object_,
- KEEP_INOBJECT_PROPERTIES,
- expected_additional_properties);
- has_been_transformed_ = true;
-
- } else {
- has_been_transformed_ = false;
- }
-}
-
-
-OptimizedObjectForAddingMultipleProperties::
-~OptimizedObjectForAddingMultipleProperties() {
- // Reoptimize the object to allow fast property access.
- if (has_been_transformed_) {
- TransformToFastProperties(object_, unused_property_fields_);
- }
-}
-
} } // namespace v8::internal
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine