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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 __ jmp(is_not_instance_lbl); | 261 __ jmp(is_not_instance_lbl); |
262 return false; | 262 return false; |
263 } | 263 } |
264 // Custom checking for numbers (Smi, Mint, Bigint and Double). | 264 // Custom checking for numbers (Smi, Mint, Bigint and Double). |
265 // Note that instance is not Smi (checked above). | 265 // Note that instance is not Smi (checked above). |
266 if (type.IsSubtypeOf(Type::Handle(Type::Number()), NULL)) { | 266 if (type.IsSubtypeOf(Type::Handle(Type::Number()), NULL)) { |
267 GenerateNumberTypeCheck( | 267 GenerateNumberTypeCheck( |
268 kClassIdReg, type, is_instance_lbl, is_not_instance_lbl); | 268 kClassIdReg, type, is_instance_lbl, is_not_instance_lbl); |
269 return false; | 269 return false; |
270 } | 270 } |
271 if (type.IsStringInterface()) { | 271 if (type.IsStringType()) { |
272 GenerateStringTypeCheck(kClassIdReg, is_instance_lbl, is_not_instance_lbl); | 272 GenerateStringTypeCheck(kClassIdReg, is_instance_lbl, is_not_instance_lbl); |
273 return false; | 273 return false; |
274 } | 274 } |
275 // Otherwise fallthrough. | 275 // Otherwise fallthrough. |
276 return true; | 276 return true; |
277 } | 277 } |
278 | 278 |
279 | 279 |
280 // Uses SubtypeTestCache to store instance class and result. | 280 // Uses SubtypeTestCache to store instance class and result. |
281 // RAX: instance to test. | 281 // RAX: instance to test. |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1355 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
1356 __ Exchange(mem1, mem2); | 1356 __ Exchange(mem1, mem2); |
1357 } | 1357 } |
1358 | 1358 |
1359 | 1359 |
1360 #undef __ | 1360 #undef __ |
1361 | 1361 |
1362 } // namespace dart | 1362 } // namespace dart |
1363 | 1363 |
1364 #endif // defined TARGET_ARCH_X64 | 1364 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |