| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |