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 2935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2946 emitl(data); | 2946 emitl(data); |
2947 } | 2947 } |
2948 | 2948 |
2949 | 2949 |
2950 // Relocation information implementations. | 2950 // Relocation information implementations. |
2951 | 2951 |
2952 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 2952 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
2953 ASSERT(!RelocInfo::IsNone(rmode)); | 2953 ASSERT(!RelocInfo::IsNone(rmode)); |
2954 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { | 2954 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { |
2955 // Don't record external references unless the heap will be serialized. | 2955 // Don't record external references unless the heap will be serialized. |
2956 if (!Serializer::enabled() && !emit_debug_code()) { | 2956 if (!Serializer::enabled(isolate()) && !emit_debug_code()) { |
2957 return; | 2957 return; |
2958 } | 2958 } |
2959 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { | 2959 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { |
2960 // Don't record psuedo relocation info for code age sequence mode. | 2960 // Don't record psuedo relocation info for code age sequence mode. |
2961 return; | 2961 return; |
2962 } | 2962 } |
2963 RelocInfo rinfo(pc_, rmode, data, NULL); | 2963 RelocInfo rinfo(pc_, rmode, data, NULL); |
2964 reloc_info_writer.Write(&rinfo); | 2964 reloc_info_writer.Write(&rinfo); |
2965 } | 2965 } |
2966 | 2966 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3016 | 3016 |
3017 | 3017 |
3018 bool RelocInfo::IsInConstantPool() { | 3018 bool RelocInfo::IsInConstantPool() { |
3019 return false; | 3019 return false; |
3020 } | 3020 } |
3021 | 3021 |
3022 | 3022 |
3023 } } // namespace v8::internal | 3023 } } // namespace v8::internal |
3024 | 3024 |
3025 #endif // V8_TARGET_ARCH_X64 | 3025 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |