| 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 3249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3260 arguments_(arguments), | 3260 arguments_(arguments), |
| 3261 result_cid_(kDynamicCid), | 3261 result_cid_(kDynamicCid), |
| 3262 is_known_list_constructor_(false), | 3262 is_known_list_constructor_(false), |
| 3263 is_native_list_factory_(false), | 3263 is_native_list_factory_(false), |
| 3264 identity_(AliasIdentity::Unknown()) { | 3264 identity_(AliasIdentity::Unknown()) { |
| 3265 ic_data_ = GetICData(ic_data_array); | 3265 ic_data_ = GetICData(ic_data_array); |
| 3266 ASSERT(function.IsZoneHandle()); | 3266 ASSERT(function.IsZoneHandle()); |
| 3267 ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap()); | 3267 ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap()); |
| 3268 } | 3268 } |
| 3269 | 3269 |
| 3270 StaticCallInstr(TokenPosition token_pos, |
| 3271 const Function& function, |
| 3272 const Array& argument_names, |
| 3273 ZoneGrowableArray<PushArgumentInstr*>* arguments, |
| 3274 intptr_t deopt_id) |
| 3275 : TemplateDefinition(deopt_id), |
| 3276 ic_data_(NULL), |
| 3277 token_pos_(token_pos), |
| 3278 function_(function), |
| 3279 argument_names_(argument_names), |
| 3280 arguments_(arguments), |
| 3281 result_cid_(kDynamicCid), |
| 3282 is_known_list_constructor_(false), |
| 3283 is_native_list_factory_(false), |
| 3284 identity_(AliasIdentity::Unknown()) { |
| 3285 ASSERT(function.IsZoneHandle()); |
| 3286 ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap()); |
| 3287 } |
| 3288 |
| 3270 // ICData for static calls carries call count. | 3289 // ICData for static calls carries call count. |
| 3271 const ICData* ic_data() const { return ic_data_; } | 3290 const ICData* ic_data() const { return ic_data_; } |
| 3272 bool HasICData() const { | 3291 bool HasICData() const { |
| 3273 return (ic_data() != NULL) && !ic_data()->IsNull(); | 3292 return (ic_data() != NULL) && !ic_data()->IsNull(); |
| 3274 } | 3293 } |
| 3275 | 3294 |
| 3276 DECLARE_INSTRUCTION(StaticCall) | 3295 DECLARE_INSTRUCTION(StaticCall) |
| 3277 virtual CompileType ComputeType() const; | 3296 virtual CompileType ComputeType() const; |
| 3278 | 3297 |
| 3279 // Accessors forwarded to the AST node. | 3298 // Accessors forwarded to the AST node. |
| (...skipping 4994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8274 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8293 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8275 UNIMPLEMENTED(); \ | 8294 UNIMPLEMENTED(); \ |
| 8276 return NULL; \ | 8295 return NULL; \ |
| 8277 } \ | 8296 } \ |
| 8278 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8297 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8279 | 8298 |
| 8280 | 8299 |
| 8281 } // namespace dart | 8300 } // namespace dart |
| 8282 | 8301 |
| 8283 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8302 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |