Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: runtime/vm/intermediate_language_ia32.cc

Issue 1358773002: Load the native call wrapper via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698