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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.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_mips.cc ('k') | runtime/vm/intermediate_language.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_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 "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // Fallthrough. 343 // Fallthrough.
344 return true; 344 return true;
345 } 345 }
346 const Class& type_class = Class::Handle(zone(), type.type_class()); 346 const Class& type_class = Class::Handle(zone(), type.type_class());
347 ASSERT(type_class.NumTypeArguments() == 0); 347 ASSERT(type_class.NumTypeArguments() == 0);
348 348
349 const Register kInstanceReg = RAX; 349 const Register kInstanceReg = RAX;
350 __ testq(kInstanceReg, Immediate(kSmiTagMask)); 350 __ testq(kInstanceReg, Immediate(kSmiTagMask));
351 // If instance is Smi, check directly. 351 // If instance is Smi, check directly.
352 const Class& smi_class = Class::Handle(zone(), Smi::Class()); 352 const Class& smi_class = Class::Handle(zone(), Smi::Class());
353 if (smi_class.IsSubtypeOf(TypeArguments::Handle(zone()), type_class, 353 if (smi_class.IsSubtypeOf(Object::null_type_arguments(), type_class,
354 TypeArguments::Handle(zone()), NULL, NULL, 354 Object::null_type_arguments(), NULL, NULL,
355 Heap::kOld)) { 355 Heap::kOld)) {
356 __ j(ZERO, is_instance_lbl); 356 __ j(ZERO, is_instance_lbl);
357 } else { 357 } else {
358 __ j(ZERO, is_not_instance_lbl); 358 __ j(ZERO, is_not_instance_lbl);
359 } 359 }
360 const Register kClassIdReg = R10; 360 const Register kClassIdReg = R10;
361 __ LoadClassId(kClassIdReg, kInstanceReg); 361 __ LoadClassId(kClassIdReg, kInstanceReg);
362 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted 362 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted
363 // interfaces. 363 // interfaces.
364 // Bool interface can be implemented only by core class Bool. 364 // Bool interface can be implemented only by core class Bool.
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 __ movups(reg, Address(RSP, 0)); 1763 __ movups(reg, Address(RSP, 0));
1764 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); 1764 __ AddImmediate(RSP, Immediate(kFpuRegisterSize));
1765 } 1765 }
1766 1766
1767 1767
1768 #undef __ 1768 #undef __
1769 1769
1770 } // namespace dart 1770 } // namespace dart
1771 1771
1772 #endif // defined TARGET_ARCH_X64 1772 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698