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

Side by Side Diff: include/v8.h

Issue 240113010: Tighten OpenHandle's extra checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 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 | src/accessors.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 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 2515
2516 /** 2516 /**
2517 * The information passed to a property callback about the context 2517 * The information passed to a property callback about the context
2518 * of the property access. 2518 * of the property access.
2519 */ 2519 */
2520 template<typename T> 2520 template<typename T>
2521 class PropertyCallbackInfo { 2521 class PropertyCallbackInfo {
2522 public: 2522 public:
2523 V8_INLINE Isolate* GetIsolate() const; 2523 V8_INLINE Isolate* GetIsolate() const;
2524 V8_INLINE Local<Value> Data() const; 2524 V8_INLINE Local<Value> Data() const;
2525 V8_INLINE Local<Object> This() const; 2525 V8_INLINE Local<Value> This() const;
2526 V8_INLINE Local<Object> Holder() const; 2526 V8_INLINE Local<Object> Holder() const;
2527 V8_INLINE ReturnValue<T> GetReturnValue() const; 2527 V8_INLINE ReturnValue<T> GetReturnValue() const;
2528 // This shouldn't be public, but the arm compiler needs it. 2528 // This shouldn't be public, but the arm compiler needs it.
2529 static const int kArgsLength = 6; 2529 static const int kArgsLength = 6;
2530 2530
2531 protected: 2531 protected:
2532 friend class MacroAssembler; 2532 friend class MacroAssembler;
2533 friend class internal::PropertyCallbackArguments; 2533 friend class internal::PropertyCallbackArguments;
2534 friend class internal::CustomArguments<PropertyCallbackInfo>; 2534 friend class internal::CustomArguments<PropertyCallbackInfo>;
2535 static const int kHolderIndex = 0; 2535 static const int kHolderIndex = 0;
(...skipping 3952 matching lines...) Expand 10 before | Expand all | Expand 10 after
6488 } 6488 }
6489 6489
6490 6490
6491 template<typename T> 6491 template<typename T>
6492 Local<Value> PropertyCallbackInfo<T>::Data() const { 6492 Local<Value> PropertyCallbackInfo<T>::Data() const {
6493 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex])); 6493 return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
6494 } 6494 }
6495 6495
6496 6496
6497 template<typename T> 6497 template<typename T>
6498 Local<Object> PropertyCallbackInfo<T>::This() const { 6498 Local<Value> PropertyCallbackInfo<T>::This() const {
6499 return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex])); 6499 return Local<Value>(reinterpret_cast<Value*>(&args_[kThisIndex]));
6500 } 6500 }
6501 6501
6502 6502
6503 template<typename T> 6503 template<typename T>
6504 Local<Object> PropertyCallbackInfo<T>::Holder() const { 6504 Local<Object> PropertyCallbackInfo<T>::Holder() const {
6505 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex])); 6505 return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
6506 } 6506 }
6507 6507
6508 6508
6509 template<typename T> 6509 template<typename T>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
6630 */ 6630 */
6631 6631
6632 6632
6633 } // namespace v8 6633 } // namespace v8
6634 6634
6635 6635
6636 #undef TYPE_CHECK 6636 #undef TYPE_CHECK
6637 6637
6638 6638
6639 #endif // V8_H_ 6639 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698