| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/code_generator.h" | 8 #include "vm/code_generator.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
| (...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 __ pushq(RBX); | 1715 __ pushq(RBX); |
| 1716 __ pushq(R10); | 1716 __ pushq(R10); |
| 1717 __ CallRuntimeFromStub(kBreakpointDynamicHandlerRuntimeEntry); | 1717 __ CallRuntimeFromStub(kBreakpointDynamicHandlerRuntimeEntry); |
| 1718 __ popq(R10); | 1718 __ popq(R10); |
| 1719 __ popq(RBX); | 1719 __ popq(RBX); |
| 1720 __ LeaveFrame(); | 1720 __ LeaveFrame(); |
| 1721 | 1721 |
| 1722 // Find out which dispatch stub to call. | 1722 // Find out which dispatch stub to call. |
| 1723 Label ic_cache_one_arg; | 1723 Label ic_cache_one_arg; |
| 1724 __ movq(RCX, FieldAddress(RBX, ICData::num_args_tested_offset())); | 1724 __ movq(RCX, FieldAddress(RBX, ICData::num_args_tested_offset())); |
| 1725 const Immediate value = Immediate(reinterpret_cast<intptr_t>(Smi::New(1))); | 1725 __ cmpq(RCX, Immediate(1)); |
| 1726 __ cmpq(RCX, value); | |
| 1727 __ j(EQUAL, &ic_cache_one_arg, Assembler::kNearJump); | 1726 __ j(EQUAL, &ic_cache_one_arg, Assembler::kNearJump); |
| 1728 __ jmp(&StubCode::TwoArgsCheckInlineCacheLabel()); | 1727 __ jmp(&StubCode::TwoArgsCheckInlineCacheLabel()); |
| 1729 __ Bind(&ic_cache_one_arg); | 1728 __ Bind(&ic_cache_one_arg); |
| 1730 __ jmp(&StubCode::OneArgCheckInlineCacheLabel()); | 1729 __ jmp(&StubCode::OneArgCheckInlineCacheLabel()); |
| 1731 } | 1730 } |
| 1732 | 1731 |
| 1733 } // namespace dart | 1732 } // namespace dart |
| 1734 | 1733 |
| 1735 #endif // defined TARGET_ARCH_X64 | 1734 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |