| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 2996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3007 | 3007 |
| 3008 template <size_t ptr_size> struct InternalConstants; | 3008 template <size_t ptr_size> struct InternalConstants; |
| 3009 | 3009 |
| 3010 // Internal constants for 32-bit systems. | 3010 // Internal constants for 32-bit systems. |
| 3011 template <> struct InternalConstants<4> { | 3011 template <> struct InternalConstants<4> { |
| 3012 static const int kStringResourceOffset = 3 * sizeof(void*); | 3012 static const int kStringResourceOffset = 3 * sizeof(void*); |
| 3013 }; | 3013 }; |
| 3014 | 3014 |
| 3015 // Internal constants for 64-bit systems. | 3015 // Internal constants for 64-bit systems. |
| 3016 template <> struct InternalConstants<8> { | 3016 template <> struct InternalConstants<8> { |
| 3017 static const int kStringResourceOffset = 2 * sizeof(void*); | 3017 static const int kStringResourceOffset = 3 * sizeof(void*); |
| 3018 }; | 3018 }; |
| 3019 | 3019 |
| 3020 /** | 3020 /** |
| 3021 * This class exports constants and functionality from within v8 that | 3021 * This class exports constants and functionality from within v8 that |
| 3022 * is necessary to implement inline functions in the v8 api. Don't | 3022 * is necessary to implement inline functions in the v8 api. Don't |
| 3023 * depend on functions and constants defined here. | 3023 * depend on functions and constants defined here. |
| 3024 */ | 3024 */ |
| 3025 class Internals { | 3025 class Internals { |
| 3026 public: | 3026 public: |
| 3027 | 3027 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3406 | 3406 |
| 3407 } // namespace v8 | 3407 } // namespace v8 |
| 3408 | 3408 |
| 3409 | 3409 |
| 3410 #undef V8EXPORT | 3410 #undef V8EXPORT |
| 3411 #undef V8EXPORT_INLINE | 3411 #undef V8EXPORT_INLINE |
| 3412 #undef TYPE_CHECK | 3412 #undef TYPE_CHECK |
| 3413 | 3413 |
| 3414 | 3414 |
| 3415 #endif // V8_H_ | 3415 #endif // V8_H_ |
| OLD | NEW |