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

Side by Side Diff: src/heap.h

Issue 661181: - Pushed source code for functions into old space.... (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 | « src/handles.cc ('k') | src/heap.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 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 static Object* AllocateConsString(String* first, String* second); 549 static Object* AllocateConsString(String* first, String* second);
550 550
551 // Allocates a new sub string object which is a substring of an underlying 551 // Allocates a new sub string object which is a substring of an underlying
552 // string buffer stretching from the index start (inclusive) to the index 552 // string buffer stretching from the index start (inclusive) to the index
553 // end (exclusive). 553 // end (exclusive).
554 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 554 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
555 // failed. 555 // failed.
556 // Please note this does not perform a garbage collection. 556 // Please note this does not perform a garbage collection.
557 static Object* AllocateSubString(String* buffer, 557 static Object* AllocateSubString(String* buffer,
558 int start, 558 int start,
559 int end); 559 int end,
560 PretenureFlag pretenure = NOT_TENURED);
560 561
561 // Allocate a new external string object, which is backed by a string 562 // Allocate a new external string object, which is backed by a string
562 // resource that resides outside the V8 heap. 563 // resource that resides outside the V8 heap.
563 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 564 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
564 // failed. 565 // failed.
565 // Please note this does not perform a garbage collection. 566 // Please note this does not perform a garbage collection.
566 static Object* AllocateExternalStringFromAscii( 567 static Object* AllocateExternalStringFromAscii(
567 ExternalAsciiString::Resource* resource); 568 ExternalAsciiString::Resource* resource);
568 static Object* AllocateExternalStringFromTwoByte( 569 static Object* AllocateExternalStringFromTwoByte(
569 ExternalTwoByteString::Resource* resource); 570 ExternalTwoByteString::Resource* resource);
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 1726
1726 // To speed up scavenge collections new space string are kept 1727 // To speed up scavenge collections new space string are kept
1727 // separate from old space strings. 1728 // separate from old space strings.
1728 static List<Object*> new_space_strings_; 1729 static List<Object*> new_space_strings_;
1729 static List<Object*> old_space_strings_; 1730 static List<Object*> old_space_strings_;
1730 }; 1731 };
1731 1732
1732 } } // namespace v8::internal 1733 } } // namespace v8::internal
1733 1734
1734 #endif // V8_HEAP_H_ 1735 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698