| OLD | NEW |
| 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 3325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3336 bool is_known_list_constructor() const { return is_known_list_constructor_; } | 3336 bool is_known_list_constructor() const { return is_known_list_constructor_; } |
| 3337 void set_is_known_list_constructor(bool value) { | 3337 void set_is_known_list_constructor(bool value) { |
| 3338 is_known_list_constructor_ = value; | 3338 is_known_list_constructor_ = value; |
| 3339 } | 3339 } |
| 3340 | 3340 |
| 3341 bool is_native_list_factory() const { return is_native_list_factory_; } | 3341 bool is_native_list_factory() const { return is_native_list_factory_; } |
| 3342 void set_is_native_list_factory(bool value) { | 3342 void set_is_native_list_factory(bool value) { |
| 3343 is_native_list_factory_ = value; | 3343 is_native_list_factory_ = value; |
| 3344 } | 3344 } |
| 3345 | 3345 |
| 3346 bool IsRecognizedFactory() const { |
| 3347 return is_known_list_constructor() || is_native_list_factory(); |
| 3348 } |
| 3349 |
| 3346 virtual bool MayThrow() const { return true; } | 3350 virtual bool MayThrow() const { return true; } |
| 3347 | 3351 |
| 3348 virtual AliasIdentity Identity() const { return identity_; } | 3352 virtual AliasIdentity Identity() const { return identity_; } |
| 3349 virtual void SetIdentity(AliasIdentity identity) { identity_ = identity; } | 3353 virtual void SetIdentity(AliasIdentity identity) { identity_ = identity; } |
| 3350 | 3354 |
| 3351 private: | 3355 private: |
| 3352 const ICData* ic_data_; | 3356 const ICData* ic_data_; |
| 3353 const intptr_t token_pos_; | 3357 const intptr_t token_pos_; |
| 3354 const Function& function_; | 3358 const Function& function_; |
| 3355 const Array& argument_names_; | 3359 const Array& argument_names_; |
| (...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7704 ForwardInstructionIterator* current_iterator_; | 7708 ForwardInstructionIterator* current_iterator_; |
| 7705 | 7709 |
| 7706 private: | 7710 private: |
| 7707 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7711 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7708 }; | 7712 }; |
| 7709 | 7713 |
| 7710 | 7714 |
| 7711 } // namespace dart | 7715 } // namespace dart |
| 7712 | 7716 |
| 7713 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7717 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |