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

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

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/native_arguments.h » ('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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 stub_entry = &StubCode::CallBootstrapCFunctionLabel(); 762 stub_entry = &StubCode::CallBootstrapCFunctionLabel();
763 #if defined(USING_SIMULATOR) 763 #if defined(USING_SIMULATOR)
764 entry = Simulator::RedirectExternalReference( 764 entry = Simulator::RedirectExternalReference(
765 entry, Simulator::kBootstrapNativeCall, function().NumParameters()); 765 entry, Simulator::kBootstrapNativeCall, function().NumParameters());
766 #endif 766 #endif
767 } else { 767 } else {
768 // In the case of non bootstrap native methods the CallNativeCFunction 768 // In the case of non bootstrap native methods the CallNativeCFunction
769 // stub generates the redirection address when running under the simulator 769 // stub generates the redirection address when running under the simulator
770 // and hence we do not change 'entry' here. 770 // and hence we do not change 'entry' here.
771 stub_entry = &StubCode::CallNativeCFunctionLabel(); 771 stub_entry = &StubCode::CallNativeCFunctionLabel();
772 #if defined(USING_SIMULATOR)
773 if (!function().IsNativeAutoSetupScope()) {
774 entry = Simulator::RedirectExternalReference(
775 entry, Simulator::kBootstrapNativeCall, function().NumParameters());
776 }
777 #endif
772 } 778 }
773 __ LoadImmediate(T5, entry); 779 __ LoadImmediate(T5, entry);
774 __ LoadImmediate(A1, NativeArguments::ComputeArgcTag(function())); 780 __ LoadImmediate(A1, NativeArguments::ComputeArgcTag(function()));
775 compiler->GenerateCall(token_pos(), 781 compiler->GenerateCall(token_pos(),
776 stub_entry, 782 stub_entry,
777 PcDescriptors::kOther, 783 PcDescriptors::kOther,
778 locs()); 784 locs());
779 __ Pop(result); 785 __ Pop(result);
780 } 786 }
781 787
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after
4181 compiler->GenerateCall(token_pos(), 4187 compiler->GenerateCall(token_pos(),
4182 &label, 4188 &label,
4183 PcDescriptors::kOther, 4189 PcDescriptors::kOther,
4184 locs()); 4190 locs());
4185 __ Drop(2); // Discard type arguments and receiver. 4191 __ Drop(2); // Discard type arguments and receiver.
4186 } 4192 }
4187 4193
4188 } // namespace dart 4194 } // namespace dart
4189 4195
4190 #endif // defined TARGET_ARCH_MIPS 4196 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/native_arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698