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 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2807 friend class FunctionTemplate; | 2807 friend class FunctionTemplate; |
2808 }; | 2808 }; |
2809 | 2809 |
2810 | 2810 |
2811 template<typename T> | 2811 template<typename T> |
2812 class ReturnValue { | 2812 class ReturnValue { |
2813 public: | 2813 public: |
2814 template <class S> V8_INLINE(ReturnValue(const ReturnValue<S>& that)) | 2814 template <class S> V8_INLINE(ReturnValue(const ReturnValue<S>& that)) |
2815 : value_(that.value_) { | 2815 : value_(that.value_) { |
2816 TYPE_CHECK(T, S); | 2816 TYPE_CHECK(T, S); |
2817 }; | 2817 } |
2818 // Handle setters | 2818 // Handle setters |
2819 template <typename S> V8_INLINE(void Set(const Persistent<S>& handle)); | 2819 template <typename S> V8_INLINE(void Set(const Persistent<S>& handle)); |
2820 template <typename S> V8_INLINE(void Set(const Handle<S> handle)); | 2820 template <typename S> V8_INLINE(void Set(const Handle<S> handle)); |
2821 // Fast primitive setters | 2821 // Fast primitive setters |
2822 V8_INLINE(void Set(bool value)); | 2822 V8_INLINE(void Set(bool value)); |
2823 V8_INLINE(void Set(double i)); | 2823 V8_INLINE(void Set(double i)); |
2824 V8_INLINE(void Set(int32_t i)); | 2824 V8_INLINE(void Set(int32_t i)); |
2825 V8_INLINE(void Set(uint32_t i)); | 2825 V8_INLINE(void Set(uint32_t i)); |
2826 // Fast JS primitive setters | 2826 // Fast JS primitive setters |
2827 V8_INLINE(void SetNull()); | 2827 V8_INLINE(void SetNull()); |
(...skipping 3456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6284 | 6284 |
6285 | 6285 |
6286 } // namespace v8 | 6286 } // namespace v8 |
6287 | 6287 |
6288 | 6288 |
6289 #undef V8EXPORT | 6289 #undef V8EXPORT |
6290 #undef TYPE_CHECK | 6290 #undef TYPE_CHECK |
6291 | 6291 |
6292 | 6292 |
6293 #endif // V8_H_ | 6293 #endif // V8_H_ |
OLD | NEW |