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

Side by Side Diff: src/heap.h

Issue 661468: - Changed the initial size for HashTable.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « no previous file | src/heap.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 static Object* CopyFixedArray(FixedArray* src); 458 static Object* CopyFixedArray(FixedArray* src);
459 459
460 // Allocates a fixed array initialized with the hole values. 460 // Allocates a fixed array initialized with the hole values.
461 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 461 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
462 // failed. 462 // failed.
463 // Please note this does not perform a garbage collection. 463 // Please note this does not perform a garbage collection.
464 static Object* AllocateFixedArrayWithHoles(int length); 464 static Object* AllocateFixedArrayWithHoles(int length);
465 465
466 // AllocateHashTable is identical to AllocateFixedArray except 466 // AllocateHashTable is identical to AllocateFixedArray except
467 // that the resulting object has hash_table_map as map. 467 // that the resulting object has hash_table_map as map.
468 static Object* AllocateHashTable(int length); 468 static Object* AllocateHashTable(int length,
469 PretenureFlag pretenure = NOT_TENURED);
469 470
470 // Allocate a global (but otherwise uninitialized) context. 471 // Allocate a global (but otherwise uninitialized) context.
471 static Object* AllocateGlobalContext(); 472 static Object* AllocateGlobalContext();
472 473
473 // Allocate a function context. 474 // Allocate a function context.
474 static Object* AllocateFunctionContext(int length, JSFunction* closure); 475 static Object* AllocateFunctionContext(int length, JSFunction* closure);
475 476
476 // Allocate a 'with' context. 477 // Allocate a 'with' context.
477 static Object* AllocateWithContext(Context* previous, 478 static Object* AllocateWithContext(Context* previous,
478 JSObject* extension, 479 JSObject* extension,
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 1729
1729 // To speed up scavenge collections new space string are kept 1730 // To speed up scavenge collections new space string are kept
1730 // separate from old space strings. 1731 // separate from old space strings.
1731 static List<Object*> new_space_strings_; 1732 static List<Object*> new_space_strings_;
1732 static List<Object*> old_space_strings_; 1733 static List<Object*> old_space_strings_;
1733 }; 1734 };
1734 1735
1735 } } // namespace v8::internal 1736 } } // namespace v8::internal
1736 1737
1737 #endif // V8_HEAP_H_ 1738 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698