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

Side by Side Diff: src/factory.h

Issue 10615002: Track allocation info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Diff with b_e Created 8 years, 1 month 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/ast.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Handle<JSArray> NewJSArray( 277 Handle<JSArray> NewJSArray(
278 int capacity, 278 int capacity,
279 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 279 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
280 PretenureFlag pretenure = NOT_TENURED); 280 PretenureFlag pretenure = NOT_TENURED);
281 281
282 Handle<JSArray> NewJSArrayWithElements( 282 Handle<JSArray> NewJSArrayWithElements(
283 Handle<FixedArrayBase> elements, 283 Handle<FixedArrayBase> elements,
284 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 284 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
285 PretenureFlag pretenure = NOT_TENURED); 285 PretenureFlag pretenure = NOT_TENURED);
286 286
287 Handle<JSArray> NewEmptyJSArray(
288 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
289 PretenureFlag pretenure = NOT_TENURED);
290
287 void SetElementsCapacityAndLength(Handle<JSArray> array, 291 void SetElementsCapacityAndLength(Handle<JSArray> array,
288 int capacity, 292 int capacity,
289 int length); 293 int length);
290 294
291 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); 295 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
292 296
293 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); 297 void EnsureCanContainHeapObjectElements(Handle<JSArray> array);
294 void EnsureCanContainElements(Handle<JSArray> array, 298 void EnsureCanContainElements(Handle<JSArray> array,
295 Handle<FixedArrayBase> elements, 299 Handle<FixedArrayBase> elements,
296 uint32_t length, 300 uint32_t length,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // Update the map cache in the native context with (keys, map) 511 // Update the map cache in the native context with (keys, map)
508 Handle<MapCache> AddToMapCache(Handle<Context> context, 512 Handle<MapCache> AddToMapCache(Handle<Context> context,
509 Handle<FixedArray> keys, 513 Handle<FixedArray> keys,
510 Handle<Map> map); 514 Handle<Map> map);
511 }; 515 };
512 516
513 517
514 } } // namespace v8::internal 518 } } // namespace v8::internal
515 519
516 #endif // V8_FACTORY_H_ 520 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698