| 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. | 5462 // Method extractor parameters are shared and are in the VM heap. |
| 5463 ASSERT(kind() != RawFunction::kMethodExtractor); | 5463 ASSERT(kind() != RawFunction::kMethodExtractor); |
| 5464 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); | 5464 const Array& parameter_types = Array::Handle(raw_ptr()->parameter_types_); |
| 5465 parameter_types.SetAt(index, value); | 5465 parameter_types.SetAt(index, value); |
| 5466 } | 5466 } |
| 5467 | 5467 |
| 5468 | 5468 |
| 5469 void Function::set_parameter_types(const Array& value) const { | 5469 void Function::set_parameter_types(const Array& value) const { |
| 5470 StorePointer(&raw_ptr()->parameter_types_, value.raw()); | 5470 StorePointer(&raw_ptr()->parameter_types_, value.raw()); |
| 5471 } | 5471 } |
| 5472 | 5472 |
| (...skipping 14830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20303 return tag_label.ToCString(); | 20303 return tag_label.ToCString(); |
| 20304 } | 20304 } |
| 20305 | 20305 |
| 20306 | 20306 |
| 20307 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20307 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20308 Instance::PrintJSONImpl(stream, ref); | 20308 Instance::PrintJSONImpl(stream, ref); |
| 20309 } | 20309 } |
| 20310 | 20310 |
| 20311 | 20311 |
| 20312 } // namespace dart | 20312 } // namespace dart |
| OLD | NEW |