| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 5441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5452 | 5452 |
| 5453 RawAbstractType* Function::ParameterTypeAt(intptr_t index) const { | 5453 RawAbstractType* Function::ParameterTypeAt(intptr_t index) const { |
| 5454 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); | 5454 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); |
| 5455 return AbstractType::RawCast(parameter_types.At(index)); | 5455 return AbstractType::RawCast(parameter_types.At(index)); |
| 5456 } | 5456 } |
| 5457 | 5457 |
| 5458 | 5458 |
| 5459 void Function::SetParameterTypeAt( | 5459 void Function::SetParameterTypeAt( |
| 5460 intptr_t index, const AbstractType& value) const { | 5460 intptr_t index, const AbstractType& value) const { |
| 5461 ASSERT(!value.IsNull()); | 5461 ASSERT(!value.IsNull()); |
| 5462 // Method extractor parameters are in the VM heap. |
| 5463 ASSERT(kind() != RawFunction::kMethodExtractor); |
| 5462 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); | 5464 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); |
| 5463 parameter_types.SetAt(index, value); | 5465 parameter_types.SetAt(index, value); |
| 5464 } | 5466 } |
| 5465 | 5467 |
| 5466 | 5468 |
| 5467 void Function::set_parameter_types(const Array& value) const { | 5469 void Function::set_parameter_types(const Array& value) const { |
| 5468 StorePointer(&raw_ptr()->parameter_types_, value.raw()); | 5470 StorePointer(&raw_ptr()->parameter_types_, value.raw()); |
| 5469 } | 5471 } |
| 5470 | 5472 |
| 5471 | 5473 |
| (...skipping 14844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20316 return tag_label.ToCString(); | 20318 return tag_label.ToCString(); |
| 20317 } | 20319 } |
| 20318 | 20320 |
| 20319 | 20321 |
| 20320 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20322 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20321 Instance::PrintJSONImpl(stream, ref); | 20323 Instance::PrintJSONImpl(stream, ref); |
| 20322 } | 20324 } |
| 20323 | 20325 |
| 20324 | 20326 |
| 20325 } // namespace dart | 20327 } // namespace dart |
| OLD | NEW |