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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 CALL_AND_RETRY(ISOLATE, \ | 606 CALL_AND_RETRY(ISOLATE, \ |
607 FUNCTION_CALL, \ | 607 FUNCTION_CALL, \ |
608 return Handle<TYPE>(TYPE::cast(__object__), ISOLATE), \ | 608 return Handle<TYPE>(TYPE::cast(__object__), ISOLATE), \ |
609 return Handle<TYPE>()) | 609 return Handle<TYPE>()) |
610 | 610 |
611 | 611 |
612 #define CALL_HEAP_FUNCTION_VOID(ISOLATE, FUNCTION_CALL) \ | 612 #define CALL_HEAP_FUNCTION_VOID(ISOLATE, FUNCTION_CALL) \ |
613 CALL_AND_RETRY(ISOLATE, FUNCTION_CALL, return, return) | 613 CALL_AND_RETRY(ISOLATE, FUNCTION_CALL, return, return) |
614 | 614 |
615 | 615 |
| 616 #define CALL_HEAP_FUNCTION_PASS_EXCEPTION(ISOLATE, FUNCTION_CALL) \ |
| 617 CALL_AND_RETRY(ISOLATE, \ |
| 618 FUNCTION_CALL, \ |
| 619 return __object__, \ |
| 620 return __maybe_object__) |
| 621 |
| 622 |
616 #ifdef DEBUG | 623 #ifdef DEBUG |
617 | 624 |
618 inline bool Heap::allow_allocation(bool new_state) { | 625 inline bool Heap::allow_allocation(bool new_state) { |
619 bool old = allocation_allowed_; | 626 bool old = allocation_allowed_; |
620 allocation_allowed_ = new_state; | 627 allocation_allowed_ = new_state; |
621 return old; | 628 return old; |
622 } | 629 } |
623 | 630 |
624 #endif | 631 #endif |
625 | 632 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 AssertNoAllocation::~AssertNoAllocation() { } | 875 AssertNoAllocation::~AssertNoAllocation() { } |
869 DisableAssertNoAllocation::DisableAssertNoAllocation() { } | 876 DisableAssertNoAllocation::DisableAssertNoAllocation() { } |
870 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } | 877 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } |
871 | 878 |
872 #endif | 879 #endif |
873 | 880 |
874 | 881 |
875 } } // namespace v8::internal | 882 } } // namespace v8::internal |
876 | 883 |
877 #endif // V8_HEAP_INL_H_ | 884 #endif // V8_HEAP_INL_H_ |
OLD | NEW |