OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2762 void MacroAssembler::DebugBreak() { | 2762 void MacroAssembler::DebugBreak() { |
2763 ASSERT(allow_stub_calls()); | 2763 ASSERT(allow_stub_calls()); |
2764 Set(rax, 0); // No arguments. | 2764 Set(rax, 0); // No arguments. |
2765 LoadAddress(rbx, ExternalReference(Runtime::kDebugBreak, isolate())); | 2765 LoadAddress(rbx, ExternalReference(Runtime::kDebugBreak, isolate())); |
2766 CEntryStub ces(1); | 2766 CEntryStub ces(1); |
2767 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 2767 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
2768 } | 2768 } |
2769 #endif // ENABLE_DEBUGGER_SUPPORT | 2769 #endif // ENABLE_DEBUGGER_SUPPORT |
2770 | 2770 |
2771 | 2771 |
| 2772 void MacroAssembler::SetReceiverType(Register dst, ReceiverType receiver_type) { |
| 2773 if (receiver_type == IMPLICIT_RECEIVER) { |
| 2774 Set(dst, Smi::FromInt(1)); |
| 2775 } else { |
| 2776 Set(dst, Smi::FromInt(0)); |
| 2777 } |
| 2778 } |
| 2779 |
| 2780 |
2772 void MacroAssembler::InvokeCode(Register code, | 2781 void MacroAssembler::InvokeCode(Register code, |
2773 const ParameterCount& expected, | 2782 const ParameterCount& expected, |
2774 const ParameterCount& actual, | 2783 const ParameterCount& actual, |
2775 InvokeFlag flag, | 2784 InvokeFlag flag, |
2776 const CallWrapper& call_wrapper) { | 2785 const CallWrapper& call_wrapper) { |
2777 Label done; | 2786 Label done; |
2778 InvokePrologue(expected, | 2787 InvokePrologue(expected, |
2779 actual, | 2788 actual, |
2780 Handle<Code>::null(), | 2789 Handle<Code>::null(), |
2781 code, | 2790 code, |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3699 CPU::FlushICache(address_, size_); | 3708 CPU::FlushICache(address_, size_); |
3700 | 3709 |
3701 // Check that the code was patched as expected. | 3710 // Check that the code was patched as expected. |
3702 ASSERT(masm_.pc_ == address_ + size_); | 3711 ASSERT(masm_.pc_ == address_ + size_); |
3703 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 3712 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
3704 } | 3713 } |
3705 | 3714 |
3706 } } // namespace v8::internal | 3715 } } // namespace v8::internal |
3707 | 3716 |
3708 #endif // V8_TARGET_ARCH_X64 | 3717 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |