Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 2759393005: Cleanup change. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // Fallthrough. 339 // Fallthrough.
340 return true; 340 return true;
341 } 341 }
342 const Class& type_class = Class::Handle(zone(), type.type_class()); 342 const Class& type_class = Class::Handle(zone(), type.type_class());
343 ASSERT(type_class.NumTypeArguments() == 0); 343 ASSERT(type_class.NumTypeArguments() == 0);
344 344
345 const Register kInstanceReg = R0; 345 const Register kInstanceReg = R0;
346 __ tsti(kInstanceReg, Immediate(kSmiTagMask)); 346 __ tsti(kInstanceReg, Immediate(kSmiTagMask));
347 // If instance is Smi, check directly. 347 // If instance is Smi, check directly.
348 const Class& smi_class = Class::Handle(zone(), Smi::Class()); 348 const Class& smi_class = Class::Handle(zone(), Smi::Class());
349 if (smi_class.IsSubtypeOf(TypeArguments::Handle(zone()), type_class, 349 if (smi_class.IsSubtypeOf(Object::null_type_arguments(), type_class,
350 TypeArguments::Handle(zone()), NULL, NULL, 350 Object::null_type_arguments(), NULL, NULL,
351 Heap::kOld)) { 351 Heap::kOld)) {
352 __ b(is_instance_lbl, EQ); 352 __ b(is_instance_lbl, EQ);
353 } else { 353 } else {
354 __ b(is_not_instance_lbl, EQ); 354 __ b(is_not_instance_lbl, EQ);
355 } 355 }
356 const Register kClassIdReg = R2; 356 const Register kClassIdReg = R2;
357 __ LoadClassId(kClassIdReg, kInstanceReg); 357 __ LoadClassId(kClassIdReg, kInstanceReg);
358 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted 358 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted
359 // interfaces. 359 // interfaces.
360 // Bool interface can be implemented only by core class Bool. 360 // Bool interface can be implemented only by core class Bool.
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1835 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1836 __ PopDouble(reg); 1836 __ PopDouble(reg);
1837 } 1837 }
1838 1838
1839 1839
1840 #undef __ 1840 #undef __
1841 1841
1842 } // namespace dart 1842 } // namespace dart
1843 1843
1844 #endif // defined TARGET_ARCH_ARM64 1844 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698