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 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3369 } | 3369 } |
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 | |
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 | 3379 |
3389 void Assembler::RecordConstPool(int size) { | 3380 void Assembler::RecordConstPool(int size) { |
3390 // We only need this for debugger support, to correctly compute offsets in the | 3381 // We only need this for debugger support, to correctly compute offsets in the |
3391 // code. | 3382 // code. |
3392 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); | 3383 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); |
3393 } | 3384 } |
3394 | 3385 |
3395 | 3386 |
3396 void Assembler::GrowBuffer() { | 3387 void Assembler::GrowBuffer() { |
3397 if (!own_buffer_) FATAL("external code buffer is too small"); | 3388 if (!own_buffer_) FATAL("external code buffer is too small"); |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3986 assm->instr_at_put( | 3977 assm->instr_at_put( |
3987 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); | 3978 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); |
3988 } | 3979 } |
3989 } | 3980 } |
3990 } | 3981 } |
3991 | 3982 |
3992 | 3983 |
3993 } } // namespace v8::internal | 3984 } } // namespace v8::internal |
3994 | 3985 |
3995 #endif // V8_TARGET_ARCH_ARM | 3986 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |