OLD | NEW |
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 V8_INLINE(explicit Handle(T* val)) : val_(val) {} | 362 V8_INLINE(explicit Handle(T* val)) : val_(val) {} |
363 #endif | 363 #endif |
364 | 364 |
365 private: | 365 private: |
366 friend class Utils; | 366 friend class Utils; |
367 template<class F> friend class Persistent; | 367 template<class F> friend class Persistent; |
368 template<class F> friend class Local; | 368 template<class F> friend class Local; |
369 friend class Arguments; | 369 friend class Arguments; |
370 template<class F> friend class FunctionCallbackInfo; | 370 template<class F> friend class FunctionCallbackInfo; |
371 template<class F> friend class PropertyCallbackInfo; | 371 template<class F> friend class PropertyCallbackInfo; |
372 template<class F> friend class CustomArguments; | 372 template<class F> friend class internal::CustomArguments; |
373 friend class AccessorInfo; | 373 friend class AccessorInfo; |
374 friend Handle<Primitive> Undefined(Isolate* isolate); | 374 friend Handle<Primitive> Undefined(Isolate* isolate); |
375 friend Handle<Primitive> Null(Isolate* isolate); | 375 friend Handle<Primitive> Null(Isolate* isolate); |
376 friend Handle<Boolean> True(Isolate* isolate); | 376 friend Handle<Boolean> True(Isolate* isolate); |
377 friend Handle<Boolean> False(Isolate* isolate); | 377 friend Handle<Boolean> False(Isolate* isolate); |
378 friend class Context; | 378 friend class Context; |
379 friend class HandleScope; | 379 friend class HandleScope; |
380 | 380 |
381 #ifndef V8_USE_UNSAFE_HANDLES | 381 #ifndef V8_USE_UNSAFE_HANDLES |
382 V8_INLINE(static Handle<T> New(Isolate* isolate, T* that)); | 382 V8_INLINE(static Handle<T> New(Isolate* isolate, T* that)); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 friend class Utils; | 453 friend class Utils; |
454 template<class F> friend class Persistent; | 454 template<class F> friend class Persistent; |
455 template<class F> friend class Handle; | 455 template<class F> friend class Handle; |
456 friend class Arguments; | 456 friend class Arguments; |
457 template<class F> friend class FunctionCallbackInfo; | 457 template<class F> friend class FunctionCallbackInfo; |
458 template<class F> friend class PropertyCallbackInfo; | 458 template<class F> friend class PropertyCallbackInfo; |
459 friend class String; | 459 friend class String; |
460 friend class Object; | 460 friend class Object; |
461 friend class AccessorInfo; | 461 friend class AccessorInfo; |
462 friend class Context; | 462 friend class Context; |
463 template<class F> friend class CustomArguments; | 463 template<class F> friend class internal::CustomArguments; |
464 friend class HandleScope; | 464 friend class HandleScope; |
465 | 465 |
466 V8_INLINE(static Local<T> New(Isolate* isolate, T* that)); | 466 V8_INLINE(static Local<T> New(Isolate* isolate, T* that)); |
467 }; | 467 }; |
468 | 468 |
469 /** | 469 /** |
470 * An object reference that is independent of any handle scope. Where | 470 * An object reference that is independent of any handle scope. Where |
471 * a Local handle only lives as long as the HandleScope in which it was | 471 * a Local handle only lives as long as the HandleScope in which it was |
472 * allocated, a Persistent handle remains valid until it is explicitly | 472 * allocated, a Persistent handle remains valid until it is explicitly |
473 * disposed. | 473 * disposed. |
(...skipping 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6367 | 6367 |
6368 | 6368 |
6369 } // namespace v8 | 6369 } // namespace v8 |
6370 | 6370 |
6371 | 6371 |
6372 #undef V8EXPORT | 6372 #undef V8EXPORT |
6373 #undef TYPE_CHECK | 6373 #undef TYPE_CHECK |
6374 | 6374 |
6375 | 6375 |
6376 #endif // V8_H_ | 6376 #endif // V8_H_ |
OLD | NEW |