OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } while (false) | 255 } while (false) |
256 | 256 |
257 | 257 |
258 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ | 258 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ |
259 CALL_AND_RETRY(FUNCTION_CALL, \ | 259 CALL_AND_RETRY(FUNCTION_CALL, \ |
260 Handle<TYPE>(TYPE::cast(__object__)), \ | 260 Handle<TYPE>(TYPE::cast(__object__)), \ |
261 Handle<TYPE>()) | 261 Handle<TYPE>()) |
262 | 262 |
263 | 263 |
264 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ | 264 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ |
265 CALL_AND_RETRY(FUNCTION_CALL, ;, ;) | 265 CALL_AND_RETRY(FUNCTION_CALL, ;, ;) // NOLINT |
266 | 266 |
267 | 267 |
268 #ifdef DEBUG | 268 #ifdef DEBUG |
269 | 269 |
270 inline bool Heap::allow_allocation(bool new_state) { | 270 inline bool Heap::allow_allocation(bool new_state) { |
271 bool old = allocation_allowed_; | 271 bool old = allocation_allowed_; |
272 allocation_allowed_ = new_state; | 272 allocation_allowed_ = new_state; |
273 return old; | 273 return old; |
274 } | 274 } |
275 | 275 |
276 #endif | 276 #endif |
277 | 277 |
278 | 278 |
279 } } // namespace v8::internal | 279 } } // namespace v8::internal |
280 | 280 |
281 #endif // V8_HEAP_INL_H_ | 281 #endif // V8_HEAP_INL_H_ |
OLD | NEW |