| 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 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 // Allocates a new JSMessageObject object. | 1127 // Allocates a new JSMessageObject object. |
| 1128 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1128 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1129 // failed. | 1129 // failed. |
| 1130 // Please note that this does not perform a garbage collection. | 1130 // Please note that this does not perform a garbage collection. |
| 1131 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( | 1131 MUST_USE_RESULT MaybeObject* AllocateJSMessageObject( |
| 1132 String* type, | 1132 String* type, |
| 1133 JSArray* arguments, | 1133 JSArray* arguments, |
| 1134 int start_position, | 1134 int start_position, |
| 1135 int end_position, | 1135 int end_position, |
| 1136 Object* script, | 1136 Object* script, |
| 1137 Object* stack_trace, | |
| 1138 Object* stack_frames); | 1137 Object* stack_frames); |
| 1139 | 1138 |
| 1140 // Allocate a new external string object, which is backed by a string | 1139 // Allocate a new external string object, which is backed by a string |
| 1141 // resource that resides outside the V8 heap. | 1140 // resource that resides outside the V8 heap. |
| 1142 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1141 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1143 // failed. | 1142 // failed. |
| 1144 // Please note this does not perform a garbage collection. | 1143 // Please note this does not perform a garbage collection. |
| 1145 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( | 1144 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( |
| 1146 const ExternalAsciiString::Resource* resource); | 1145 const ExternalAsciiString::Resource* resource); |
| 1147 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( | 1146 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( |
| (...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3091 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3090 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3092 | 3091 |
| 3093 private: | 3092 private: |
| 3094 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3093 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3095 }; | 3094 }; |
| 3096 #endif // DEBUG | 3095 #endif // DEBUG |
| 3097 | 3096 |
| 3098 } } // namespace v8::internal | 3097 } } // namespace v8::internal |
| 3099 | 3098 |
| 3100 #endif // V8_HEAP_H_ | 3099 #endif // V8_HEAP_H_ |
| OLD | NEW |