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

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

Issue 227723002: VM: Implement closure calls as instance calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: adjust inlining of dispatchers Created 6 years, 8 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 | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2973 2973
2974 virtual intptr_t ArgumentCount() const { 2974 virtual intptr_t ArgumentCount() const {
2975 return instance_call()->ArgumentCount(); 2975 return instance_call()->ArgumentCount();
2976 } 2976 }
2977 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const { 2977 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const {
2978 return instance_call()->PushArgumentAt(index); 2978 return instance_call()->PushArgumentAt(index);
2979 } 2979 }
2980 2980
2981 bool HasSingleRecognizedTarget() const; 2981 bool HasSingleRecognizedTarget() const;
2982 2982
2983 bool HasSingleDispatcherTarget() const;
2984
2983 virtual intptr_t CallCount() const { return ic_data().AggregateCount(); } 2985 virtual intptr_t CallCount() const { return ic_data().AggregateCount(); }
2984 2986
2985 DECLARE_INSTRUCTION(PolymorphicInstanceCall) 2987 DECLARE_INSTRUCTION(PolymorphicInstanceCall)
2986 2988
2987 const ICData& ic_data() const { return ic_data_; } 2989 const ICData& ic_data() const { return ic_data_; }
2988 2990
2989 virtual bool CanDeoptimize() const { return true; } 2991 virtual bool CanDeoptimize() const { return true; }
2990 2992
2991 virtual EffectSet Effects() const { return EffectSet::All(); } 2993 virtual EffectSet Effects() const { return EffectSet::All(); }
2992 2994
(...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after
7780 ForwardInstructionIterator* current_iterator_; 7782 ForwardInstructionIterator* current_iterator_;
7781 7783
7782 private: 7784 private:
7783 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7785 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7784 }; 7786 };
7785 7787
7786 7788
7787 } // namespace dart 7789 } // namespace dart
7788 7790
7789 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7791 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698