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

Side by Side Diff: vm/object.h

Issue 11017069: - Remove deprecated Dart API calls Dart_ClosureSmrck and DartClosureSetSmrck (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/dart_api_impl.cc ('k') | vm/raw_object.h » ('j') | 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 5451 matching lines...) Expand 10 before | Expand all | Expand 10 after
5462 virtual RawAbstractTypeArguments* GetTypeArguments() const { 5462 virtual RawAbstractTypeArguments* GetTypeArguments() const {
5463 return raw_ptr()->type_arguments_; 5463 return raw_ptr()->type_arguments_;
5464 } 5464 }
5465 virtual void SetTypeArguments(const AbstractTypeArguments& value) const { 5465 virtual void SetTypeArguments(const AbstractTypeArguments& value) const {
5466 StorePointer(&raw_ptr()->type_arguments_, value.raw()); 5466 StorePointer(&raw_ptr()->type_arguments_, value.raw());
5467 } 5467 }
5468 static intptr_t type_arguments_offset() { 5468 static intptr_t type_arguments_offset() {
5469 return OFFSET_OF(RawClosure, type_arguments_); 5469 return OFFSET_OF(RawClosure, type_arguments_);
5470 } 5470 }
5471 5471
5472 // TODO(iposva): Remove smrck support once mapping to arbitrary is available.
5473 RawInteger* smrck() const { return raw_ptr()->smrck_; }
5474 void set_smrck(const Integer& smrck) const {
5475 StorePointer(&raw_ptr()->smrck_, smrck.raw());
5476 }
5477 static intptr_t smrck_offset() { return OFFSET_OF(RawClosure, smrck_); }
5478
5479 static intptr_t InstanceSize() { 5472 static intptr_t InstanceSize() {
5480 return RoundedAllocationSize(sizeof(RawClosure)); 5473 return RoundedAllocationSize(sizeof(RawClosure));
5481 } 5474 }
5482 5475
5483 static RawClosure* New(const Function& function, 5476 static RawClosure* New(const Function& function,
5484 const Context& context, 5477 const Context& context,
5485 Heap::Space space = Heap::kNew); 5478 Heap::Space space = Heap::kNew);
5486 5479
5487 private: 5480 private:
5488 void set_function(const Function& value) const; 5481 void set_function(const Function& value) const;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
5735 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5728 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5736 return false; 5729 return false;
5737 } 5730 }
5738 } 5731 }
5739 return true; 5732 return true;
5740 } 5733 }
5741 5734
5742 } // namespace dart 5735 } // namespace dart
5743 5736
5744 #endif // VM_OBJECT_H_ 5737 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/dart_api_impl.cc ('k') | vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698