| 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 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2735 | 2735 |
| 2736 class PolymorphicInstanceCallInstr : public TemplateDefinition<0> { | 2736 class PolymorphicInstanceCallInstr : public TemplateDefinition<0> { |
| 2737 public: | 2737 public: |
| 2738 PolymorphicInstanceCallInstr(InstanceCallInstr* instance_call, | 2738 PolymorphicInstanceCallInstr(InstanceCallInstr* instance_call, |
| 2739 const ICData& ic_data, | 2739 const ICData& ic_data, |
| 2740 bool with_checks) | 2740 bool with_checks) |
| 2741 : instance_call_(instance_call), | 2741 : instance_call_(instance_call), |
| 2742 ic_data_(ic_data), | 2742 ic_data_(ic_data), |
| 2743 with_checks_(with_checks) { | 2743 with_checks_(with_checks) { |
| 2744 ASSERT(instance_call_ != NULL); | 2744 ASSERT(instance_call_ != NULL); |
| 2745 ASSERT(ic_data.NumberOfChecks() > 0); |
| 2745 deopt_id_ = instance_call->deopt_id(); | 2746 deopt_id_ = instance_call->deopt_id(); |
| 2746 } | 2747 } |
| 2747 | 2748 |
| 2748 InstanceCallInstr* instance_call() const { return instance_call_; } | 2749 InstanceCallInstr* instance_call() const { return instance_call_; } |
| 2749 bool with_checks() const { return with_checks_; } | 2750 bool with_checks() const { return with_checks_; } |
| 2750 virtual intptr_t token_pos() const { return instance_call_->token_pos(); } | 2751 virtual intptr_t token_pos() const { return instance_call_->token_pos(); } |
| 2751 | 2752 |
| 2752 virtual intptr_t ArgumentCount() const { | 2753 virtual intptr_t ArgumentCount() const { |
| 2753 return instance_call()->ArgumentCount(); | 2754 return instance_call()->ArgumentCount(); |
| 2754 } | 2755 } |
| (...skipping 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8316 Isolate* isolate, bool opt) const { \ | 8317 Isolate* isolate, bool opt) const { \ |
| 8317 UNIMPLEMENTED(); \ | 8318 UNIMPLEMENTED(); \ |
| 8318 return NULL; \ | 8319 return NULL; \ |
| 8319 } \ | 8320 } \ |
| 8320 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8321 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8321 | 8322 |
| 8322 | 8323 |
| 8323 } // namespace dart | 8324 } // namespace dart |
| 8324 | 8325 |
| 8325 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8326 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |