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

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

Issue 2877713003: Eliminated with_checks variable (Closed)
Patch Set: Removed TODO Created 3 years, 7 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_inliner.cc ('k') | runtime/vm/il_printer.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/flow_graph_type_propagator.h" 5 #include "vm/flow_graph_type_propagator.h"
6 6
7 #include "vm/cha.h" 7 #include "vm/cha.h"
8 #include "vm/bit_vector.h" 8 #include "vm/bit_vector.h"
9 #include "vm/il_printer.h" 9 #include "vm/il_printer.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 if (result_cid_ != kDynamicCid) { 1015 if (result_cid_ != kDynamicCid) {
1016 return CompileType::FromCid(result_cid_); 1016 return CompileType::FromCid(result_cid_);
1017 } 1017 }
1018 1018
1019 if (Isolate::Current()->type_checks()) { 1019 if (Isolate::Current()->type_checks()) {
1020 const AbstractType& result_type = 1020 const AbstractType& result_type =
1021 AbstractType::ZoneHandle(function().result_type()); 1021 AbstractType::ZoneHandle(function().result_type());
1022 return CompileType::FromAbstractType(result_type); 1022 return CompileType::FromAbstractType(result_type);
1023 } 1023 }
1024 1024
1025 return CompileType::Dynamic(); 1025 return (function_.recognized_kind() != MethodRecognizer::kUnknown)
1026 ? CompileType::FromCid(MethodRecognizer::ResultCid(function_))
1027 : CompileType::Dynamic();
1026 } 1028 }
1027 1029
1028 1030
1029 CompileType LoadLocalInstr::ComputeType() const { 1031 CompileType LoadLocalInstr::ComputeType() const {
1030 if (Isolate::Current()->type_checks()) { 1032 if (Isolate::Current()->type_checks()) {
1031 return CompileType::FromAbstractType(local().type()); 1033 return CompileType::FromAbstractType(local().type());
1032 } 1034 }
1033 return CompileType::Dynamic(); 1035 return CompileType::Dynamic();
1034 } 1036 }
1035 1037
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 CompileType MergedMathInstr::ComputeType() const { 1521 CompileType MergedMathInstr::ComputeType() const {
1520 return CompileType::Dynamic(); 1522 return CompileType::Dynamic();
1521 } 1523 }
1522 1524
1523 1525
1524 CompileType ExtractNthOutputInstr::ComputeType() const { 1526 CompileType ExtractNthOutputInstr::ComputeType() const {
1525 return CompileType::FromCid(definition_cid_); 1527 return CompileType::FromCid(definition_cid_);
1526 } 1528 }
1527 1529
1528 } // namespace dart 1530 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698