| 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 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 __ ret(); | 2031 __ ret(); |
| 2032 | 2032 |
| 2033 __ Bind(¬_smi); | 2033 __ Bind(¬_smi); |
| 2034 __ LoadClassId(EAX, EAX); | 2034 __ LoadClassId(EAX, EAX); |
| 2035 __ SmiTag(EAX); | 2035 __ SmiTag(EAX); |
| 2036 __ ret(); | 2036 __ ret(); |
| 2037 | 2037 |
| 2038 __ Bind(&update_ic_data); | 2038 __ Bind(&update_ic_data); |
| 2039 | 2039 |
| 2040 // ECX: ICData | 2040 // ECX: ICData |
| 2041 const String& equal_name = String::ZoneHandle(Symbols::New("==")); | 2041 const String& equal_name = String::ZoneHandle(Symbols::EqualOperator()); |
| 2042 __ movl(EAX, Address(ESP, 1 * kWordSize)); | 2042 __ movl(EAX, Address(ESP, 1 * kWordSize)); |
| 2043 __ movl(EDI, Address(ESP, 2 * kWordSize)); | 2043 __ movl(EDI, Address(ESP, 2 * kWordSize)); |
| 2044 AssemblerMacros::EnterStubFrame(assembler); | 2044 AssemblerMacros::EnterStubFrame(assembler); |
| 2045 __ pushl(EDI); // arg 0 | 2045 __ pushl(EDI); // arg 0 |
| 2046 __ pushl(EAX); // arg 1 | 2046 __ pushl(EAX); // arg 1 |
| 2047 __ PushObject(equal_name); // Target's name. | 2047 __ PushObject(equal_name); // Target's name. |
| 2048 __ pushl(ECX); // ICData | 2048 __ pushl(ECX); // ICData |
| 2049 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); | 2049 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); |
| 2050 __ Drop(4); | 2050 __ Drop(4); |
| 2051 __ LeaveFrame(); | 2051 __ LeaveFrame(); |
| 2052 | 2052 |
| 2053 __ jmp(&compute_result, Assembler::kNearJump); | 2053 __ jmp(&compute_result, Assembler::kNearJump); |
| 2054 } | 2054 } |
| 2055 | 2055 |
| 2056 | 2056 |
| 2057 } // namespace dart | 2057 } // namespace dart |
| 2058 | 2058 |
| 2059 #endif // defined TARGET_ARCH_IA32 | 2059 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |