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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Fallthrough. 338 // Fallthrough.
339 return true; 339 return true;
340 } 340 }
341 const Class& type_class = Class::Handle(zone(), type.type_class()); 341 const Class& type_class = Class::Handle(zone(), type.type_class());
342 ASSERT(type_class.NumTypeArguments() == 0); 342 ASSERT(type_class.NumTypeArguments() == 0);
343 343
344 const Register kInstanceReg = A0; 344 const Register kInstanceReg = A0;
345 __ andi(T0, A0, Immediate(kSmiTagMask)); 345 __ andi(T0, A0, Immediate(kSmiTagMask));
346 // If instance is Smi, check directly. 346 // If instance is Smi, check directly.
347 const Class& smi_class = Class::Handle(zone(), Smi::Class()); 347 const Class& smi_class = Class::Handle(zone(), Smi::Class());
348 if (smi_class.IsSubtypeOf(TypeArguments::Handle(zone()), type_class, 348 if (smi_class.IsSubtypeOf(Object::null_type_arguments(), type_class,
349 TypeArguments::Handle(zone()), NULL, NULL, 349 Object::null_type_arguments(), NULL, NULL,
350 Heap::kOld)) { 350 Heap::kOld)) {
351 __ beq(T0, ZR, is_instance_lbl); 351 __ beq(T0, ZR, is_instance_lbl);
352 } else { 352 } else {
353 __ beq(T0, ZR, is_not_instance_lbl); 353 __ beq(T0, ZR, is_not_instance_lbl);
354 } 354 }
355 const Register kClassIdReg = T0; 355 const Register kClassIdReg = T0;
356 __ LoadClassId(kClassIdReg, kInstanceReg); 356 __ LoadClassId(kClassIdReg, kInstanceReg);
357 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted 357 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted
358 // interfaces. 358 // interfaces.
359 // Bool interface can be implemented only by core class Bool. 359 // Bool interface can be implemented only by core class Bool.
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 __ AddImmediate(SP, kDoubleSize); 1866 __ AddImmediate(SP, kDoubleSize);
1867 } 1867 }
1868 1868
1869 1869
1870 #undef __ 1870 #undef __
1871 1871
1872 1872
1873 } // namespace dart 1873 } // namespace dart
1874 1874
1875 #endif // defined TARGET_ARCH_MIPS 1875 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698