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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 RelocInfo::ModeMask(RelocInfo::JS_RETURN) | | 892 RelocInfo::ModeMask(RelocInfo::JS_RETURN) | |
893 RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) | | 893 RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) | |
894 RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); | 894 RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
895 | 895 |
896 // There are two places where we iterate code bodies: here and the | 896 // There are two places where we iterate code bodies: here and the |
897 // templated CodeIterateBody (below). They should be kept in sync. | 897 // templated CodeIterateBody (below). They should be kept in sync. |
898 IteratePointer(v, kRelocationInfoOffset); | 898 IteratePointer(v, kRelocationInfoOffset); |
899 IteratePointer(v, kHandlerTableOffset); | 899 IteratePointer(v, kHandlerTableOffset); |
900 IteratePointer(v, kDeoptimizationDataOffset); | 900 IteratePointer(v, kDeoptimizationDataOffset); |
901 IteratePointer(v, kTypeFeedbackInfoOffset); | 901 IteratePointer(v, kTypeFeedbackInfoOffset); |
902 IterateNextCodeLink(v, kNextCodeLinkOffset); | |
903 IteratePointer(v, kConstantPoolOffset); | 902 IteratePointer(v, kConstantPoolOffset); |
904 | 903 |
905 RelocIterator it(this, mode_mask); | 904 RelocIterator it(this, mode_mask); |
906 Isolate* isolate = this->GetIsolate(); | 905 Isolate* isolate = this->GetIsolate(); |
907 for (; !it.done(); it.next()) { | 906 for (; !it.done(); it.next()) { |
908 it.rinfo()->Visit(isolate, v); | 907 it.rinfo()->Visit(isolate, v); |
909 } | 908 } |
910 } | 909 } |
911 | 910 |
912 | 911 |
(...skipping 14 matching lines...) Expand all Loading... |
927 reinterpret_cast<Object**>(this->address() + kRelocationInfoOffset)); | 926 reinterpret_cast<Object**>(this->address() + kRelocationInfoOffset)); |
928 StaticVisitor::VisitPointer( | 927 StaticVisitor::VisitPointer( |
929 heap, | 928 heap, |
930 reinterpret_cast<Object**>(this->address() + kHandlerTableOffset)); | 929 reinterpret_cast<Object**>(this->address() + kHandlerTableOffset)); |
931 StaticVisitor::VisitPointer( | 930 StaticVisitor::VisitPointer( |
932 heap, | 931 heap, |
933 reinterpret_cast<Object**>(this->address() + kDeoptimizationDataOffset)); | 932 reinterpret_cast<Object**>(this->address() + kDeoptimizationDataOffset)); |
934 StaticVisitor::VisitPointer( | 933 StaticVisitor::VisitPointer( |
935 heap, | 934 heap, |
936 reinterpret_cast<Object**>(this->address() + kTypeFeedbackInfoOffset)); | 935 reinterpret_cast<Object**>(this->address() + kTypeFeedbackInfoOffset)); |
937 StaticVisitor::VisitNextCodeLink( | |
938 heap, | |
939 reinterpret_cast<Object**>(this->address() + kNextCodeLinkOffset)); | |
940 StaticVisitor::VisitPointer( | 936 StaticVisitor::VisitPointer( |
941 heap, | 937 heap, |
942 reinterpret_cast<Object**>(this->address() + kConstantPoolOffset)); | 938 reinterpret_cast<Object**>(this->address() + kConstantPoolOffset)); |
943 | 939 |
944 | 940 |
945 RelocIterator it(this, mode_mask); | 941 RelocIterator it(this, mode_mask); |
946 for (; !it.done(); it.next()) { | 942 for (; !it.done(); it.next()) { |
947 it.rinfo()->template Visit<StaticVisitor>(heap); | 943 it.rinfo()->template Visit<StaticVisitor>(heap); |
948 } | 944 } |
949 } | 945 } |
950 | 946 |
951 | 947 |
952 } } // namespace v8::internal | 948 } } // namespace v8::internal |
953 | 949 |
954 #endif // V8_OBJECTS_VISITING_INL_H_ | 950 #endif // V8_OBJECTS_VISITING_INL_H_ |
OLD | NEW |