Changeset 261464 in webkit for trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
- Timestamp:
- May 10, 2020, 7:36:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.