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

Side by Side Diff: src/factory.h

Issue 219963009: Remove Factory::CopyMap(map) in favor of Map::Copy(map) (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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 259 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map);
260 260
261 // Copy the map adding more inobject properties if possible without 261 // Copy the map adding more inobject properties if possible without
262 // overflowing the instance size. 262 // overflowing the instance size.
263 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 263 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
264 Handle<Map> CopyMap(Handle<Map> map);
265 264
266 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 265 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
267 266
268 // This method expects a COW array in new space, and creates a copy 267 // This method expects a COW array in new space, and creates a copy
269 // of it in old space. 268 // of it in old space.
270 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); 269 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array);
271 270
272 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, 271 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array,
273 int new_length, 272 int new_length,
274 PretenureFlag pretenure = NOT_TENURED); 273 PretenureFlag pretenure = NOT_TENURED);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 595
597 // Update the map cache in the native context with (keys, map) 596 // Update the map cache in the native context with (keys, map)
598 Handle<MapCache> AddToMapCache(Handle<Context> context, 597 Handle<MapCache> AddToMapCache(Handle<Context> context,
599 Handle<FixedArray> keys, 598 Handle<FixedArray> keys,
600 Handle<Map> map); 599 Handle<Map> map);
601 }; 600 };
602 601
603 } } // namespace v8::internal 602 } } // namespace v8::internal
604 603
605 #endif // V8_FACTORY_H_ 604 #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