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

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

Issue 1815733003: Remove recently introduced FunctionType vm class by merging it into class Type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comment Created 4 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_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm64.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 SubtypeTestCache::ZoneHandle(zone(), 509 SubtypeTestCache::ZoneHandle(zone(),
510 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, 510 GenerateCallSubtypeTestStub(kTestTypeThreeArgs,
511 kInstanceReg, 511 kInstanceReg,
512 kTypeArgumentsReg, 512 kTypeArgumentsReg,
513 kTempReg, 513 kTempReg,
514 is_instance_lbl, 514 is_instance_lbl,
515 is_not_instance_lbl)); 515 is_not_instance_lbl));
516 __ Bind(&fall_through); 516 __ Bind(&fall_through);
517 return type_test_cache.raw(); 517 return type_test_cache.raw();
518 } 518 }
519 if (type.IsType() || type.IsFunctionType()) { 519 if (type.IsType()) {
520 const Register kInstanceReg = R0; 520 const Register kInstanceReg = R0;
521 const Register kTypeArgumentsReg = R1; 521 const Register kTypeArgumentsReg = R1;
522 __ tst(kInstanceReg, Operand(kSmiTagMask)); // Is instance Smi? 522 __ tst(kInstanceReg, Operand(kSmiTagMask)); // Is instance Smi?
523 __ b(is_not_instance_lbl, EQ); 523 __ b(is_not_instance_lbl, EQ);
524 __ ldr(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args. 524 __ ldr(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args.
525 // Uninstantiated type class is known at compile time, but the type 525 // Uninstantiated type class is known at compile time, but the type
526 // arguments are determined at runtime by the instantiator. 526 // arguments are determined at runtime by the instantiator.
527 const Register kTempReg = kNoRegister; 527 const Register kTempReg = kNoRegister;
528 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, 528 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs,
529 kInstanceReg, 529 kInstanceReg,
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 DRegister dreg = EvenDRegisterOf(reg); 1977 DRegister dreg = EvenDRegisterOf(reg);
1978 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1978 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1979 } 1979 }
1980 1980
1981 1981
1982 #undef __ 1982 #undef __
1983 1983
1984 } // namespace dart 1984 } // namespace dart
1985 1985
1986 #endif // defined TARGET_ARCH_ARM 1986 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698