| 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" // 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/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 const Immediate raw_null = | 1144 const Immediate raw_null = |
| 1145 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 1145 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
| 1146 Label check_identity, fall_through; | 1146 Label check_identity, fall_through; |
| 1147 __ cmpl(Address(ESP, 0 * kWordSize), raw_null); | 1147 __ cmpl(Address(ESP, 0 * kWordSize), raw_null); |
| 1148 __ j(EQUAL, &check_identity, Assembler::kNearJump); | 1148 __ j(EQUAL, &check_identity, Assembler::kNearJump); |
| 1149 __ cmpl(Address(ESP, 1 * kWordSize), raw_null); | 1149 __ cmpl(Address(ESP, 1 * kWordSize), raw_null); |
| 1150 __ j(NOT_EQUAL, &fall_through, Assembler::kNearJump); | 1150 __ j(NOT_EQUAL, &fall_through, Assembler::kNearJump); |
| 1151 | 1151 |
| 1152 __ Bind(&check_identity); | 1152 __ Bind(&check_identity); |
| 1153 __ popl(result); | 1153 __ popl(result); |
| 1154 __ cmpl(result, Address(ESP, 1 * kWordSize)); | 1154 __ cmpl(result, Address(ESP, 0 * kWordSize)); |
| 1155 Label is_false; | 1155 Label is_false; |
| 1156 __ j(NOT_EQUAL, &is_false, Assembler::kNearJump); | 1156 __ j(NOT_EQUAL, &is_false, Assembler::kNearJump); |
| 1157 __ LoadObject(result, bool_true()); | 1157 __ LoadObject(result, bool_true()); |
| 1158 __ Drop(1); | 1158 __ Drop(1); |
| 1159 __ jmp(skip_call); | 1159 __ jmp(skip_call); |
| 1160 __ Bind(&is_false); | 1160 __ Bind(&is_false); |
| 1161 __ LoadObject(result, bool_false()); | 1161 __ LoadObject(result, bool_false()); |
| 1162 __ Drop(1); | 1162 __ Drop(1); |
| 1163 __ jmp(skip_call); | 1163 __ jmp(skip_call); |
| 1164 __ Bind(&fall_through); | 1164 __ Bind(&fall_through); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 __ popl(ECX); | 1407 __ popl(ECX); |
| 1408 __ popl(EAX); | 1408 __ popl(EAX); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 | 1411 |
| 1412 #undef __ | 1412 #undef __ |
| 1413 | 1413 |
| 1414 } // namespace dart | 1414 } // namespace dart |
| 1415 | 1415 |
| 1416 #endif // defined TARGET_ARCH_IA32 | 1416 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |