| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ | 514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ |
| 515 CALL_AND_RETRY(FUNCTION_CALL, \ | 515 CALL_AND_RETRY(FUNCTION_CALL, \ |
| 516 return Handle<TYPE>(TYPE::cast(__object__)), \ | 516 return Handle<TYPE>(TYPE::cast(__object__)), \ |
| 517 return Handle<TYPE>()) | 517 return Handle<TYPE>()) |
| 518 | 518 |
| 519 | 519 |
| 520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ | 520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ |
| 521 CALL_AND_RETRY(FUNCTION_CALL, return, return) | 521 CALL_AND_RETRY(FUNCTION_CALL, return, return) |
| 522 | 522 |
| 523 | 523 |
| 524 #define CALL_HEAP_FUNCTION_INLINE(FUNCTION_CALL) \ | |
| 525 CALL_AND_RETRY(FUNCTION_CALL, break, break) | |
| 526 | |
| 527 | |
| 528 #ifdef DEBUG | 524 #ifdef DEBUG |
| 529 | 525 |
| 530 inline bool Heap::allow_allocation(bool new_state) { | 526 inline bool Heap::allow_allocation(bool new_state) { |
| 531 bool old = allocation_allowed_; | 527 bool old = allocation_allowed_; |
| 532 allocation_allowed_ = new_state; | 528 allocation_allowed_ = new_state; |
| 533 return old; | 529 return old; |
| 534 } | 530 } |
| 535 | 531 |
| 536 #endif | 532 #endif |
| 537 | 533 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 578 |
| 583 | 579 |
| 584 void ExternalStringTable::ShrinkNewStrings(int position) { | 580 void ExternalStringTable::ShrinkNewStrings(int position) { |
| 585 new_space_strings_.Rewind(position); | 581 new_space_strings_.Rewind(position); |
| 586 Verify(); | 582 Verify(); |
| 587 } | 583 } |
| 588 | 584 |
| 589 } } // namespace v8::internal | 585 } } // namespace v8::internal |
| 590 | 586 |
| 591 #endif // V8_HEAP_INL_H_ | 587 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |