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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 __ jmp(is_not_instance_lbl); | 257 __ jmp(is_not_instance_lbl); |
258 return false; | 258 return false; |
259 } | 259 } |
260 // Custom checking for numbers (Smi, Mint, Bigint and Double). | 260 // Custom checking for numbers (Smi, Mint, Bigint and Double). |
261 // Note that instance is not Smi (checked above). | 261 // Note that instance is not Smi (checked above). |
262 if (type.IsSubtypeOf(Type::Handle(Type::Number()), NULL)) { | 262 if (type.IsSubtypeOf(Type::Handle(Type::Number()), NULL)) { |
263 GenerateNumberTypeCheck( | 263 GenerateNumberTypeCheck( |
264 kClassIdReg, type, is_instance_lbl, is_not_instance_lbl); | 264 kClassIdReg, type, is_instance_lbl, is_not_instance_lbl); |
265 return false; | 265 return false; |
266 } | 266 } |
267 if (type.IsStringInterface()) { | 267 if (type.IsStringType()) { |
268 GenerateStringTypeCheck(kClassIdReg, is_instance_lbl, is_not_instance_lbl); | 268 GenerateStringTypeCheck(kClassIdReg, is_instance_lbl, is_not_instance_lbl); |
269 return false; | 269 return false; |
270 } | 270 } |
271 // Otherwise fallthrough. | 271 // Otherwise fallthrough. |
272 return true; | 272 return true; |
273 } | 273 } |
274 | 274 |
275 | 275 |
276 // Uses SubtypeTestCache to store instance class and result. | 276 // Uses SubtypeTestCache to store instance class and result. |
277 // RAX: instance to test. | 277 // RAX: instance to test. |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1363 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
1364 __ Exchange(mem1, mem2); | 1364 __ Exchange(mem1, mem2); |
1365 } | 1365 } |
1366 | 1366 |
1367 | 1367 |
1368 #undef __ | 1368 #undef __ |
1369 | 1369 |
1370 } // namespace dart | 1370 } // namespace dart |
1371 | 1371 |
1372 #endif // defined TARGET_ARCH_X64 | 1372 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |