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

Side by Side Diff: src/heap.h

Issue 59973004: Revert "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 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 // Please note that this does not perform a garbage collection. 1061 // Please note that this does not perform a garbage collection.
1062 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( 1062 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject(
1063 String* type, 1063 String* type,
1064 JSArray* arguments, 1064 JSArray* arguments,
1065 int start_position, 1065 int start_position,
1066 int end_position, 1066 int end_position,
1067 Object* script, 1067 Object* script,
1068 Object* stack_trace, 1068 Object* stack_trace,
1069 Object* stack_frames); 1069 Object* stack_frames);
1070 1070
1071 // Allocates a new cons string object.
1072 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1073 // failed.
1074 // Please note this does not perform a garbage collection.
1075 MUST_USE_RESULT MaybeObject* AllocateConsString(String* first,
1076 String* second);
1077
1078 // Allocates a new sub string object which is a substring of an underlying
1079 // string buffer stretching from the index start (inclusive) to the index
1080 // end (exclusive).
1081 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1082 // failed.
1083 // Please note this does not perform a garbage collection.
1084 MUST_USE_RESULT MaybeObject* AllocateSubString(
1085 String* buffer,
1086 int start,
1087 int end,
1088 PretenureFlag pretenure = NOT_TENURED);
1089
1071 // Allocate a new external string object, which is backed by a string 1090 // Allocate a new external string object, which is backed by a string
1072 // resource that resides outside the V8 heap. 1091 // resource that resides outside the V8 heap.
1073 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 1092 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1074 // failed. 1093 // failed.
1075 // Please note this does not perform a garbage collection. 1094 // Please note this does not perform a garbage collection.
1076 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( 1095 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii(
1077 const ExternalAsciiString::Resource* resource); 1096 const ExternalAsciiString::Resource* resource);
1078 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( 1097 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte(
1079 const ExternalTwoByteString::Resource* resource); 1098 const ExternalTwoByteString::Resource* resource);
1080 1099
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3066 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3048 3067
3049 private: 3068 private:
3050 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3069 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3051 }; 3070 };
3052 #endif // DEBUG 3071 #endif // DEBUG
3053 3072
3054 } } // namespace v8::internal 3073 } } // namespace v8::internal
3055 3074
3056 #endif // V8_HEAP_H_ 3075 #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