OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "macro-assembler.h" | 9 #include "macro-assembler.h" |
10 #include "serialize.h" | 10 #include "serialize.h" |
(...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2923 emitl(data); | 2923 emitl(data); |
2924 } | 2924 } |
2925 | 2925 |
2926 | 2926 |
2927 // Relocation information implementations. | 2927 // Relocation information implementations. |
2928 | 2928 |
2929 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 2929 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
2930 ASSERT(!RelocInfo::IsNone(rmode)); | 2930 ASSERT(!RelocInfo::IsNone(rmode)); |
2931 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { | 2931 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { |
2932 // Don't record external references unless the heap will be serialized. | 2932 // Don't record external references unless the heap will be serialized. |
2933 if (!Serializer::enabled() && !emit_debug_code()) { | 2933 if (!Serializer::enabled(isolate()) && !emit_debug_code()) { |
2934 return; | 2934 return; |
2935 } | 2935 } |
2936 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { | 2936 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { |
2937 // Don't record psuedo relocation info for code age sequence mode. | 2937 // Don't record psuedo relocation info for code age sequence mode. |
2938 return; | 2938 return; |
2939 } | 2939 } |
2940 RelocInfo rinfo(pc_, rmode, data, NULL); | 2940 RelocInfo rinfo(pc_, rmode, data, NULL); |
2941 reloc_info_writer.Write(&rinfo); | 2941 reloc_info_writer.Write(&rinfo); |
2942 } | 2942 } |
2943 | 2943 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 | 2993 |
2994 | 2994 |
2995 bool RelocInfo::IsInConstantPool() { | 2995 bool RelocInfo::IsInConstantPool() { |
2996 return false; | 2996 return false; |
2997 } | 2997 } |
2998 | 2998 |
2999 | 2999 |
3000 } } // namespace v8::internal | 3000 } } // namespace v8::internal |
3001 | 3001 |
3002 #endif // V8_TARGET_ARCH_X64 | 3002 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |