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

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

Issue 1316673005: Track which entries in the ObjectPool are native entries, and reset them when loading a precompiled… (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
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 if (!function().HasOptionalParameters()) { 778 if (!function().HasOptionalParameters()) {
779 __ leaq(RAX, Address(RBP, (kParamEndSlotFromFp + 779 __ leaq(RAX, Address(RBP, (kParamEndSlotFromFp +
780 function().NumParameters()) * kWordSize)); 780 function().NumParameters()) * kWordSize));
781 } else { 781 } else {
782 __ leaq(RAX, Address(RBP, kFirstLocalSlotFromFp * kWordSize)); 782 __ leaq(RAX, Address(RBP, kFirstLocalSlotFromFp * kWordSize));
783 } 783 }
784 __ LoadImmediate(R10, Immediate(argc_tag)); 784 __ LoadImmediate(R10, Immediate(argc_tag));
785 const StubEntry* stub_entry; 785 const StubEntry* stub_entry;
786 if (link_lazily()) { 786 if (link_lazily()) {
787 stub_entry = StubCode::CallBootstrapCFunction_entry(); 787 stub_entry = StubCode::CallBootstrapCFunction_entry();
788 __ LoadExternalLabel( 788 __ LoadNativeEntry(
789 RBX, &NativeEntry::LinkNativeCallLabel(), kPatchable); 789 RBX, &NativeEntry::LinkNativeCallLabel(), kPatchable);
790 } else { 790 } else {
791 stub_entry = (is_bootstrap_native() || is_leaf_call) 791 stub_entry = (is_bootstrap_native() || is_leaf_call)
792 ? StubCode::CallBootstrapCFunction_entry() 792 ? StubCode::CallBootstrapCFunction_entry()
793 : StubCode::CallNativeCFunction_entry(); 793 : StubCode::CallNativeCFunction_entry();
794 const ExternalLabel label(reinterpret_cast<uword>(native_c_function())); 794 const ExternalLabel label(reinterpret_cast<uword>(native_c_function()));
795 __ LoadExternalLabel(RBX, &label, kNotPatchable); 795 __ LoadNativeEntry(RBX, &label, kNotPatchable);
796 } 796 }
797 compiler->GenerateCall(token_pos(), 797 compiler->GenerateCall(token_pos(),
798 *stub_entry, 798 *stub_entry,
799 RawPcDescriptors::kOther, 799 RawPcDescriptors::kOther,
800 locs()); 800 locs());
801 __ popq(result); 801 __ popq(result);
802 } 802 }
803 803
804 804
805 static bool CanBeImmediateIndex(Value* index, intptr_t cid) { 805 static bool CanBeImmediateIndex(Value* index, intptr_t cid) {
(...skipping 5635 matching lines...) Expand 10 before | Expand all | Expand 10 after
6441 __ Drop(1); 6441 __ Drop(1);
6442 __ popq(result); 6442 __ popq(result);
6443 } 6443 }
6444 6444
6445 6445
6446 } // namespace dart 6446 } // namespace dart
6447 6447
6448 #undef __ 6448 #undef __
6449 6449
6450 #endif // defined TARGET_ARCH_X64 6450 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698