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 5379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 static const int kNodeIsPartiallyDependentShift = 5; | 5390 static const int kNodeIsPartiallyDependentShift = 5; |
5391 | 5391 |
5392 static const int kJSObjectType = 0xb0; | 5392 static const int kJSObjectType = 0xb0; |
5393 static const int kFirstNonstringType = 0x80; | 5393 static const int kFirstNonstringType = 0x80; |
5394 static const int kOddballType = 0x83; | 5394 static const int kOddballType = 0x83; |
5395 static const int kForeignType = 0x88; | 5395 static const int kForeignType = 0x88; |
5396 | 5396 |
5397 static const int kUndefinedOddballKind = 5; | 5397 static const int kUndefinedOddballKind = 5; |
5398 static const int kNullOddballKind = 3; | 5398 static const int kNullOddballKind = 3; |
5399 | 5399 |
| 5400 static void CheckInitializedImpl(v8::Isolate* isolate); |
| 5401 V8_INLINE(static void CheckInitialized(v8::Isolate* isolate)) { |
5400 #ifdef V8_ENABLE_CHECKS | 5402 #ifdef V8_ENABLE_CHECKS |
5401 static void CheckInitialized(v8::Isolate* isolate); | 5403 CheckInitializedImpl(isolate); |
5402 #else | |
5403 static void CheckInitialized(v8::Isolate* isolate) { } | |
5404 #endif | 5404 #endif |
| 5405 } |
5405 | 5406 |
5406 V8_INLINE(static bool HasHeapObjectTag(internal::Object* value)) { | 5407 V8_INLINE(static bool HasHeapObjectTag(internal::Object* value)) { |
5407 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 5408 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
5408 kHeapObjectTag); | 5409 kHeapObjectTag); |
5409 } | 5410 } |
5410 | 5411 |
5411 V8_INLINE(static int SmiValue(internal::Object* value)) { | 5412 V8_INLINE(static int SmiValue(internal::Object* value)) { |
5412 return PlatformSmiTagging::SmiToInt(value); | 5413 return PlatformSmiTagging::SmiToInt(value); |
5413 } | 5414 } |
5414 | 5415 |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6460 | 6461 |
6461 | 6462 |
6462 } // namespace v8 | 6463 } // namespace v8 |
6463 | 6464 |
6464 | 6465 |
6465 #undef V8EXPORT | 6466 #undef V8EXPORT |
6466 #undef TYPE_CHECK | 6467 #undef TYPE_CHECK |
6467 | 6468 |
6468 | 6469 |
6469 #endif // V8_H_ | 6470 #endif // V8_H_ |
OLD | NEW |