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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 static internal::Object** CreateHandle(internal::Object* value); | 445 static internal::Object** CreateHandle(internal::Object* value); |
446 | 446 |
447 private: | 447 private: |
448 // Make it impossible to create heap-allocated or illegal handle | 448 // Make it impossible to create heap-allocated or illegal handle |
449 // scopes by disallowing certain operations. | 449 // scopes by disallowing certain operations. |
450 HandleScope(const HandleScope&); | 450 HandleScope(const HandleScope&); |
451 void operator=(const HandleScope&); | 451 void operator=(const HandleScope&); |
452 void* operator new(size_t size); | 452 void* operator new(size_t size); |
453 void operator delete(void*, size_t); | 453 void operator delete(void*, size_t); |
454 | 454 |
455 // This Data class is accessible internally through a typedef in the | 455 // This Data class is accessible internally as HandleScopeData through a |
456 // ImplementationUtilities class. | 456 // typedef in the ImplementationUtilities class. |
457 class V8EXPORT Data { | 457 class V8EXPORT Data { |
458 public: | 458 public: |
459 int extensions; | 459 int extensions; |
460 internal::Object** next; | 460 internal::Object** next; |
461 internal::Object** limit; | 461 internal::Object** limit; |
462 inline void Initialize() { | 462 inline void Initialize() { |
463 extensions = -1; | 463 extensions = -1; |
464 next = limit = NULL; | 464 next = limit = NULL; |
465 } | 465 } |
466 }; | 466 }; |
(...skipping 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 | 3194 |
3195 } // namespace v8 | 3195 } // namespace v8 |
3196 | 3196 |
3197 | 3197 |
3198 #undef V8EXPORT | 3198 #undef V8EXPORT |
3199 #undef V8EXPORT_INLINE | 3199 #undef V8EXPORT_INLINE |
3200 #undef TYPE_CHECK | 3200 #undef TYPE_CHECK |
3201 | 3201 |
3202 | 3202 |
3203 #endif // V8_H_ | 3203 #endif // V8_H_ |
OLD | NEW |