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 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 } | 1433 } |
1434 | 1434 |
1435 | 1435 |
1436 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { | 1436 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { |
1437 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; | 1437 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; |
1438 } | 1438 } |
1439 | 1439 |
1440 | 1440 |
1441 void Assembler::call(Handle<Code> code, | 1441 void Assembler::call(Handle<Code> code, |
1442 RelocInfo::Mode rmode, | 1442 RelocInfo::Mode rmode, |
1443 unsigned ast_id) { | 1443 TypeFeedbackId ast_id) { |
1444 positions_recorder()->WriteRecordedPositions(); | 1444 positions_recorder()->WriteRecordedPositions(); |
1445 EnsureSpace ensure_space(this); | 1445 EnsureSpace ensure_space(this); |
1446 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 1446 ASSERT(RelocInfo::IsCodeTarget(rmode)); |
1447 EMIT(0xE8); | 1447 EMIT(0xE8); |
1448 emit(reinterpret_cast<intptr_t>(code.location()), rmode, ast_id); | 1448 emit(reinterpret_cast<intptr_t>(code.location()), rmode, ast_id); |
1449 } | 1449 } |
1450 | 1450 |
1451 | 1451 |
1452 void Assembler::jmp(Label* L, Label::Distance distance) { | 1452 void Assembler::jmp(Label* L, Label::Distance distance) { |
1453 EnsureSpace ensure_space(this); | 1453 EnsureSpace ensure_space(this); |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 fprintf(coverage_log, "%s\n", file_line); | 2617 fprintf(coverage_log, "%s\n", file_line); |
2618 fflush(coverage_log); | 2618 fflush(coverage_log); |
2619 } | 2619 } |
2620 } | 2620 } |
2621 | 2621 |
2622 #endif | 2622 #endif |
2623 | 2623 |
2624 } } // namespace v8::internal | 2624 } } // namespace v8::internal |
2625 | 2625 |
2626 #endif // V8_TARGET_ARCH_IA32 | 2626 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |