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

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

Issue 11187046: Apply optimization after class-id propagation: instance calls without ICData are optimized by using… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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_optimizer.cc ('k') | runtime/vm/object.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 #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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 intptr_t checked_argument_count() const { return checked_argument_count_; } 2106 intptr_t checked_argument_count() const { return checked_argument_count_; }
2107 2107
2108 virtual void PrintOperandsTo(BufferFormatter* f) const; 2108 virtual void PrintOperandsTo(BufferFormatter* f) const;
2109 2109
2110 virtual bool CanDeoptimize() const { return true; } 2110 virtual bool CanDeoptimize() const { return true; }
2111 2111
2112 virtual bool HasSideEffect() const { return true; } 2112 virtual bool HasSideEffect() const { return true; }
2113 2113
2114 virtual intptr_t ResultCid() const { return kDynamicCid; } 2114 virtual intptr_t ResultCid() const { return kDynamicCid; }
2115 2115
2116 protected:
2117 friend class FlowGraphOptimizer;
2118 void set_ic_data(ICData* value) { ic_data_ = value; }
2119
2116 private: 2120 private:
2117 const ICData* ic_data_; 2121 const ICData* ic_data_;
2118 const intptr_t token_pos_; 2122 const intptr_t token_pos_;
2119 const String& function_name_; 2123 const String& function_name_;
2120 const Token::Kind token_kind_; // Binary op, unary op, kGET or kILLEGAL. 2124 const Token::Kind token_kind_; // Binary op, unary op, kGET or kILLEGAL.
2121 ZoneGrowableArray<PushArgumentInstr*>* const arguments_; 2125 ZoneGrowableArray<PushArgumentInstr*>* const arguments_;
2122 const Array& argument_names_; 2126 const Array& argument_names_;
2123 const intptr_t checked_argument_count_; 2127 const intptr_t checked_argument_count_;
2124 2128
2125 DISALLOW_COPY_AND_ASSIGN(InstanceCallInstr); 2129 DISALLOW_COPY_AND_ASSIGN(InstanceCallInstr);
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after
4237 ForwardInstructionIterator* current_iterator_; 4241 ForwardInstructionIterator* current_iterator_;
4238 4242
4239 private: 4243 private:
4240 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4244 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4241 }; 4245 };
4242 4246
4243 4247
4244 } // namespace dart 4248 } // namespace dart
4245 4249
4246 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4250 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698