| 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 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 #ifdef DEBUG | 2956 #ifdef DEBUG | 
| 2957     if (!Serializer::enabled()) { | 2957     Serializer::TrySetPermanentlyDisabled(); | 
| 2958       Serializer::TooLateToEnableNow(); |  | 
| 2959     } |  | 
| 2960 #endif | 2958 #endif | 
| 2961     if (!Serializer::enabled() && !emit_debug_code()) { | 2959     if (!Serializer::enabled() && !emit_debug_code()) { | 
| 2962       return; | 2960       return; | 
| 2963     } | 2961     } | 
| 2964   } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { | 2962   } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { | 
| 2965     // Don't record psuedo relocation info for code age sequence mode. | 2963     // Don't record psuedo relocation info for code age sequence mode. | 
| 2966     return; | 2964     return; | 
| 2967   } | 2965   } | 
| 2968   RelocInfo rinfo(pc_, rmode, data, NULL); | 2966   RelocInfo rinfo(pc_, rmode, data, NULL); | 
| 2969   reloc_info_writer.Write(&rinfo); | 2967   reloc_info_writer.Write(&rinfo); | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3020 | 3018 | 
| 3021 | 3019 | 
| 3022 bool RelocInfo::IsInConstantPool() { | 3020 bool RelocInfo::IsInConstantPool() { | 
| 3023   return false; | 3021   return false; | 
| 3024 } | 3022 } | 
| 3025 | 3023 | 
| 3026 | 3024 | 
| 3027 } }  // namespace v8::internal | 3025 } }  // namespace v8::internal | 
| 3028 | 3026 | 
| 3029 #endif  // V8_TARGET_ARCH_X64 | 3027 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|