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 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2905 ASSERT(ic_data.NumberOfChecks() > 0); | 2905 ASSERT(ic_data.NumberOfChecks() > 0); |
2906 } | 2906 } |
2907 | 2907 |
2908 InstanceCallInstr* instance_call() const { return instance_call_; } | 2908 InstanceCallInstr* instance_call() const { return instance_call_; } |
2909 bool with_checks() const { return with_checks_; } | 2909 bool with_checks() const { return with_checks_; } |
2910 bool complete() const { return complete_; } | 2910 bool complete() const { return complete_; } |
2911 virtual TokenPosition token_pos() const { | 2911 virtual TokenPosition token_pos() const { |
2912 return instance_call_->token_pos(); | 2912 return instance_call_->token_pos(); |
2913 } | 2913 } |
2914 | 2914 |
| 2915 virtual CompileType ComputeType() const; |
| 2916 |
2915 virtual intptr_t ArgumentCount() const { | 2917 virtual intptr_t ArgumentCount() const { |
2916 return instance_call()->ArgumentCount(); | 2918 return instance_call()->ArgumentCount(); |
2917 } | 2919 } |
2918 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const { | 2920 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const { |
2919 return instance_call()->PushArgumentAt(index); | 2921 return instance_call()->PushArgumentAt(index); |
2920 } | 2922 } |
2921 | 2923 |
2922 bool HasSingleRecognizedTarget() const; | 2924 bool HasSingleRecognizedTarget() const; |
2923 | 2925 |
2924 bool HasOnlyDispatcherTargets() const; | 2926 bool HasOnlyDispatcherTargets() const; |
(...skipping 5347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8272 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8274 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
8273 UNIMPLEMENTED(); \ | 8275 UNIMPLEMENTED(); \ |
8274 return NULL; \ | 8276 return NULL; \ |
8275 } \ | 8277 } \ |
8276 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8278 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
8277 | 8279 |
8278 | 8280 |
8279 } // namespace dart | 8281 } // namespace dart |
8280 | 8282 |
8281 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8283 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |