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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 } | 661 } |
662 | 662 |
663 | 663 |
664 void V8::MarkIndependent(i::Object** object) { | 664 void V8::MarkIndependent(i::Object** object) { |
665 i::Isolate* isolate = i::Isolate::Current(); | 665 i::Isolate* isolate = i::Isolate::Current(); |
666 LOG_API(isolate, "MarkIndependent"); | 666 LOG_API(isolate, "MarkIndependent"); |
667 isolate->global_handles()->MarkIndependent(object); | 667 isolate->global_handles()->MarkIndependent(object); |
668 } | 668 } |
669 | 669 |
670 | 670 |
671 void V8::MarkIndependent(i::Isolate* isolate, i::Object** object) { | |
672 ASSERT(isolate == i::Isolate::Current()); | |
673 LOG_API(isolate, "MarkIndependent"); | |
674 isolate->global_handles()->MarkIndependent(object); | |
675 } | |
676 | |
677 | |
678 void V8::MarkPartiallyDependent(i::Object** object) { | 671 void V8::MarkPartiallyDependent(i::Object** object) { |
679 i::Isolate* isolate = i::Isolate::Current(); | 672 i::Isolate* isolate = i::Isolate::Current(); |
680 LOG_API(isolate, "MarkPartiallyDependent"); | 673 LOG_API(isolate, "MarkPartiallyDependent"); |
681 isolate->global_handles()->MarkPartiallyDependent(object); | 674 isolate->global_handles()->MarkPartiallyDependent(object); |
682 } | 675 } |
683 | 676 |
684 | 677 |
685 void V8::MarkPartiallyDependent(i::Isolate* isolate, i::Object** object) { | |
686 ASSERT(isolate == i::Isolate::Current()); | |
687 LOG_API(isolate, "MarkPartiallyDependent"); | |
688 isolate->global_handles()->MarkPartiallyDependent(object); | |
689 } | |
690 | |
691 | |
692 bool V8::IsGlobalIndependent(i::Object** obj) { | 678 bool V8::IsGlobalIndependent(i::Object** obj) { |
693 i::Isolate* isolate = i::Isolate::Current(); | 679 i::Isolate* isolate = i::Isolate::Current(); |
694 LOG_API(isolate, "IsGlobalIndependent"); | 680 LOG_API(isolate, "IsGlobalIndependent"); |
695 if (!isolate->IsInitialized()) return false; | 681 if (!isolate->IsInitialized()) return false; |
696 return i::GlobalHandles::IsIndependent(obj); | 682 return i::GlobalHandles::IsIndependent(obj); |
697 } | 683 } |
698 | 684 |
699 | 685 |
700 bool V8::IsGlobalIndependent(i::Isolate* isolate, i::Object** obj) { | |
701 ASSERT(isolate == i::Isolate::Current()); | |
702 LOG_API(isolate, "IsGlobalIndependent"); | |
703 if (!isolate->IsInitialized()) return false; | |
704 return i::GlobalHandles::IsIndependent(obj); | |
705 } | |
706 | |
707 | |
708 bool V8::IsGlobalNearDeath(i::Object** obj) { | 686 bool V8::IsGlobalNearDeath(i::Object** obj) { |
709 i::Isolate* isolate = i::Isolate::Current(); | 687 i::Isolate* isolate = i::Isolate::Current(); |
710 LOG_API(isolate, "IsGlobalNearDeath"); | 688 LOG_API(isolate, "IsGlobalNearDeath"); |
711 if (!isolate->IsInitialized()) return false; | 689 if (!isolate->IsInitialized()) return false; |
712 return i::GlobalHandles::IsNearDeath(obj); | 690 return i::GlobalHandles::IsNearDeath(obj); |
713 } | 691 } |
714 | 692 |
715 | 693 |
716 bool V8::IsGlobalWeak(i::Object** obj) { | 694 bool V8::IsGlobalWeak(i::Object** obj) { |
717 i::Isolate* isolate = i::Isolate::Current(); | 695 i::Isolate* isolate = i::Isolate::Current(); |
(...skipping 6049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6767 | 6745 |
6768 v->VisitPointers(blocks_.first(), first_block_limit_); | 6746 v->VisitPointers(blocks_.first(), first_block_limit_); |
6769 | 6747 |
6770 for (int i = 1; i < blocks_.length(); i++) { | 6748 for (int i = 1; i < blocks_.length(); i++) { |
6771 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6749 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6772 } | 6750 } |
6773 } | 6751 } |
6774 | 6752 |
6775 | 6753 |
6776 } } // namespace v8::internal | 6754 } } // namespace v8::internal |
OLD | NEW |