| OLD | NEW |
| 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 // Please note that this does not perform a garbage collection. | 1064 // Please note that this does not perform a garbage collection. |
| 1065 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( | 1065 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( |
| 1066 String* type, | 1066 String* type, |
| 1067 JSArray* arguments, | 1067 JSArray* arguments, |
| 1068 int start_position, | 1068 int start_position, |
| 1069 int end_position, | 1069 int end_position, |
| 1070 Object* script, | 1070 Object* script, |
| 1071 Object* stack_trace, | 1071 Object* stack_trace, |
| 1072 Object* stack_frames); | 1072 Object* stack_frames); |
| 1073 | 1073 |
| 1074 // Allocates a new cons string object. | |
| 1075 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
| 1076 // failed. | |
| 1077 // Please note this does not perform a garbage collection. | |
| 1078 MUST_USE_RESULT MaybeObject* AllocateConsString(String* first, | |
| 1079 String* second); | |
| 1080 | |
| 1081 // Allocates a new sub string object which is a substring of an underlying | |
| 1082 // string buffer stretching from the index start (inclusive) to the index | |
| 1083 // end (exclusive). | |
| 1084 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
| 1085 // failed. | |
| 1086 // Please note this does not perform a garbage collection. | |
| 1087 MUST_USE_RESULT MaybeObject* AllocateSubString( | |
| 1088 String* buffer, | |
| 1089 int start, | |
| 1090 int end, | |
| 1091 PretenureFlag pretenure = NOT_TENURED); | |
| 1092 | |
| 1093 // Allocate a new external string object, which is backed by a string | 1074 // Allocate a new external string object, which is backed by a string |
| 1094 // resource that resides outside the V8 heap. | 1075 // resource that resides outside the V8 heap. |
| 1095 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1076 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1096 // failed. | 1077 // failed. |
| 1097 // Please note this does not perform a garbage collection. | 1078 // Please note this does not perform a garbage collection. |
| 1098 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( | 1079 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( |
| 1099 const ExternalAsciiString::Resource* resource); | 1080 const ExternalAsciiString::Resource* resource); |
| 1100 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( | 1081 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( |
| 1101 const ExternalTwoByteString::Resource* resource); | 1082 const ExternalTwoByteString::Resource* resource); |
| 1102 | 1083 |
| (...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3061 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3081 | 3062 |
| 3082 private: | 3063 private: |
| 3083 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3064 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3084 }; | 3065 }; |
| 3085 #endif // DEBUG | 3066 #endif // DEBUG |
| 3086 | 3067 |
| 3087 } } // namespace v8::internal | 3068 } } // namespace v8::internal |
| 3088 | 3069 |
| 3089 #endif // V8_HEAP_H_ | 3070 #endif // V8_HEAP_H_ |
| OLD | NEW |