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

Side by Side Diff: src/heap.h

Issue 669060: Add runtime function for string to array conversion. (Closed)
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
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 443 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
444 // failed. 444 // failed.
445 // Please note this does not perform a garbage collection. 445 // Please note this does not perform a garbage collection.
446 static Object* AllocateJSGlobalPropertyCell(Object* value); 446 static Object* AllocateJSGlobalPropertyCell(Object* value);
447 447
448 // Allocates a fixed array initialized with undefined values 448 // Allocates a fixed array initialized with undefined values
449 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 449 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
450 // failed. 450 // failed.
451 // Please note this does not perform a garbage collection. 451 // Please note this does not perform a garbage collection.
452 static Object* AllocateFixedArray(int length, PretenureFlag pretenure); 452 static Object* AllocateFixedArray(int length, PretenureFlag pretenure);
453 // Allocate uninitialized, non-tenured fixed array with length elements. 453 // Allocates a fixed array initialized with undefined values
454 static Object* AllocateFixedArray(int length); 454 static Object* AllocateFixedArray(int length);
455 455
456 // Allocates an uninitialized fixed array. It must be filled by the caller.
457 //
458 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
459 // failed.
460 // Please note this does not perform a garbage collection.
461 static Object* AllocateUninitializedFixedArray(int length);
462
456 // Make a copy of src and return it. Returns 463 // Make a copy of src and return it. Returns
457 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 464 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
458 static Object* CopyFixedArray(FixedArray* src); 465 static Object* CopyFixedArray(FixedArray* src);
459 466
460 // Allocates a fixed array initialized with the hole values. 467 // Allocates a fixed array initialized with the hole values.
461 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 468 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
462 // failed. 469 // failed.
463 // Please note this does not perform a garbage collection. 470 // Please note this does not perform a garbage collection.
464 static Object* AllocateFixedArrayWithHoles(int length); 471 static Object* AllocateFixedArrayWithHoles(int length);
465 472
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 1736
1730 // To speed up scavenge collections new space string are kept 1737 // To speed up scavenge collections new space string are kept
1731 // separate from old space strings. 1738 // separate from old space strings.
1732 static List<Object*> new_space_strings_; 1739 static List<Object*> new_space_strings_;
1733 static List<Object*> old_space_strings_; 1740 static List<Object*> old_space_strings_;
1734 }; 1741 };
1735 1742
1736 } } // namespace v8::internal 1743 } } // namespace v8::internal
1737 1744
1738 #endif // V8_HEAP_H_ 1745 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698