| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #endif // _WIN32 | 77 #endif // _WIN32 |
| 78 | 78 |
| 79 #if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS | 79 #if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS |
| 80 #define V8_DEPRECATED(func) func __attribute__ ((deprecated)) | 80 #define V8_DEPRECATED(func) func __attribute__ ((deprecated)) |
| 81 #elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS | 81 #elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS |
| 82 #define V8_DEPRECATED(func) __declspec(deprecated) func | 82 #define V8_DEPRECATED(func) __declspec(deprecated) func |
| 83 #else | 83 #else |
| 84 #define V8_DEPRECATED(func) func | 84 #define V8_DEPRECATED(func) func |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 #if defined(__GNUC__) && !defined(V8_ENABLE_CHECKS) |
| 88 #define V8_ALWAYS_INLINE inline __attribute__((__always_inline__)) |
| 89 #elif defined(_MSC_VER) && !defined(V8_ENABLE_CHECKS) |
| 90 #define V8_ALWAYS_INLINE __forceinline |
| 91 #else |
| 92 #define V8_ALWAYS_INLINE inline |
| 93 #endif |
| 94 |
| 87 /** | 95 /** |
| 88 * The v8 JavaScript engine. | 96 * The v8 JavaScript engine. |
| 89 */ | 97 */ |
| 90 namespace v8 { | 98 namespace v8 { |
| 91 | 99 |
| 92 class Context; | 100 class Context; |
| 93 class String; | 101 class String; |
| 94 class StringObject; | 102 class StringObject; |
| 95 class Value; | 103 class Value; |
| 96 class Utils; | 104 class Utils; |
| (...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 * always 2-byte aligned, use SetAlignedPointerInInternalField instead, | 1637 * always 2-byte aligned, use SetAlignedPointerInInternalField instead, |
| 1630 * otherwise use a combination of External::New and SetInternalField. | 1638 * otherwise use a combination of External::New and SetInternalField. |
| 1631 */ | 1639 */ |
| 1632 inline V8_DEPRECATED(void SetPointerInInternalField(int index, void* value)); | 1640 inline V8_DEPRECATED(void SetPointerInInternalField(int index, void* value)); |
| 1633 | 1641 |
| 1634 /** | 1642 /** |
| 1635 * Gets a 2-byte-aligned native pointer from an internal field. This field | 1643 * Gets a 2-byte-aligned native pointer from an internal field. This field |
| 1636 * must have been set by SetAlignedPointerInInternalField, everything else | 1644 * must have been set by SetAlignedPointerInInternalField, everything else |
| 1637 * leads to undefined behavior. | 1645 * leads to undefined behavior. |
| 1638 */ | 1646 */ |
| 1639 inline void* GetAlignedPointerFromInternalField(int index); | 1647 V8_ALWAYS_INLINE void* GetAlignedPointerFromInternalField(int index); |
| 1640 | 1648 |
| 1641 /** | 1649 /** |
| 1642 * Sets a 2-byte-aligned native pointer in an internal field. To retrieve such | 1650 * Sets a 2-byte-aligned native pointer in an internal field. To retrieve such |
| 1643 * a field, GetAlignedPointerFromInternalField must be used, everything else | 1651 * a field, GetAlignedPointerFromInternalField must be used, everything else |
| 1644 * leads to undefined behavior. | 1652 * leads to undefined behavior. |
| 1645 */ | 1653 */ |
| 1646 V8EXPORT void SetAlignedPointerInInternalField(int index, void* value); | 1654 V8EXPORT void SetAlignedPointerInInternalField(int index, void* value); |
| 1647 | 1655 |
| 1648 // Testers for local properties. | 1656 // Testers for local properties. |
| 1649 V8EXPORT bool HasOwnProperty(Handle<String> key); | 1657 V8EXPORT bool HasOwnProperty(Handle<String> key); |
| (...skipping 3156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4806 | 4814 |
| 4807 | 4815 |
| 4808 } // namespace v8 | 4816 } // namespace v8 |
| 4809 | 4817 |
| 4810 | 4818 |
| 4811 #undef V8EXPORT | 4819 #undef V8EXPORT |
| 4812 #undef TYPE_CHECK | 4820 #undef TYPE_CHECK |
| 4813 | 4821 |
| 4814 | 4822 |
| 4815 #endif // V8_H_ | 4823 #endif // V8_H_ |
| OLD | NEW |