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

Side by Side Diff: vm/intermediate_language.cc

Issue 10825176: Refactor our IL instruction for static setters. (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
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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 } 799 }
800 800
801 801
802 RawAbstractType* InstanceSetterComp::StaticType() const { 802 RawAbstractType* InstanceSetterComp::StaticType() const {
803 // This computation does not have a result value. 803 // This computation does not have a result value.
804 UNREACHABLE(); 804 UNREACHABLE();
805 return AbstractType::null(); 805 return AbstractType::null();
806 } 806 }
807 807
808 808
809 RawAbstractType* StaticSetterComp::StaticType() const {
810 return value()->StaticType();
811 }
812
813
814 RawAbstractType* LoadInstanceFieldComp::StaticType() const { 809 RawAbstractType* LoadInstanceFieldComp::StaticType() const {
815 if (FLAG_enable_type_checks) { 810 if (FLAG_enable_type_checks) {
816 return field().type(); 811 return field().type();
817 } 812 }
818 return Type::DynamicType(); 813 return Type::DynamicType();
819 } 814 }
820 815
821 816
822 RawAbstractType* StoreInstanceFieldComp::StaticType() const { 817 RawAbstractType* StoreInstanceFieldComp::StaticType() const {
823 return value()->StaticType(); 818 return value()->StaticType();
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 if (compiler->is_ssa()) { 1388 if (compiler->is_ssa()) {
1394 ASSERT(locs()->in(0).IsRegister()); 1389 ASSERT(locs()->in(0).IsRegister());
1395 __ PushRegister(locs()->in(0).reg()); 1390 __ PushRegister(locs()->in(0).reg());
1396 } 1391 }
1397 } 1392 }
1398 1393
1399 1394
1400 #undef __ 1395 #undef __
1401 1396
1402 } // namespace dart 1397 } // namespace dart
OLDNEW
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_ia32.cc » ('j') | vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698