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

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

Issue 2072823002: VM: Fix frame size computation for optimized DBC code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/flow_graph_compiler_dbc.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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 #undef DEFINE_UNIMPLEMENTED 177 #undef DEFINE_UNIMPLEMENTED
178 178
179 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(TestCids) 179 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(TestCids)
180 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(TestSmi) 180 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(TestSmi)
181 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(RelationalOp) 181 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(RelationalOp)
182 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(EqualityCompare) 182 DEFINE_UNIMPLEMENTED_EMIT_BRANCH_CODE(EqualityCompare)
183 183
184 184
185 DEFINE_MAKE_LOCATION_SUMMARY(AssertAssignable, 2, 185 DEFINE_MAKE_LOCATION_SUMMARY(AssertAssignable, 2,
186 Location::RequiresRegister(), 186 Location::SameAsFirstInput(),
187 LocationSummary::kCall); 187 LocationSummary::kCall);
188 188
189 189
190 EMIT_NATIVE_CODE(AssertBoolean, 190 EMIT_NATIVE_CODE(AssertBoolean,
191 1, Location::SameAsFirstInput(), 191 1, Location::SameAsFirstInput(),
192 LocationSummary::kCall) { 192 LocationSummary::kCall) {
193 if (compiler->is_optimizing()) { 193 if (compiler->is_optimizing()) {
194 __ Push(locs()->in(0).reg()); 194 __ Push(locs()->in(0).reg());
195 } 195 }
196 __ AssertBoolean(Isolate::Current()->type_checks() ? 1 : 0); 196 __ AssertBoolean(Isolate::Current()->type_checks() ? 1 : 0);
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 if (can_deopt) { 975 if (can_deopt) {
976 compiler->EmitDeopt(deopt_id(), ICData::kDeoptBinarySmiOp); 976 compiler->EmitDeopt(deopt_id(), ICData::kDeoptBinarySmiOp);
977 } else if (needs_nop) { 977 } else if (needs_nop) {
978 __ Nop(); 978 __ Nop();
979 } 979 }
980 } 980 }
981 981
982 } // namespace dart 982 } // namespace dart
983 983
984 #endif // defined TARGET_ARCH_DBC 984 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_dbc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698