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 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { | 1407 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { |
1408 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; | 1408 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; |
1409 } | 1409 } |
1410 | 1410 |
1411 | 1411 |
1412 void Assembler::call(Handle<Code> code, | 1412 void Assembler::call(Handle<Code> code, |
1413 RelocInfo::Mode rmode, | 1413 RelocInfo::Mode rmode, |
1414 TypeFeedbackId ast_id) { | 1414 TypeFeedbackId ast_id) { |
1415 positions_recorder()->WriteRecordedPositions(); | 1415 positions_recorder()->WriteRecordedPositions(); |
1416 EnsureSpace ensure_space(this); | 1416 EnsureSpace ensure_space(this); |
1417 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 1417 ASSERT(RelocInfo::IsCodeTarget(rmode) |
| 1418 || rmode == RelocInfo::CODE_AGE_SEQUENCE); |
1418 EMIT(0xE8); | 1419 EMIT(0xE8); |
1419 emit(code, rmode, ast_id); | 1420 emit(code, rmode, ast_id); |
1420 } | 1421 } |
1421 | 1422 |
1422 | 1423 |
1423 void Assembler::jmp(Label* L, Label::Distance distance) { | 1424 void Assembler::jmp(Label* L, Label::Distance distance) { |
1424 EnsureSpace ensure_space(this); | 1425 EnsureSpace ensure_space(this); |
1425 if (L->is_bound()) { | 1426 if (L->is_bound()) { |
1426 const int short_size = 2; | 1427 const int short_size = 2; |
1427 const int long_size = 5; | 1428 const int long_size = 5; |
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2680 fprintf(coverage_log, "%s\n", file_line); | 2681 fprintf(coverage_log, "%s\n", file_line); |
2681 fflush(coverage_log); | 2682 fflush(coverage_log); |
2682 } | 2683 } |
2683 } | 2684 } |
2684 | 2685 |
2685 #endif | 2686 #endif |
2686 | 2687 |
2687 } } // namespace v8::internal | 2688 } } // namespace v8::internal |
2688 | 2689 |
2689 #endif // V8_TARGET_ARCH_IA32 | 2690 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |