| 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 RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define RUNTIME_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 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 identity_(AliasIdentity::Unknown()) { | 3214 identity_(AliasIdentity::Unknown()) { |
| 3215 ASSERT(function.IsZoneHandle()); | 3215 ASSERT(function.IsZoneHandle()); |
| 3216 ASSERT(!function.IsNull()); | 3216 ASSERT(!function.IsNull()); |
| 3217 ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap()); | 3217 ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap()); |
| 3218 } | 3218 } |
| 3219 | 3219 |
| 3220 // ICData for static calls carries call count. | 3220 // ICData for static calls carries call count. |
| 3221 const ICData* ic_data() const { return ic_data_; } | 3221 const ICData* ic_data() const { return ic_data_; } |
| 3222 bool HasICData() const { return (ic_data() != NULL) && !ic_data()->IsNull(); } | 3222 bool HasICData() const { return (ic_data() != NULL) && !ic_data()->IsNull(); } |
| 3223 | 3223 |
| 3224 void set_ic_data(const ICData* value) { ic_data_ = value; } |
| 3225 |
| 3224 DECLARE_INSTRUCTION(StaticCall) | 3226 DECLARE_INSTRUCTION(StaticCall) |
| 3225 virtual CompileType ComputeType() const; | 3227 virtual CompileType ComputeType() const; |
| 3226 virtual Definition* Canonicalize(FlowGraph* flow_graph); | 3228 virtual Definition* Canonicalize(FlowGraph* flow_graph); |
| 3227 | 3229 |
| 3228 // Accessors forwarded to the AST node. | 3230 // Accessors forwarded to the AST node. |
| 3229 const Function& function() const { return function_; } | 3231 const Function& function() const { return function_; } |
| 3230 const Array& argument_names() const { return argument_names_; } | 3232 const Array& argument_names() const { return argument_names_; } |
| 3231 virtual TokenPosition token_pos() const { return token_pos_; } | 3233 virtual TokenPosition token_pos() const { return token_pos_; } |
| 3232 | 3234 |
| 3233 virtual intptr_t ArgumentCount() const { return arguments_->length(); } | 3235 virtual intptr_t ArgumentCount() const { return arguments_->length(); } |
| (...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8086 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8088 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8087 UNIMPLEMENTED(); \ | 8089 UNIMPLEMENTED(); \ |
| 8088 return NULL; \ | 8090 return NULL; \ |
| 8089 } \ | 8091 } \ |
| 8090 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8092 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8091 | 8093 |
| 8092 | 8094 |
| 8093 } // namespace dart | 8095 } // namespace dart |
| 8094 | 8096 |
| 8095 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 8097 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |