| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2657 #endif | 2657 #endif |
| 2658 } | 2658 } |
| 2659 | 2659 |
| 2660 | 2660 |
| 2661 void MacroAssembler::Call(Handle<Code> code_object, | 2661 void MacroAssembler::Call(Handle<Code> code_object, |
| 2662 RelocInfo::Mode rmode, | 2662 RelocInfo::Mode rmode, |
| 2663 TypeFeedbackId ast_id) { | 2663 TypeFeedbackId ast_id) { |
| 2664 #ifdef DEBUG | 2664 #ifdef DEBUG |
| 2665 int end_position = pc_offset() + CallSize(code_object); | 2665 int end_position = pc_offset() + CallSize(code_object); |
| 2666 #endif | 2666 #endif |
| 2667 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 2667 ASSERT(RelocInfo::IsCodeTarget(rmode) || |
| 2668 rmode == RelocInfo::CODE_AGE_SEQUENCE); |
| 2668 call(code_object, rmode, ast_id); | 2669 call(code_object, rmode, ast_id); |
| 2669 #ifdef DEBUG | 2670 #ifdef DEBUG |
| 2670 CHECK_EQ(end_position, pc_offset()); | 2671 CHECK_EQ(end_position, pc_offset()); |
| 2671 #endif | 2672 #endif |
| 2672 } | 2673 } |
| 2673 | 2674 |
| 2674 | 2675 |
| 2675 void MacroAssembler::Pushad() { | 2676 void MacroAssembler::Pushad() { |
| 2676 push(rax); | 2677 push(rax); |
| 2677 push(rcx); | 2678 push(rcx); |
| (...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4969 movq(arg_reg_1, isolate, RelocInfo::EXTERNAL_REFERENCE); | 4970 movq(arg_reg_1, isolate, RelocInfo::EXTERNAL_REFERENCE); |
| 4970 CallCFunction( | 4971 CallCFunction( |
| 4971 ExternalReference::record_object_allocation_function(isolate), 3); | 4972 ExternalReference::record_object_allocation_function(isolate), 3); |
| 4972 PopSafepointRegisters(); | 4973 PopSafepointRegisters(); |
| 4973 } | 4974 } |
| 4974 | 4975 |
| 4975 | 4976 |
| 4976 } } // namespace v8::internal | 4977 } } // namespace v8::internal |
| 4977 | 4978 |
| 4978 #endif // V8_TARGET_ARCH_X64 | 4979 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |