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

Side by Side Diff: vm/dart_api_impl.h

Issue 9939014: Temp hax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 NewLocalHandle(Isolate* isolate, const Object& object);
77 static Dart_Handle NewLocalHandle(Isolate* isolate, RawObject* object);
77 78
78 // Unwraps the raw object from the handle. 79 // Unwraps the raw object from the handle.
79 static RawObject* UnwrapHandle(Dart_Handle object); 80 static RawObject* UnwrapHandle(Dart_Handle object);
80 81
81 // Unwraps a raw Type from the handle. The handle will be null if 82 // Unwraps a raw Type from the handle. The handle will be null if
82 // the object was not of the requested Type. 83 // the object was not of the requested Type.
83 #define DECLARE_UNWRAP(Type) \ 84 #define DECLARE_UNWRAP(Type) \
84 static const Type& Unwrap##Type##Handle(Isolate* isolate, \ 85 static const Type& Unwrap##Type##Handle(Isolate* isolate, \
85 Dart_Handle object); 86 Dart_Handle object);
86 CLASS_LIST_NO_OBJECT(DECLARE_UNWRAP) 87 CLASS_LIST_NO_OBJECT(DECLARE_UNWRAP)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 154 }
154 private: 155 private:
155 Isolate* saved_isolate_; 156 Isolate* saved_isolate_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(IsolateSaver); 158 DISALLOW_COPY_AND_ASSIGN(IsolateSaver);
158 }; 159 };
159 160
160 } // namespace dart. 161 } // namespace dart.
161 162
162 #endif // VM_DART_API_IMPL_H_ 163 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698