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 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2574 | 2574 |
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) { |
| 2585 if (FLAG_trace_deopt) { |
| 2586 EnsureSpace ensure_space(this); |
| 2587 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 2588 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 2589 } |
| 2590 } |
| 2591 |
| 2592 |
2584 int Assembler::RelocateInternalReference(byte* pc, intptr_t pc_delta) { | 2593 int Assembler::RelocateInternalReference(byte* pc, intptr_t pc_delta) { |
2585 Instr instr = instr_at(pc); | 2594 Instr instr = instr_at(pc); |
2586 DCHECK(IsJ(instr) || IsLui(instr)); | 2595 DCHECK(IsJ(instr) || IsLui(instr)); |
2587 if (IsLui(instr)) { | 2596 if (IsLui(instr)) { |
2588 Instr instr_lui = instr_at(pc + 0 * Assembler::kInstrSize); | 2597 Instr instr_lui = instr_at(pc + 0 * Assembler::kInstrSize); |
2589 Instr instr_ori = instr_at(pc + 1 * Assembler::kInstrSize); | 2598 Instr instr_ori = instr_at(pc + 1 * Assembler::kInstrSize); |
2590 Instr instr_ori2 = instr_at(pc + 3 * Assembler::kInstrSize); | 2599 Instr instr_ori2 = instr_at(pc + 3 * Assembler::kInstrSize); |
2591 DCHECK(IsOri(instr_ori)); | 2600 DCHECK(IsOri(instr_ori)); |
2592 DCHECK(IsOri(instr_ori2)); | 2601 DCHECK(IsOri(instr_ori2)); |
2593 // TODO(plind): symbolic names for the shifts. | 2602 // TODO(plind): symbolic names for the shifts. |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2932 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2941 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
2933 // No out-of-line constant pool support. | 2942 // No out-of-line constant pool support. |
2934 DCHECK(!FLAG_enable_ool_constant_pool); | 2943 DCHECK(!FLAG_enable_ool_constant_pool); |
2935 return; | 2944 return; |
2936 } | 2945 } |
2937 | 2946 |
2938 | 2947 |
2939 } } // namespace v8::internal | 2948 } } // namespace v8::internal |
2940 | 2949 |
2941 #endif // V8_TARGET_ARCH_MIPS64 | 2950 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |