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 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 | 1410 |
1411 | 1411 |
1412 void Assembler::call(const Operand& adr) { | 1412 void Assembler::call(const Operand& adr) { |
1413 EnsureSpace ensure_space(this); | 1413 EnsureSpace ensure_space(this); |
1414 last_pc_ = pc_; | 1414 last_pc_ = pc_; |
1415 EMIT(0xFF); | 1415 EMIT(0xFF); |
1416 emit_operand(edx, adr); | 1416 emit_operand(edx, adr); |
1417 } | 1417 } |
1418 | 1418 |
1419 | 1419 |
1420 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { | 1420 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { |
1421 WriteRecordedPositions(); | 1421 WriteRecordedPositions(); |
1422 EnsureSpace ensure_space(this); | 1422 EnsureSpace ensure_space(this); |
1423 last_pc_ = pc_; | 1423 last_pc_ = pc_; |
1424 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 1424 ASSERT(RelocInfo::IsCodeTarget(rmode)); |
1425 EMIT(0xE8); | 1425 EMIT(0xE8); |
1426 emit(reinterpret_cast<intptr_t>(code.location()), rmode); | 1426 emit(reinterpret_cast<intptr_t>(code.location()), rmode); |
1427 } | 1427 } |
1428 | 1428 |
1429 | 1429 |
1430 void Assembler::jmp(Label* L) { | 1430 void Assembler::jmp(Label* L) { |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 push_insn[1] = 13; // Skip over coverage insns. | 2201 push_insn[1] = 13; // Skip over coverage insns. |
2202 if (coverage_log != NULL) { | 2202 if (coverage_log != NULL) { |
2203 fprintf(coverage_log, "%s\n", file_line); | 2203 fprintf(coverage_log, "%s\n", file_line); |
2204 fflush(coverage_log); | 2204 fflush(coverage_log); |
2205 } | 2205 } |
2206 } | 2206 } |
2207 | 2207 |
2208 #endif | 2208 #endif |
2209 | 2209 |
2210 } } // namespace v8::internal | 2210 } } // namespace v8::internal |
OLD | NEW |