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

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

Issue 1564493002: Make Scanner::kNoSourcePos be a true sentinel value (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 // - R1: instantiator type arguments or raw_null. 659 // - R1: instantiator type arguments or raw_null.
660 // Returns: 660 // Returns:
661 // - object in R0 for successful assignable check (or throws TypeError). 661 // - object in R0 for successful assignable check (or throws TypeError).
662 // Performance notes: positive checks must be quick, negative checks can be slow 662 // Performance notes: positive checks must be quick, negative checks can be slow
663 // as they throw an exception. 663 // as they throw an exception.
664 void FlowGraphCompiler::GenerateAssertAssignable(intptr_t token_pos, 664 void FlowGraphCompiler::GenerateAssertAssignable(intptr_t token_pos,
665 intptr_t deopt_id, 665 intptr_t deopt_id,
666 const AbstractType& dst_type, 666 const AbstractType& dst_type,
667 const String& dst_name, 667 const String& dst_name,
668 LocationSummary* locs) { 668 LocationSummary* locs) {
669 ASSERT(token_pos >= 0); 669 ASSERT(Scanner::ValidSourcePosition(token_pos));
670 ASSERT(!dst_type.IsNull()); 670 ASSERT(!dst_type.IsNull());
671 ASSERT(dst_type.IsFinalized()); 671 ASSERT(dst_type.IsFinalized());
672 // Assignable check is skipped in FlowGraphBuilder, not here. 672 // Assignable check is skipped in FlowGraphBuilder, not here.
673 ASSERT(dst_type.IsMalformedOrMalbounded() || 673 ASSERT(dst_type.IsMalformedOrMalbounded() ||
674 (!dst_type.IsDynamicType() && !dst_type.IsObjectType())); 674 (!dst_type.IsDynamicType() && !dst_type.IsObjectType()));
675 // Preserve instantiator type arguments (R1). 675 // Preserve instantiator type arguments (R1).
676 __ Push(R1); 676 __ Push(R1);
677 // A null object is always assignable and is returned as result. 677 // A null object is always assignable and is returned as result.
678 Label is_assignable, runtime_call; 678 Label is_assignable, runtime_call;
679 __ CompareObject(R0, Object::null_object()); 679 __ CompareObject(R0, Object::null_object());
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1871 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1872 __ PopDouble(reg); 1872 __ PopDouble(reg);
1873 } 1873 }
1874 1874
1875 1875
1876 #undef __ 1876 #undef __
1877 1877
1878 } // namespace dart 1878 } // namespace dart
1879 1879
1880 #endif // defined TARGET_ARCH_ARM64 1880 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698