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

Side by Side Diff: src/api.h

Issue 1410073005: Replace FunctionToLocal with CallableToLocal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_API_H_ 5 #ifndef V8_API_H_
6 #define V8_API_H_ 6 #define V8_API_H_
7 7
8 #include "include/v8-testing.h" 8 #include "include/v8-testing.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 static inline Local<Signature> SignatureToLocal( 260 static inline Local<Signature> SignatureToLocal(
261 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); 261 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
262 static inline Local<AccessorSignature> AccessorSignatureToLocal( 262 static inline Local<AccessorSignature> AccessorSignatureToLocal(
263 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); 263 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
264 static inline Local<TypeSwitch> ToLocal( 264 static inline Local<TypeSwitch> ToLocal(
265 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); 265 v8::internal::Handle<v8::internal::TypeSwitchInfo> obj);
266 static inline Local<External> ExternalToLocal( 266 static inline Local<External> ExternalToLocal(
267 v8::internal::Handle<v8::internal::JSObject> obj); 267 v8::internal::Handle<v8::internal::JSObject> obj);
268 static inline Local<NativeWeakMap> NativeWeakMapToLocal( 268 static inline Local<NativeWeakMap> NativeWeakMapToLocal(
269 v8::internal::Handle<v8::internal::JSWeakMap> obj); 269 v8::internal::Handle<v8::internal::JSWeakMap> obj);
270 static inline Local<Function> FunctionToLocal( 270 static inline Local<Function> CallableToLocal(
271 v8::internal::Handle<v8::internal::JSReceiver> obj); 271 v8::internal::Handle<v8::internal::JSReceiver> obj);
272 272
273 #define DECLARE_OPEN_HANDLE(From, To) \ 273 #define DECLARE_OPEN_HANDLE(From, To) \
274 static inline v8::internal::Handle<v8::internal::To> \ 274 static inline v8::internal::Handle<v8::internal::To> \
275 OpenHandle(const From* that, bool allow_empty_handle = false); 275 OpenHandle(const From* that, bool allow_empty_handle = false);
276 276
277 OPEN_HANDLE_LIST(DECLARE_OPEN_HANDLE) 277 OPEN_HANDLE_LIST(DECLARE_OPEN_HANDLE)
278 278
279 #undef DECLARE_OPEN_HANDLE 279 #undef DECLARE_OPEN_HANDLE
280 280
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) 372 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch)
373 MAKE_TO_LOCAL(MessageToLocal, Object, Message) 373 MAKE_TO_LOCAL(MessageToLocal, Object, Message)
374 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise) 374 MAKE_TO_LOCAL(PromiseToLocal, JSObject, Promise)
375 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) 375 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace)
376 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) 376 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame)
377 MAKE_TO_LOCAL(NumberToLocal, Object, Number) 377 MAKE_TO_LOCAL(NumberToLocal, Object, Number)
378 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) 378 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer)
379 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) 379 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32)
380 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External) 380 MAKE_TO_LOCAL(ExternalToLocal, JSObject, External)
381 MAKE_TO_LOCAL(NativeWeakMapToLocal, JSWeakMap, NativeWeakMap) 381 MAKE_TO_LOCAL(NativeWeakMapToLocal, JSWeakMap, NativeWeakMap)
382 MAKE_TO_LOCAL(FunctionToLocal, JSReceiver, Function) 382 MAKE_TO_LOCAL(CallableToLocal, JSReceiver, Function)
383 383
384 #undef MAKE_TO_LOCAL_TYPED_ARRAY 384 #undef MAKE_TO_LOCAL_TYPED_ARRAY
385 #undef MAKE_TO_LOCAL 385 #undef MAKE_TO_LOCAL
386 386
387 387
388 // Implementations of OpenHandle 388 // Implementations of OpenHandle
389 389
390 #define MAKE_OPEN_HANDLE(From, To) \ 390 #define MAKE_OPEN_HANDLE(From, To) \
391 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \ 391 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \
392 const v8::From* that, bool allow_empty_handle) { \ 392 const v8::From* that, bool allow_empty_handle) { \
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 640
641 private: 641 private:
642 static v8::Testing::StressType stress_type_; 642 static v8::Testing::StressType stress_type_;
643 }; 643 };
644 644
645 } // namespace internal 645 } // namespace internal
646 } // namespace v8 646 } // namespace v8
647 647
648 #endif // V8_API_H_ 648 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698