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

Side by Side Diff: src/heap.h

Issue 7889046: Add an optional source length field to the Extension constructor. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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/factory.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 int start, 789 int start,
790 int end, 790 int end,
791 PretenureFlag pretenure = NOT_TENURED); 791 PretenureFlag pretenure = NOT_TENURED);
792 792
793 // Allocate a new external string object, which is backed by a string 793 // Allocate a new external string object, which is backed by a string
794 // resource that resides outside the V8 heap. 794 // resource that resides outside the V8 heap.
795 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 795 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
796 // failed. 796 // failed.
797 // Please note this does not perform a garbage collection. 797 // Please note this does not perform a garbage collection.
798 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( 798 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii(
799 ExternalAsciiString::Resource* resource); 799 const ExternalAsciiString::Resource* resource);
800 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( 800 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte(
801 ExternalTwoByteString::Resource* resource); 801 const ExternalTwoByteString::Resource* resource);
802 802
803 // Finalizes an external string by deleting the associated external 803 // Finalizes an external string by deleting the associated external
804 // data and clearing the resource pointer. 804 // data and clearing the resource pointer.
805 inline void FinalizeExternalString(String* string); 805 inline void FinalizeExternalString(String* string);
806 806
807 // Allocates an uninitialized object. The memory is non-executable if the 807 // Allocates an uninitialized object. The memory is non-executable if the
808 // hardware and OS allow. 808 // hardware and OS allow.
809 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 809 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
810 // failed. 810 // failed.
811 // Please note this function does not perform a garbage collection. 811 // Please note this function does not perform a garbage collection.
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2349 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2350 }; 2350 };
2351 #endif // DEBUG || LIVE_OBJECT_LIST 2351 #endif // DEBUG || LIVE_OBJECT_LIST
2352 2352
2353 2353
2354 } } // namespace v8::internal 2354 } } // namespace v8::internal
2355 2355
2356 #undef HEAP 2356 #undef HEAP
2357 2357
2358 #endif // V8_HEAP_H_ 2358 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698