| 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 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3685 Operand counter_operand = ExternalOperand(ExternalReference(counter)); | 3685 Operand counter_operand = ExternalOperand(ExternalReference(counter)); |
| 3686 if (value == 1) { | 3686 if (value == 1) { |
| 3687 decl(counter_operand); | 3687 decl(counter_operand); |
| 3688 } else { | 3688 } else { |
| 3689 subl(counter_operand, Immediate(value)); | 3689 subl(counter_operand, Immediate(value)); |
| 3690 } | 3690 } |
| 3691 } | 3691 } |
| 3692 } | 3692 } |
| 3693 | 3693 |
| 3694 | 3694 |
| 3695 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 3696 void MacroAssembler::DebugBreak() { | 3695 void MacroAssembler::DebugBreak() { |
| 3697 Set(rax, 0); // No arguments. | 3696 Set(rax, 0); // No arguments. |
| 3698 LoadAddress(rbx, ExternalReference(Runtime::kDebugBreak, isolate())); | 3697 LoadAddress(rbx, ExternalReference(Runtime::kDebugBreak, isolate())); |
| 3699 CEntryStub ces(isolate(), 1); | 3698 CEntryStub ces(isolate(), 1); |
| 3700 ASSERT(AllowThisStubCall(&ces)); | 3699 ASSERT(AllowThisStubCall(&ces)); |
| 3701 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 3700 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
| 3702 } | 3701 } |
| 3703 #endif // ENABLE_DEBUGGER_SUPPORT | |
| 3704 | 3702 |
| 3705 | 3703 |
| 3706 void MacroAssembler::InvokeCode(Register code, | 3704 void MacroAssembler::InvokeCode(Register code, |
| 3707 const ParameterCount& expected, | 3705 const ParameterCount& expected, |
| 3708 const ParameterCount& actual, | 3706 const ParameterCount& actual, |
| 3709 InvokeFlag flag, | 3707 InvokeFlag flag, |
| 3710 const CallWrapper& call_wrapper) { | 3708 const CallWrapper& call_wrapper) { |
| 3711 // You can't call a function without a valid frame. | 3709 // You can't call a function without a valid frame. |
| 3712 ASSERT(flag == JUMP_FUNCTION || has_frame()); | 3710 ASSERT(flag == JUMP_FUNCTION || has_frame()); |
| 3713 | 3711 |
| (...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5204 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); | 5202 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); |
| 5205 movl(rax, dividend); | 5203 movl(rax, dividend); |
| 5206 shrl(rax, Immediate(31)); | 5204 shrl(rax, Immediate(31)); |
| 5207 addl(rdx, rax); | 5205 addl(rdx, rax); |
| 5208 } | 5206 } |
| 5209 | 5207 |
| 5210 | 5208 |
| 5211 } } // namespace v8::internal | 5209 } } // namespace v8::internal |
| 5212 | 5210 |
| 5213 #endif // V8_TARGET_ARCH_X64 | 5211 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |