OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/assembler_macros.h" | 9 #include "vm/assembler_macros.h" |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 __ ret(); | 2002 __ ret(); |
2003 | 2003 |
2004 __ Bind(&update_ic_data); | 2004 __ Bind(&update_ic_data); |
2005 | 2005 |
2006 // ECX: ICData | 2006 // ECX: ICData |
2007 __ movl(EAX, Address(ESP, 1 * kWordSize)); | 2007 __ movl(EAX, Address(ESP, 1 * kWordSize)); |
2008 __ movl(EDI, Address(ESP, 2 * kWordSize)); | 2008 __ movl(EDI, Address(ESP, 2 * kWordSize)); |
2009 AssemblerMacros::EnterStubFrame(assembler); | 2009 AssemblerMacros::EnterStubFrame(assembler); |
2010 __ pushl(EDI); // arg 0 | 2010 __ pushl(EDI); // arg 0 |
2011 __ pushl(EAX); // arg 1 | 2011 __ pushl(EAX); // arg 1 |
2012 __ PushObject(Symbols::EqualOperatorHandle()); // Target's name. | 2012 __ PushObject(Symbols::EqualOperator()); // Target's name. |
2013 __ pushl(ECX); // ICData | 2013 __ pushl(ECX); // ICData |
2014 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); | 2014 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); |
2015 __ Drop(4); | 2015 __ Drop(4); |
2016 __ LeaveFrame(); | 2016 __ LeaveFrame(); |
2017 | 2017 |
2018 __ jmp(&compute_result, Assembler::kNearJump); | 2018 __ jmp(&compute_result, Assembler::kNearJump); |
2019 } | 2019 } |
2020 | 2020 |
2021 | 2021 |
2022 // Calls to runtime to ooptimized give function | 2022 // Calls to runtime to ooptimized give function |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 __ Bind(&done); | 2115 __ Bind(&done); |
2116 __ popl(temp); | 2116 __ popl(temp); |
2117 __ popl(right); | 2117 __ popl(right); |
2118 __ popl(left); | 2118 __ popl(left); |
2119 __ ret(); | 2119 __ ret(); |
2120 } | 2120 } |
2121 | 2121 |
2122 } // namespace dart | 2122 } // namespace dart |
2123 | 2123 |
2124 #endif // defined TARGET_ARCH_IA32 | 2124 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |