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

Side by Side Diff: src/factory.h

Issue 207553005: TransitionElementsKind() and its recursive call chain handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review notes Created 6 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/elements.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 282 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
283 283
284 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map); 284 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map);
285 285
286 // Copy the map adding more inobject properties if possible without 286 // Copy the map adding more inobject properties if possible without
287 // overflowing the instance size. 287 // overflowing the instance size.
288 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 288 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
289 Handle<Map> CopyMap(Handle<Map> map); 289 Handle<Map> CopyMap(Handle<Map> map);
290 290
291 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
292 ElementsKind elements_kind);
293
294 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 291 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
295 292
296 // This method expects a COW array in new space, and creates a copy 293 // This method expects a COW array in new space, and creates a copy
297 // of it in old space. 294 // of it in old space.
298 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); 295 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array);
299 296
300 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, 297 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array,
301 int new_length, 298 int new_length,
302 PretenureFlag pretenure = NOT_TENURED); 299 PretenureFlag pretenure = NOT_TENURED);
303 300
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 isolate()); 625 isolate());
629 } else { 626 } else {
630 return NewNumber(static_cast<double>(value), pretenure); 627 return NewNumber(static_cast<double>(value), pretenure);
631 } 628 }
632 } 629 }
633 630
634 631
635 } } // namespace v8::internal 632 } } // namespace v8::internal
636 633
637 #endif // V8_FACTORY_H_ 634 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698