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

Side by Side Diff: runtime/vm/dart_api_impl.h

Issue 10014002: Rename Api::NewLocalHandle -> Api::NewHandle. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « no previous file | runtime/vm/dart_api_impl.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_DART_API_IMPL_H_ 5 #ifndef VM_DART_API_IMPL_H_
6 #define VM_DART_API_IMPL_H_ 6 #define VM_DART_API_IMPL_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 const char* CheckIsolateState(Isolate *isolate, 67 const char* CheckIsolateState(Isolate *isolate,
68 bool generating_snapshot = false); 68 bool generating_snapshot = false);
69 69
70 void SetupErrorResult(Dart_Handle* handle); 70 void SetupErrorResult(Dart_Handle* handle);
71 71
72 72
73 class Api : AllStatic { 73 class Api : AllStatic {
74 public: 74 public:
75 // Creates a new local handle. 75 // Creates a new local handle.
76 static Dart_Handle NewLocalHandle(Isolate* isolate, const Object& object); 76 static Dart_Handle NewHandle(Isolate* isolate, RawObject* raw);
77 77
78 // Unwraps the raw object from the handle. 78 // Unwraps the raw object from the handle.
79 static RawObject* UnwrapHandle(Dart_Handle object); 79 static RawObject* UnwrapHandle(Dart_Handle object);
80 80
81 // Unwraps a raw Type from the handle. The handle will be null if 81 // Unwraps a raw Type from the handle. The handle will be null if
82 // the object was not of the requested Type. 82 // the object was not of the requested Type.
83 #define DECLARE_UNWRAP(Type) \ 83 #define DECLARE_UNWRAP(Type) \
84 static const Type& Unwrap##Type##Handle(Isolate* isolate, \ 84 static const Type& Unwrap##Type##Handle(Isolate* isolate, \
85 Dart_Handle object); 85 Dart_Handle object);
86 CLASS_LIST_NO_OBJECT(DECLARE_UNWRAP) 86 CLASS_LIST_NO_OBJECT(DECLARE_UNWRAP)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 private: 154 private:
155 Isolate* saved_isolate_; 155 Isolate* saved_isolate_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(IsolateSaver); 157 DISALLOW_COPY_AND_ASSIGN(IsolateSaver);
158 }; 158 };
159 159
160 } // namespace dart. 160 } // namespace dart.
161 161
162 #endif // VM_DART_API_IMPL_H_ 162 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698