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 |
524 #ifdef DEBUG | 528 #ifdef DEBUG |
525 | 529 |
526 inline bool Heap::allow_allocation(bool new_state) { | 530 inline bool Heap::allow_allocation(bool new_state) { |
527 bool old = allocation_allowed_; | 531 bool old = allocation_allowed_; |
528 allocation_allowed_ = new_state; | 532 allocation_allowed_ = new_state; |
529 return old; | 533 return old; |
530 } | 534 } |
531 | 535 |
532 #endif | 536 #endif |
533 | 537 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 | 582 |
579 | 583 |
580 void ExternalStringTable::ShrinkNewStrings(int position) { | 584 void ExternalStringTable::ShrinkNewStrings(int position) { |
581 new_space_strings_.Rewind(position); | 585 new_space_strings_.Rewind(position); |
582 Verify(); | 586 Verify(); |
583 } | 587 } |
584 | 588 |
585 } } // namespace v8::internal | 589 } } // namespace v8::internal |
586 | 590 |
587 #endif // V8_HEAP_INL_H_ | 591 #endif // V8_HEAP_INL_H_ |
OLD | NEW |