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

Side by Side Diff: src/api.h

Issue 11366132: Rollback of r12868, r12849 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 1 month 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 | « include/v8.h ('k') | src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 static inline Local<Function> ToLocal( 194 static inline Local<Function> ToLocal(
195 v8::internal::Handle<v8::internal::JSFunction> obj); 195 v8::internal::Handle<v8::internal::JSFunction> obj);
196 static inline Local<String> ToLocal( 196 static inline Local<String> ToLocal(
197 v8::internal::Handle<v8::internal::String> obj); 197 v8::internal::Handle<v8::internal::String> obj);
198 static inline Local<RegExp> ToLocal( 198 static inline Local<RegExp> ToLocal(
199 v8::internal::Handle<v8::internal::JSRegExp> obj); 199 v8::internal::Handle<v8::internal::JSRegExp> obj);
200 static inline Local<Object> ToLocal( 200 static inline Local<Object> ToLocal(
201 v8::internal::Handle<v8::internal::JSObject> obj); 201 v8::internal::Handle<v8::internal::JSObject> obj);
202 static inline Local<Array> ToLocal( 202 static inline Local<Array> ToLocal(
203 v8::internal::Handle<v8::internal::JSArray> obj); 203 v8::internal::Handle<v8::internal::JSArray> obj);
204 static inline Local<External> ToLocal(
205 v8::internal::Handle<v8::internal::Foreign> obj);
204 static inline Local<Message> MessageToLocal( 206 static inline Local<Message> MessageToLocal(
205 v8::internal::Handle<v8::internal::Object> obj); 207 v8::internal::Handle<v8::internal::Object> obj);
206 static inline Local<StackTrace> StackTraceToLocal( 208 static inline Local<StackTrace> StackTraceToLocal(
207 v8::internal::Handle<v8::internal::JSArray> obj); 209 v8::internal::Handle<v8::internal::JSArray> obj);
208 static inline Local<StackFrame> StackFrameToLocal( 210 static inline Local<StackFrame> StackFrameToLocal(
209 v8::internal::Handle<v8::internal::JSObject> obj); 211 v8::internal::Handle<v8::internal::JSObject> obj);
210 static inline Local<Number> NumberToLocal( 212 static inline Local<Number> NumberToLocal(
211 v8::internal::Handle<v8::internal::Object> obj); 213 v8::internal::Handle<v8::internal::Object> obj);
212 static inline Local<Integer> IntegerToLocal( 214 static inline Local<Integer> IntegerToLocal(
213 v8::internal::Handle<v8::internal::Object> obj); 215 v8::internal::Handle<v8::internal::Object> obj);
214 static inline Local<Uint32> Uint32ToLocal( 216 static inline Local<Uint32> Uint32ToLocal(
215 v8::internal::Handle<v8::internal::Object> obj); 217 v8::internal::Handle<v8::internal::Object> obj);
216 static inline Local<FunctionTemplate> ToLocal( 218 static inline Local<FunctionTemplate> ToLocal(
217 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); 219 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
218 static inline Local<ObjectTemplate> ToLocal( 220 static inline Local<ObjectTemplate> ToLocal(
219 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); 221 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj);
220 static inline Local<Signature> ToLocal( 222 static inline Local<Signature> ToLocal(
221 v8::internal::Handle<v8::internal::SignatureInfo> obj); 223 v8::internal::Handle<v8::internal::SignatureInfo> obj);
222 static inline Local<AccessorSignature> AccessorSignatureToLocal( 224 static inline Local<AccessorSignature> AccessorSignatureToLocal(
223 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); 225 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
224 static inline Local<TypeSwitch> ToLocal( 226 static inline Local<TypeSwitch> ToLocal(
225 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); 227 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj);
226 static inline Local<External> ExternalToLocal(
227 v8::internal::Handle<v8::internal::JSObject> obj);
228 228
229 #define DECLARE_OPEN_HANDLE(From, To) \ 229 #define DECLARE_OPEN_HANDLE(From, To) \
230 static inline v8::internal::Handle<v8::internal::To> \ 230 static inline v8::internal::Handle<v8::internal::To> \
231 OpenHandle(const From* that, bool allow_empty_handle = false); 231 OpenHandle(const From* that, bool allow_empty_handle = false);
232 232
233 OPEN_HANDLE_LIST(DECLARE_OPEN_HANDLE) 233 OPEN_HANDLE_LIST(DECLARE_OPEN_HANDLE)
234 234
235 #undef DECLARE_OPEN_HANDLE 235 #undef DECLARE_OPEN_HANDLE
236 }; 236 };
237 237
(...skipping 23 matching lines...) Expand all
261 return Local<To>(reinterpret_cast<To*>(obj.location())); \ 261 return Local<To>(reinterpret_cast<To*>(obj.location())); \
262 } 262 }
263 263
264 MAKE_TO_LOCAL(ToLocal, Context, Context) 264 MAKE_TO_LOCAL(ToLocal, Context, Context)
265 MAKE_TO_LOCAL(ToLocal, Object, Value) 265 MAKE_TO_LOCAL(ToLocal, Object, Value)
266 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 266 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
267 MAKE_TO_LOCAL(ToLocal, String, String) 267 MAKE_TO_LOCAL(ToLocal, String, String)
268 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 268 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
269 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 269 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
270 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 270 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
271 MAKE_TO_LOCAL(ToLocal, Foreign, External)
271 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) 272 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate)
272 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) 273 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate)
273 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) 274 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature)
274 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) 275 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature)
275 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) 276 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch)
276 MAKE_TO_LOCAL(MessageToLocal, Object, Message) 277 MAKE_TO_LOCAL(MessageToLocal, Object, Message)
277 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) 278 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace)
278 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) 279 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame)
279 MAKE_TO_LOCAL(NumberToLocal, Object, Number) 280 MAKE_TO_LOCAL(NumberToLocal, Object, Number)
280 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) 281 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer)
281 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) 282 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32)
282 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External)
283 283
284 #undef MAKE_TO_LOCAL 284 #undef MAKE_TO_LOCAL
285 285
286 286
287 // Implementations of OpenHandle 287 // Implementations of OpenHandle
288 288
289 #define MAKE_OPEN_HANDLE(From, To) \ 289 #define MAKE_OPEN_HANDLE(From, To) \
290 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \ 290 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \
291 const v8::From* that, bool allow_empty_handle) { \ 291 const v8::From* that, bool allow_empty_handle) { \
292 EXTRA_CHECK(allow_empty_handle || that != NULL); \ 292 EXTRA_CHECK(allow_empty_handle || that != NULL); \
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 stress_type_ = stress_type; 585 stress_type_ = stress_type;
586 } 586 }
587 587
588 private: 588 private:
589 static v8::Testing::StressType stress_type_; 589 static v8::Testing::StressType stress_type_;
590 }; 590 };
591 591
592 } } // namespace v8::internal 592 } } // namespace v8::internal
593 593
594 #endif // V8_API_H_ 594 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698