| 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 */ | 816 */ |
| 817 class V8_EXPORT HandleScope { | 817 class V8_EXPORT HandleScope { |
| 818 public: | 818 public: |
| 819 HandleScope(Isolate* isolate); | 819 HandleScope(Isolate* isolate); |
| 820 | 820 |
| 821 ~HandleScope(); | 821 ~HandleScope(); |
| 822 | 822 |
| 823 /** | 823 /** |
| 824 * Counts the number of allocated handles. | 824 * Counts the number of allocated handles. |
| 825 */ | 825 */ |
| 826 static int NumberOfHandles(); | 826 static int NumberOfHandles(Isolate* isolate); |
| 827 | 827 |
| 828 private: | 828 private: |
| 829 /** | 829 /** |
| 830 * Creates a new handle with the given value. | 830 * Creates a new handle with the given value. |
| 831 */ | 831 */ |
| 832 static internal::Object** CreateHandle(internal::Isolate* isolate, | 832 static internal::Object** CreateHandle(internal::Isolate* isolate, |
| 833 internal::Object* value); | 833 internal::Object* value); |
| 834 // Uses HeapObject to obtain the current Isolate. | 834 // Uses HeapObject to obtain the current Isolate. |
| 835 static internal::Object** CreateHandle(internal::HeapObject* heap_object, | 835 static internal::Object** CreateHandle(internal::HeapObject* heap_object, |
| 836 internal::Object* value); | 836 internal::Object* value); |
| (...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6428 */ | 6428 */ |
| 6429 | 6429 |
| 6430 | 6430 |
| 6431 } // namespace v8 | 6431 } // namespace v8 |
| 6432 | 6432 |
| 6433 | 6433 |
| 6434 #undef TYPE_CHECK | 6434 #undef TYPE_CHECK |
| 6435 | 6435 |
| 6436 | 6436 |
| 6437 #endif // V8_H_ | 6437 #endif // V8_H_ |
| OLD | NEW |