Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: runtime/vm/object.cc

Issue 652743007: - Do not attempt to set parameter types if they (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698