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

Side by Side Diff: src/heap.h

Issue 50073005: Handlify concat string and substring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/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 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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 // Please note that this does not perform a garbage collection. 1066 // Please note that this does not perform a garbage collection.
1067 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( 1067 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject(
1068 String* type, 1068 String* type,
1069 JSArray* arguments, 1069 JSArray* arguments,
1070 int start_position, 1070 int start_position,
1071 int end_position, 1071 int end_position,
1072 Object* script, 1072 Object* script,
1073 Object* stack_trace, 1073 Object* stack_trace,
1074 Object* stack_frames); 1074 Object* stack_frames);
1075 1075
1076 // Allocates a new cons string object.
1077 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1078 // failed.
1079 // Please note this does not perform a garbage collection.
1080 MUST_USE_RESULT MaybeObject* AllocateConsString(String* first,
1081 String* second);
1082
1083 // Allocates a new sub string object which is a substring of an underlying
1084 // string buffer stretching from the index start (inclusive) to the index
1085 // end (exclusive).
1086 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1087 // failed.
1088 // Please note this does not perform a garbage collection.
1089 MUST_USE_RESULT MaybeObject* AllocateSubString(
1090 String* buffer,
1091 int start,
1092 int end,
1093 PretenureFlag pretenure = NOT_TENURED);
1094
1095 // Allocate a new external string object, which is backed by a string 1076 // Allocate a new external string object, which is backed by a string
1096 // resource that resides outside the V8 heap. 1077 // resource that resides outside the V8 heap.
1097 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 1078 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1098 // failed. 1079 // failed.
1099 // Please note this does not perform a garbage collection. 1080 // Please note this does not perform a garbage collection.
1100 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( 1081 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii(
1101 const ExternalAsciiString::Resource* resource); 1082 const ExternalAsciiString::Resource* resource);
1102 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( 1083 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte(
1103 const ExternalTwoByteString::Resource* resource); 1084 const ExternalTwoByteString::Resource* resource);
1104 1085
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
3070 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3051 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3071 3052
3072 private: 3053 private:
3073 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3054 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3074 }; 3055 };
3075 #endif // DEBUG 3056 #endif // DEBUG
3076 3057
3077 } } // namespace v8::internal 3058 } } // namespace v8::internal
3078 3059
3079 #endif // V8_HEAP_H_ 3060 #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