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