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

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

Issue 2748073002: Revert "VM: Simplify lowering of is-tests." (Closed)
Patch Set: Created 3 years, 9 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_dbc.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/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 summary->set_in(1, Location::RegisterLocation(EDX)); 2002 summary->set_in(1, Location::RegisterLocation(EDX));
2003 summary->set_out(0, Location::RegisterLocation(EAX)); 2003 summary->set_out(0, Location::RegisterLocation(EAX));
2004 return summary; 2004 return summary;
2005 } 2005 }
2006 2006
2007 2007
2008 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2008 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2009 ASSERT(locs()->in(0).reg() == EAX); // Value. 2009 ASSERT(locs()->in(0).reg() == EAX); // Value.
2010 ASSERT(locs()->in(1).reg() == EDX); // Instantiator type arguments. 2010 ASSERT(locs()->in(1).reg() == EDX); // Instantiator type arguments.
2011 2011
2012 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs()); 2012 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(),
2013 locs());
2013 ASSERT(locs()->out(0).reg() == EAX); 2014 ASSERT(locs()->out(0).reg() == EAX);
2014 } 2015 }
2015 2016
2016 2017
2017 // TODO(srdjan): In case of constant inputs make CreateArray kNoCall and 2018 // TODO(srdjan): In case of constant inputs make CreateArray kNoCall and
2018 // use slow path stub. 2019 // use slow path stub.
2019 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, 2020 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone,
2020 bool opt) const { 2021 bool opt) const {
2021 const intptr_t kNumInputs = 2; 2022 const intptr_t kNumInputs = 2;
2022 const intptr_t kNumTemps = 0; 2023 const intptr_t kNumTemps = 0;
(...skipping 4849 matching lines...) Expand 10 before | Expand all | Expand 10 after
6872 __ Drop(1); 6873 __ Drop(1);
6873 __ popl(result); 6874 __ popl(result);
6874 } 6875 }
6875 6876
6876 6877
6877 } // namespace dart 6878 } // namespace dart
6878 6879
6879 #undef __ 6880 #undef __
6880 6881
6881 #endif // defined TARGET_ARCH_IA32 6882 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_dbc.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698