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

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

Issue 2196693003: DBC: Fail cleanly when attempting to create an AOT or JIT app snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/dart_api_impl.cc ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC.
6 #if defined(TARGET_ARCH_DBC) 6 #if defined(TARGET_ARCH_DBC)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 EMIT_NATIVE_CODE(NativeCall, 779 EMIT_NATIVE_CODE(NativeCall,
780 0, Location::NoLocation(), 780 0, Location::NoLocation(),
781 LocationSummary::kCall) { 781 LocationSummary::kCall) {
782 SetupNative(); 782 SetupNative();
783 783
784 const intptr_t argc_tag = NativeArguments::ComputeArgcTag(function()); 784 const intptr_t argc_tag = NativeArguments::ComputeArgcTag(function());
785 785
786 ASSERT(!link_lazily()); 786 ASSERT(!link_lazily());
787 const ExternalLabel label(reinterpret_cast<uword>(native_c_function())); 787 const ExternalLabel label(reinterpret_cast<uword>(native_c_function()));
788 const intptr_t target_kidx = 788 const intptr_t target_kidx =
789 __ object_pool_wrapper().FindImmediate(label.address()); 789 __ object_pool_wrapper().FindNativeEntry(&label, kNotPatchable);
zra 2016/07/29 20:56:27 Are there more places that we should be passing th
rmacnak 2016/07/29 21:08:08 This should be the only place with native entry in
790 const intptr_t argc_tag_kidx = 790 const intptr_t argc_tag_kidx =
791 __ object_pool_wrapper().FindImmediate(static_cast<uword>(argc_tag)); 791 __ object_pool_wrapper().FindImmediate(static_cast<uword>(argc_tag));
792 __ PushConstant(target_kidx); 792 __ PushConstant(target_kidx);
793 __ PushConstant(argc_tag_kidx); 793 __ PushConstant(argc_tag_kidx);
794 if (is_bootstrap_native()) { 794 if (is_bootstrap_native()) {
795 __ NativeBootstrapCall(); 795 __ NativeBootstrapCall();
796 } else { 796 } else {
797 __ NativeCall(); 797 __ NativeCall();
798 } 798 }
799 compiler->RecordSafepoint(locs()); 799 compiler->RecordSafepoint(locs());
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 __ IfULe(length, index); 1598 __ IfULe(length, index);
1599 compiler->EmitDeopt(deopt_id(), 1599 compiler->EmitDeopt(deopt_id(),
1600 ICData::kDeoptCheckArrayBound, 1600 ICData::kDeoptCheckArrayBound,
1601 (generalized_ ? ICData::kGeneralized : 0) | 1601 (generalized_ ? ICData::kGeneralized : 0) |
1602 (licm_hoisted_ ? ICData::kHoisted : 0)); 1602 (licm_hoisted_ ? ICData::kHoisted : 0));
1603 } 1603 }
1604 1604
1605 } // namespace dart 1605 } // namespace dart
1606 1606
1607 #endif // defined TARGET_ARCH_DBC 1607 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698