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 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 #endif | 2659 #endif |
2660 } | 2660 } |
2661 | 2661 |
2662 | 2662 |
2663 void MacroAssembler::Call(Handle<Code> code_object, | 2663 void MacroAssembler::Call(Handle<Code> code_object, |
2664 RelocInfo::Mode rmode, | 2664 RelocInfo::Mode rmode, |
2665 TypeFeedbackId ast_id) { | 2665 TypeFeedbackId ast_id) { |
2666 #ifdef DEBUG | 2666 #ifdef DEBUG |
2667 int end_position = pc_offset() + CallSize(code_object); | 2667 int end_position = pc_offset() + CallSize(code_object); |
2668 #endif | 2668 #endif |
2669 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 2669 ASSERT(RelocInfo::IsCodeTarget(rmode) || |
| 2670 rmode == RelocInfo::CODE_AGE_SEQUENCE); |
2670 call(code_object, rmode, ast_id); | 2671 call(code_object, rmode, ast_id); |
2671 #ifdef DEBUG | 2672 #ifdef DEBUG |
2672 CHECK_EQ(end_position, pc_offset()); | 2673 CHECK_EQ(end_position, pc_offset()); |
2673 #endif | 2674 #endif |
2674 } | 2675 } |
2675 | 2676 |
2676 | 2677 |
2677 void MacroAssembler::Pushad() { | 2678 void MacroAssembler::Pushad() { |
2678 push(rax); | 2679 push(rax); |
2679 push(rcx); | 2680 push(rcx); |
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4927 j(greater, &no_memento_available); | 4928 j(greater, &no_memento_available); |
4928 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), | 4929 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), |
4929 Heap::kAllocationMementoMapRootIndex); | 4930 Heap::kAllocationMementoMapRootIndex); |
4930 bind(&no_memento_available); | 4931 bind(&no_memento_available); |
4931 } | 4932 } |
4932 | 4933 |
4933 | 4934 |
4934 } } // namespace v8::internal | 4935 } } // namespace v8::internal |
4935 | 4936 |
4936 #endif // V8_TARGET_ARCH_X64 | 4937 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |