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

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

Issue 10933046: Cleanup: Replace LoadInstanceFieldInstr with LoadVMFieldInstr. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 RawAbstractType* LoadIndexedInstr::CompileType() const { 906 RawAbstractType* LoadIndexedInstr::CompileType() const {
907 return Type::DynamicType(); 907 return Type::DynamicType();
908 } 908 }
909 909
910 910
911 RawAbstractType* StoreIndexedInstr::CompileType() const { 911 RawAbstractType* StoreIndexedInstr::CompileType() const {
912 return AbstractType::null(); 912 return AbstractType::null();
913 } 913 }
914 914
915 915
916 RawAbstractType* LoadInstanceFieldInstr::CompileType() const {
917 if (FLAG_enable_type_checks) {
918 return field().type();
919 }
920 return Type::DynamicType();
921 }
922
923
924 RawAbstractType* StoreInstanceFieldInstr::CompileType() const { 916 RawAbstractType* StoreInstanceFieldInstr::CompileType() const {
925 return value()->CompileType(); 917 return value()->CompileType();
926 } 918 }
927 919
928 920
929 RawAbstractType* LoadStaticFieldInstr::CompileType() const { 921 RawAbstractType* LoadStaticFieldInstr::CompileType() const {
930 if (FLAG_enable_type_checks) { 922 if (FLAG_enable_type_checks) {
931 return field().type(); 923 return field().type();
932 } 924 }
933 return Type::DynamicType(); 925 return Type::DynamicType();
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 value->set_use_index(use_index++); 1655 value->set_use_index(use_index++);
1664 value->AddToEnvUseList(); 1656 value->AddToEnvUseList();
1665 } 1657 }
1666 instr->set_env(copy); 1658 instr->set_env(copy);
1667 } 1659 }
1668 1660
1669 1661
1670 #undef __ 1662 #undef __
1671 1663
1672 } // namespace dart 1664 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698