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

Side by Side Diff: src/handles.cc

Issue 1113009: Merge 4205:4215 from bleeding_edge to partial_snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 9 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/handles.h ('k') | src/heap.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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 169
170 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, 170 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
171 int estimate) { 171 int estimate) {
172 shared->set_expected_nof_properties( 172 shared->set_expected_nof_properties(
173 ExpectedNofPropertiesFromEstimate(estimate)); 173 ExpectedNofPropertiesFromEstimate(estimate));
174 } 174 }
175 175
176 176
177 void SetExpectedNofPropertiesFromEstimate(Handle<JSFunction> func,
178 int estimate) {
179 SetExpectedNofProperties(
180 func, ExpectedNofPropertiesFromEstimate(estimate));
181 }
182
183
184 void NormalizeProperties(Handle<JSObject> object, 177 void NormalizeProperties(Handle<JSObject> object,
185 PropertyNormalizationMode mode, 178 PropertyNormalizationMode mode,
186 int expected_additional_properties) { 179 int expected_additional_properties) {
187 CALL_HEAP_FUNCTION_VOID(object->NormalizeProperties( 180 CALL_HEAP_FUNCTION_VOID(object->NormalizeProperties(
188 mode, 181 mode,
189 expected_additional_properties)); 182 expected_additional_properties));
190 } 183 }
191 184
192 185
193 void NormalizeElements(Handle<JSObject> object) { 186 void NormalizeElements(Handle<JSObject> object) {
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 780
788 OptimizedObjectForAddingMultipleProperties:: 781 OptimizedObjectForAddingMultipleProperties::
789 ~OptimizedObjectForAddingMultipleProperties() { 782 ~OptimizedObjectForAddingMultipleProperties() {
790 // Reoptimize the object to allow fast property access. 783 // Reoptimize the object to allow fast property access.
791 if (has_been_transformed_) { 784 if (has_been_transformed_) {
792 TransformToFastProperties(object_, unused_property_fields_); 785 TransformToFastProperties(object_, unused_property_fields_);
793 } 786 }
794 } 787 }
795 788
796 } } // namespace v8::internal 789 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698