| 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 3429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3440 * This class exports constants and functionality from within v8 that | 3440 * This class exports constants and functionality from within v8 that |
| 3441 * is necessary to implement inline functions in the v8 api. Don't | 3441 * is necessary to implement inline functions in the v8 api. Don't |
| 3442 * depend on functions and constants defined here. | 3442 * depend on functions and constants defined here. |
| 3443 */ | 3443 */ |
| 3444 class Internals { | 3444 class Internals { |
| 3445 public: | 3445 public: |
| 3446 | 3446 |
| 3447 // These values match non-compiler-dependent values defined within | 3447 // These values match non-compiler-dependent values defined within |
| 3448 // the implementation of v8. | 3448 // the implementation of v8. |
| 3449 static const int kHeapObjectMapOffset = 0; | 3449 static const int kHeapObjectMapOffset = 0; |
| 3450 static const int kMapInstanceTypeOffset = 2 * kApiPointerSize + kApiIntSize; | 3450 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3451 static const int kStringResourceOffset = | 3451 static const int kStringResourceOffset = |
| 3452 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3452 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3453 | 3453 |
| 3454 static const int kProxyProxyOffset = kApiPointerSize; | 3454 static const int kProxyProxyOffset = kApiPointerSize; |
| 3455 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3455 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3456 static const int kFullStringRepresentationMask = 0x07; | 3456 static const int kFullStringRepresentationMask = 0x07; |
| 3457 static const int kExternalTwoByteRepresentationTag = 0x02; | 3457 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3458 | 3458 |
| 3459 static const int kJSObjectType = 0x9f; | 3459 static const int kJSObjectType = 0x9f; |
| 3460 static const int kFirstNonstringType = 0x80; | 3460 static const int kFirstNonstringType = 0x80; |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3854 | 3854 |
| 3855 | 3855 |
| 3856 } // namespace v8 | 3856 } // namespace v8 |
| 3857 | 3857 |
| 3858 | 3858 |
| 3859 #undef V8EXPORT | 3859 #undef V8EXPORT |
| 3860 #undef TYPE_CHECK | 3860 #undef TYPE_CHECK |
| 3861 | 3861 |
| 3862 | 3862 |
| 3863 #endif // V8_H_ | 3863 #endif // V8_H_ |
| OLD | NEW |