OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 __ leal(EAX, Address(EBP, (kParamEndSlotFromFp + | 826 __ leal(EAX, Address(EBP, (kParamEndSlotFromFp + |
827 function().NumParameters()) * kWordSize)); | 827 function().NumParameters()) * kWordSize)); |
828 } else { | 828 } else { |
829 __ leal(EAX, Address(EBP, kFirstLocalSlotFromFp * kWordSize)); | 829 __ leal(EAX, Address(EBP, kFirstLocalSlotFromFp * kWordSize)); |
830 } | 830 } |
831 __ movl(EDX, Immediate(argc_tag)); | 831 __ movl(EDX, Immediate(argc_tag)); |
832 | 832 |
833 const StubEntry* stub_entry; | 833 const StubEntry* stub_entry; |
834 if (link_lazily()) { | 834 if (link_lazily()) { |
835 stub_entry = StubCode::CallBootstrapCFunction_entry(); | 835 stub_entry = StubCode::CallBootstrapCFunction_entry(); |
836 __ movl(ECX, Immediate(NativeEntry::LinkNativeCallLabel().address())); | 836 __ movl(ECX, Immediate(NativeEntry::LinkNativeCallEntry())); |
837 } else { | 837 } else { |
838 stub_entry = (is_bootstrap_native() || is_leaf_call) ? | 838 stub_entry = (is_bootstrap_native() || is_leaf_call) ? |
839 StubCode::CallBootstrapCFunction_entry() : | 839 StubCode::CallBootstrapCFunction_entry() : |
840 StubCode::CallNativeCFunction_entry(); | 840 StubCode::CallNativeCFunction_entry(); |
841 const ExternalLabel label(reinterpret_cast<uword>(native_c_function())); | 841 const ExternalLabel label(reinterpret_cast<uword>(native_c_function())); |
842 __ movl(ECX, Immediate(label.address())); | 842 __ movl(ECX, Immediate(label.address())); |
843 } | 843 } |
844 compiler->GenerateCall(token_pos(), | 844 compiler->GenerateCall(token_pos(), |
845 *stub_entry, | 845 *stub_entry, |
846 RawPcDescriptors::kOther, | 846 RawPcDescriptors::kOther, |
(...skipping 6023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6870 __ Drop(1); | 6870 __ Drop(1); |
6871 __ popl(result); | 6871 __ popl(result); |
6872 } | 6872 } |
6873 | 6873 |
6874 | 6874 |
6875 } // namespace dart | 6875 } // namespace dart |
6876 | 6876 |
6877 #undef __ | 6877 #undef __ |
6878 | 6878 |
6879 #endif // defined TARGET_ARCH_IA32 | 6879 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |