| 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 CALL_AND_RETRY_OR_DIE(ISOLATE, \ | 680 CALL_AND_RETRY_OR_DIE(ISOLATE, \ |
| 681 FUNCTION_CALL, \ | 681 FUNCTION_CALL, \ |
| 682 return Handle<TYPE>(TYPE::cast(__object__), ISOLATE), \ | 682 return Handle<TYPE>(TYPE::cast(__object__), ISOLATE), \ |
| 683 return Handle<TYPE>()) \ | 683 return Handle<TYPE>()) \ |
| 684 | 684 |
| 685 | 685 |
| 686 #define CALL_HEAP_FUNCTION_VOID(ISOLATE, FUNCTION_CALL) \ | 686 #define CALL_HEAP_FUNCTION_VOID(ISOLATE, FUNCTION_CALL) \ |
| 687 CALL_AND_RETRY_OR_DIE(ISOLATE, FUNCTION_CALL, return, return) | 687 CALL_AND_RETRY_OR_DIE(ISOLATE, FUNCTION_CALL, return, return) |
| 688 | 688 |
| 689 | 689 |
| 690 #define CALL_HEAP_FUNCTION_PASS_EXCEPTION(ISOLATE, FUNCTION_CALL) \ | |
| 691 CALL_AND_RETRY(ISOLATE, \ | |
| 692 FUNCTION_CALL, \ | |
| 693 return __object__, \ | |
| 694 return __maybe_object__) | |
| 695 | |
| 696 | |
| 697 void ExternalStringTable::AddString(String* string) { | 690 void ExternalStringTable::AddString(String* string) { |
| 698 ASSERT(string->IsExternalString()); | 691 ASSERT(string->IsExternalString()); |
| 699 if (heap_->InNewSpace(string)) { | 692 if (heap_->InNewSpace(string)) { |
| 700 new_space_strings_.Add(string); | 693 new_space_strings_.Add(string); |
| 701 } else { | 694 } else { |
| 702 old_space_strings_.Add(string); | 695 old_space_strings_.Add(string); |
| 703 } | 696 } |
| 704 } | 697 } |
| 705 | 698 |
| 706 | 699 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 | 825 |
| 833 | 826 |
| 834 double GCTracer::SizeOfHeapObjects() { | 827 double GCTracer::SizeOfHeapObjects() { |
| 835 return (static_cast<double>(heap_->SizeOfObjects())) / MB; | 828 return (static_cast<double>(heap_->SizeOfObjects())) / MB; |
| 836 } | 829 } |
| 837 | 830 |
| 838 | 831 |
| 839 } } // namespace v8::internal | 832 } } // namespace v8::internal |
| 840 | 833 |
| 841 #endif // V8_HEAP_INL_H_ | 834 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |