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

Side by Side Diff: vm/intermediate_language.cc

Issue 10829164: Replace InstanceSetterComp instruction with a plain instance call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_ia32.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) 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_builder.h" 9 #include "vm/flow_graph_builder.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 return Type::DynamicType(); 792 return Type::DynamicType();
793 } 793 }
794 794
795 795
796 RawAbstractType* StoreIndexedComp::StaticType() const { 796 RawAbstractType* StoreIndexedComp::StaticType() const {
797 UNREACHABLE(); 797 UNREACHABLE();
798 return AbstractType::null(); 798 return AbstractType::null();
799 } 799 }
800 800
801 801
802 RawAbstractType* InstanceSetterComp::StaticType() const {
803 // This computation does not have a result value.
804 UNREACHABLE();
805 return AbstractType::null();
806 }
807
808
809 RawAbstractType* LoadInstanceFieldComp::StaticType() const { 802 RawAbstractType* LoadInstanceFieldComp::StaticType() const {
810 if (FLAG_enable_type_checks) { 803 if (FLAG_enable_type_checks) {
811 return field().type(); 804 return field().type();
812 } 805 }
813 return Type::DynamicType(); 806 return Type::DynamicType();
814 } 807 }
815 808
816 809
817 RawAbstractType* StoreInstanceFieldComp::StaticType() const { 810 RawAbstractType* StoreInstanceFieldComp::StaticType() const {
818 return value()->StaticType(); 811 return value()->StaticType();
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 if (compiler->is_ssa()) { 1381 if (compiler->is_ssa()) {
1389 ASSERT(locs()->in(0).IsRegister()); 1382 ASSERT(locs()->in(0).IsRegister());
1390 __ PushRegister(locs()->in(0).reg()); 1383 __ PushRegister(locs()->in(0).reg());
1391 } 1384 }
1392 } 1385 }
1393 1386
1394 1387
1395 #undef __ 1388 #undef __
1396 1389
1397 } // namespace dart 1390 } // namespace dart
OLDNEW
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698