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

Side by Side Diff: src/factory.h

Issue 218633014: Replace CopyMap(constructor->initial_map()) by Map::Create(constructor) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/bootstrapper.cc ('k') | src/factory.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 Handle<AllocationSite> NewAllocationSite(); 250 Handle<AllocationSite> NewAllocationSite();
251 251
252 Handle<Map> NewMap( 252 Handle<Map> NewMap(
253 InstanceType type, 253 InstanceType type,
254 int instance_size, 254 int instance_size,
255 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 255 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
256 256
257 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 257 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
258 258
259 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map);
260
261 // Copy the map adding more inobject properties if possible without
262 // overflowing the instance size.
263 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
264
265 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 259 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
266 260
267 // This method expects a COW array in new space, and creates a copy 261 // This method expects a COW array in new space, and creates a copy
268 // of it in old space. 262 // of it in old space.
269 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); 263 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array);
270 264
271 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, 265 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array,
272 int new_length, 266 int new_length,
273 PretenureFlag pretenure = NOT_TENURED); 267 PretenureFlag pretenure = NOT_TENURED);
274 268
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 589
596 // Update the map cache in the native context with (keys, map) 590 // Update the map cache in the native context with (keys, map)
597 Handle<MapCache> AddToMapCache(Handle<Context> context, 591 Handle<MapCache> AddToMapCache(Handle<Context> context,
598 Handle<FixedArray> keys, 592 Handle<FixedArray> keys,
599 Handle<Map> map); 593 Handle<Map> map);
600 }; 594 };
601 595
602 } } // namespace v8::internal 596 } } // namespace v8::internal
603 597
604 #endif // V8_FACTORY_H_ 598 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698