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

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

Issue 1961393002: VM: Optimized code for all of [External]{One|Two}ByteString::codeUnitAt. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comment Created 4 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/intermediate_language.h » ('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/regexp_assembler.h" 10 #include "vm/regexp_assembler.h"
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 return *value()->Type(); 914 return *value()->Type();
915 } 915 }
916 916
917 917
918 CompileType StoreLocalInstr::ComputeType() const { 918 CompileType StoreLocalInstr::ComputeType() const {
919 // Returns stored value. 919 // Returns stored value.
920 return *value()->Type(); 920 return *value()->Type();
921 } 921 }
922 922
923 923
924 CompileType StringFromCharCodeInstr::ComputeType() const { 924 CompileType OneByteStringFromCharCodeInstr::ComputeType() const {
925 return CompileType::FromCid(cid_); 925 return CompileType::FromCid(kOneByteStringCid);
926 } 926 }
927 927
928 928
929 CompileType StringToCharCodeInstr::ComputeType() const { 929 CompileType StringToCharCodeInstr::ComputeType() const {
930 return CompileType::FromCid(kSmiCid); 930 return CompileType::FromCid(kSmiCid);
931 } 931 }
932 932
933 933
934 CompileType StringInterpolateInstr::ComputeType() const { 934 CompileType StringInterpolateInstr::ComputeType() const {
935 // TODO(srdjan): Do better and determine if it is a one or two byte string. 935 // TODO(srdjan): Do better and determine if it is a one or two byte string.
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 CompileType MergedMathInstr::ComputeType() const { 1386 CompileType MergedMathInstr::ComputeType() const {
1387 return CompileType::Dynamic(); 1387 return CompileType::Dynamic();
1388 } 1388 }
1389 1389
1390 1390
1391 CompileType ExtractNthOutputInstr::ComputeType() const { 1391 CompileType ExtractNthOutputInstr::ComputeType() const {
1392 return CompileType::FromCid(definition_cid_); 1392 return CompileType::FromCid(definition_cid_);
1393 } 1393 }
1394 1394
1395 } // namespace dart 1395 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698