OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 | 2575 |
2576 void Assembler::RecordComment(const char* msg) { | 2576 void Assembler::RecordComment(const char* msg) { |
2577 if (FLAG_code_comments) { | 2577 if (FLAG_code_comments) { |
2578 CheckBuffer(); | 2578 CheckBuffer(); |
2579 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2579 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
2580 } | 2580 } |
2581 } | 2581 } |
2582 | 2582 |
2583 | 2583 |
2584 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { | 2584 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
2585 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { | 2585 if (FLAG_trace_deopt) { |
2586 EnsureSpace ensure_space(this); | 2586 EnsureSpace ensure_space(this); |
2587 RecordRelocInfo(RelocInfo::POSITION, raw_position); | 2587 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
2588 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | 2588 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
2589 } | 2589 } |
2590 } | 2590 } |
2591 | 2591 |
2592 | 2592 |
2593 int Assembler::RelocateInternalReference(byte* pc, intptr_t pc_delta) { | 2593 int Assembler::RelocateInternalReference(byte* pc, intptr_t pc_delta) { |
2594 Instr instr = instr_at(pc); | 2594 Instr instr = instr_at(pc); |
2595 DCHECK(IsJ(instr) || IsLui(instr)); | 2595 DCHECK(IsJ(instr) || IsLui(instr)); |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2941 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2941 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
2942 // No out-of-line constant pool support. | 2942 // No out-of-line constant pool support. |
2943 DCHECK(!FLAG_enable_ool_constant_pool); | 2943 DCHECK(!FLAG_enable_ool_constant_pool); |
2944 return; | 2944 return; |
2945 } | 2945 } |
2946 | 2946 |
2947 | 2947 |
2948 } } // namespace v8::internal | 2948 } } // namespace v8::internal |
2949 | 2949 |
2950 #endif // V8_TARGET_ARCH_MIPS64 | 2950 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |