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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3370 | 3370 |
3371 | 3371 |
3372 void Assembler::RecordComment(const char* msg) { | 3372 void Assembler::RecordComment(const char* msg) { |
3373 if (FLAG_code_comments) { | 3373 if (FLAG_code_comments) { |
3374 CheckBuffer(); | 3374 CheckBuffer(); |
3375 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3375 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
3376 } | 3376 } |
3377 } | 3377 } |
3378 | 3378 |
3379 | 3379 |
| 3380 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
| 3381 if (FLAG_trace_deopt) { |
| 3382 EnsureSpace ensure_space(this); |
| 3383 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 3384 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 3385 } |
| 3386 } |
| 3387 |
| 3388 |
3380 void Assembler::RecordConstPool(int size) { | 3389 void Assembler::RecordConstPool(int size) { |
3381 // We only need this for debugger support, to correctly compute offsets in the | 3390 // We only need this for debugger support, to correctly compute offsets in the |
3382 // code. | 3391 // code. |
3383 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); | 3392 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); |
3384 } | 3393 } |
3385 | 3394 |
3386 | 3395 |
3387 void Assembler::GrowBuffer() { | 3396 void Assembler::GrowBuffer() { |
3388 if (!own_buffer_) FATAL("external code buffer is too small"); | 3397 if (!own_buffer_) FATAL("external code buffer is too small"); |
3389 | 3398 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3977 assm->instr_at_put( | 3986 assm->instr_at_put( |
3978 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); | 3987 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); |
3979 } | 3988 } |
3980 } | 3989 } |
3981 } | 3990 } |
3982 | 3991 |
3983 | 3992 |
3984 } } // namespace v8::internal | 3993 } } // namespace v8::internal |
3985 | 3994 |
3986 #endif // V8_TARGET_ARCH_ARM | 3995 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |