| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 class FunctionTemplate; | 124 class FunctionTemplate; |
| 125 class ObjectTemplate; | 125 class ObjectTemplate; |
| 126 class Data; | 126 class Data; |
| 127 class AccessorInfo; | 127 class AccessorInfo; |
| 128 class StackTrace; | 128 class StackTrace; |
| 129 class StackFrame; | 129 class StackFrame; |
| 130 class Isolate; | 130 class Isolate; |
| 131 class DeclaredAccessorDescriptor; | 131 class DeclaredAccessorDescriptor; |
| 132 class ObjectOperationDescriptor; | 132 class ObjectOperationDescriptor; |
| 133 class RawOperationDescriptor; | 133 class RawOperationDescriptor; |
| 134 class HeapProfiler; |
| 134 | 135 |
| 135 namespace internal { | 136 namespace internal { |
| 136 | 137 |
| 137 class Arguments; | 138 class Arguments; |
| 138 class Object; | 139 class Object; |
| 139 class Heap; | 140 class Heap; |
| 140 class HeapObject; | 141 class HeapObject; |
| 141 class Isolate; | 142 class Isolate; |
| 142 } | 143 } |
| 143 | 144 |
| (...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3016 * global garbage collections more often than it would otherwise in an attempt | 3017 * global garbage collections more often than it would otherwise in an attempt |
| 3017 * to garbage collect the JavaScript objects that keep the externally | 3018 * to garbage collect the JavaScript objects that keep the externally |
| 3018 * allocated memory alive. | 3019 * allocated memory alive. |
| 3019 * | 3020 * |
| 3020 * \param change_in_bytes the change in externally allocated memory that is | 3021 * \param change_in_bytes the change in externally allocated memory that is |
| 3021 * kept alive by JavaScript objects. | 3022 * kept alive by JavaScript objects. |
| 3022 * \returns the adjusted value. | 3023 * \returns the adjusted value. |
| 3023 */ | 3024 */ |
| 3024 intptr_t AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes); | 3025 intptr_t AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes); |
| 3025 | 3026 |
| 3027 /** |
| 3028 * Returns heap profiler for this isolate. Will return NULL until the isolate |
| 3029 * is initialized. |
| 3030 */ |
| 3031 HeapProfiler* GetHeapProfiler(); |
| 3032 |
| 3026 private: | 3033 private: |
| 3027 Isolate(); | 3034 Isolate(); |
| 3028 Isolate(const Isolate&); | 3035 Isolate(const Isolate&); |
| 3029 ~Isolate(); | 3036 ~Isolate(); |
| 3030 Isolate& operator=(const Isolate&); | 3037 Isolate& operator=(const Isolate&); |
| 3031 void* operator new(size_t size); | 3038 void* operator new(size_t size); |
| 3032 void operator delete(void*, size_t); | 3039 void operator delete(void*, size_t); |
| 3033 }; | 3040 }; |
| 3034 | 3041 |
| 3035 | 3042 |
| (...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5025 | 5032 |
| 5026 | 5033 |
| 5027 } // namespace v8 | 5034 } // namespace v8 |
| 5028 | 5035 |
| 5029 | 5036 |
| 5030 #undef V8EXPORT | 5037 #undef V8EXPORT |
| 5031 #undef TYPE_CHECK | 5038 #undef TYPE_CHECK |
| 5032 | 5039 |
| 5033 | 5040 |
| 5034 #endif // V8_H_ | 5041 #endif // V8_H_ |
| OLD | NEW |