Changeset 261464 in webkit for trunk/Source/JavaScriptCore/profiler
- Timestamp:
- May 10, 2020, 7:36:05 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore/profiler
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/ProfilerBytecodeSequence.cpp
r251425 r261464 81 81 VM& vm = globalObject->vm(); 82 82 auto scope = DECLARE_THROW_SCOPE(vm); 83 JSArray* header = constructEmptyArray(globalObject, 0);83 JSArray* header = constructEmptyArray(globalObject, nullptr); 84 84 RETURN_IF_EXCEPTION(scope, void()); 85 85 for (unsigned i = 0; i < m_header.size(); ++i) { … … 89 89 result->putDirect(vm, vm.propertyNames->header, header); 90 90 91 JSArray* sequence = constructEmptyArray(globalObject, 0);91 JSArray* sequence = constructEmptyArray(globalObject, nullptr); 92 92 RETURN_IF_EXCEPTION(scope, void()); 93 93 for (unsigned i = 0; i < m_sequence.size(); ++i) { -
trunk/Source/JavaScriptCore/profiler/ProfilerCompilation.cpp
r251425 r261464 122 122 result->putDirect(vm, vm.propertyNames->compilationKind, jsString(vm, String::fromUTF8(toCString(m_kind)))); 123 123 124 JSArray* profiledBytecodes = constructEmptyArray(globalObject, 0);124 JSArray* profiledBytecodes = constructEmptyArray(globalObject, nullptr); 125 125 RETURN_IF_EXCEPTION(scope, { }); 126 126 for (unsigned i = 0; i < m_profiledBytecodes.size(); ++i) { … … 132 132 result->putDirect(vm, vm.propertyNames->profiledBytecodes, profiledBytecodes); 133 133 134 JSArray* descriptions = constructEmptyArray(globalObject, 0);134 JSArray* descriptions = constructEmptyArray(globalObject, nullptr); 135 135 RETURN_IF_EXCEPTION(scope, { }); 136 136 for (unsigned i = 0; i < m_descriptions.size(); ++i) { … … 142 142 result->putDirect(vm, vm.propertyNames->descriptions, descriptions); 143 143 144 JSArray* counters = constructEmptyArray(globalObject, 0);144 JSArray* counters = constructEmptyArray(globalObject, nullptr); 145 145 RETURN_IF_EXCEPTION(scope, { }); 146 146 for (auto it = m_counters.begin(), end = m_counters.end(); it != end; ++it) { … … 156 156 result->putDirect(vm, vm.propertyNames->counters, counters); 157 157 158 JSArray* exitSites = constructEmptyArray(globalObject, 0);158 JSArray* exitSites = constructEmptyArray(globalObject, nullptr); 159 159 RETURN_IF_EXCEPTION(scope, { }); 160 160 for (unsigned i = 0; i < m_osrExitSites.size(); ++i) { … … 166 166 result->putDirect(vm, vm.propertyNames->osrExitSites, exitSites); 167 167 168 JSArray* exits = constructEmptyArray(globalObject, 0);168 JSArray* exits = constructEmptyArray(globalObject, nullptr); 169 169 RETURN_IF_EXCEPTION(scope, { }); 170 170 for (unsigned i = 0; i < m_osrExits.size(); ++i) { -
trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
r251425 r261464 46 46 , m_vm(vm) 47 47 , m_shouldSaveAtExit(false) 48 , m_nextRegisteredDatabase( 0)48 , m_nextRegisteredDatabase(nullptr) 49 49 { 50 50 } … … 103 103 JSObject* result = constructEmptyObject(globalObject); 104 104 105 JSArray* bytecodes = constructEmptyArray(globalObject, 0);105 JSArray* bytecodes = constructEmptyArray(globalObject, nullptr); 106 106 RETURN_IF_EXCEPTION(scope, { }); 107 107 for (unsigned i = 0; i < m_bytecodes.size(); ++i) { … … 113 113 result->putDirect(vm, vm.propertyNames->bytecodes, bytecodes); 114 114 115 JSArray* compilations = constructEmptyArray(globalObject, 0);115 JSArray* compilations = constructEmptyArray(globalObject, nullptr); 116 116 RETURN_IF_EXCEPTION(scope, { }); 117 117 for (unsigned i = 0; i < m_compilations.size(); ++i) { … … 123 123 result->putDirect(vm, vm.propertyNames->compilations, compilations); 124 124 125 JSArray* events = constructEmptyArray(globalObject, 0);125 JSArray* events = constructEmptyArray(globalObject, nullptr); 126 126 RETURN_IF_EXCEPTION(scope, { }); 127 127 for (unsigned i = 0; i < m_events.size(); ++i) { … … 200 200 continue; 201 201 *current = m_nextRegisteredDatabase; 202 m_nextRegisteredDatabase = 0;202 m_nextRegisteredDatabase = nullptr; 203 203 m_shouldSaveAtExit = false; 204 204 break; … … 218 218 if (result) { 219 219 firstDatabase = result->m_nextRegisteredDatabase; 220 result->m_nextRegisteredDatabase = 0;220 result->m_nextRegisteredDatabase = nullptr; 221 221 result->m_shouldSaveAtExit = false; 222 222 } -
trunk/Source/JavaScriptCore/profiler/ProfilerOSRExitSite.cpp
r251425 r261464 39 39 VM& vm = globalObject->vm(); 40 40 auto scope = DECLARE_THROW_SCOPE(vm); 41 JSArray* result = constructEmptyArray(globalObject, 0);41 JSArray* result = constructEmptyArray(globalObject, nullptr); 42 42 RETURN_IF_EXCEPTION(scope, { }); 43 43 for (unsigned i = 0; i < m_codeAddresses.size(); ++i) { -
trunk/Source/JavaScriptCore/profiler/ProfilerOriginStack.cpp
r251425 r261464 103 103 VM& vm = globalObject->vm(); 104 104 auto scope = DECLARE_THROW_SCOPE(vm); 105 JSArray* result = constructEmptyArray(globalObject, 0);105 JSArray* result = constructEmptyArray(globalObject, nullptr); 106 106 RETURN_IF_EXCEPTION(scope, { }); 107 107
Note:
See TracChangeset
for help on using the changeset viewer.