Ignore:
Timestamp:
Nov 22, 2016, 12:52:05 PM (9 years ago)
Author:
[email protected]
Message:

Fix exception scope verification failures in JSC profiler files.
https://bugs.webkit.org/show_bug.cgi?id=164971

Reviewed by Saam Barati.

  • profiler/ProfilerBytecodeSequence.cpp:

(JSC::Profiler::BytecodeSequence::addSequenceProperties):

  • profiler/ProfilerCompilation.cpp:

(JSC::Profiler::Compilation::toJS):

  • profiler/ProfilerDatabase.cpp:

(JSC::Profiler::Database::toJS):
(JSC::Profiler::Database::toJSON):

  • profiler/ProfilerOSRExitSite.cpp:

(JSC::Profiler::OSRExitSite::toJS):

  • profiler/ProfilerOriginStack.cpp:

(JSC::Profiler::OriginStack::toJS):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/profiler/ProfilerBytecodeSequence.cpp

    r208761 r208968  
    8383    JSArray* header = constructEmptyArray(exec, 0);
    8484    RETURN_IF_EXCEPTION(scope, void());
    85     for (unsigned i = 0; i < m_header.size(); ++i)
     85    for (unsigned i = 0; i < m_header.size(); ++i) {
    8686        header->putDirectIndex(exec, i, jsString(exec, String::fromUTF8(m_header[i])));
     87        RETURN_IF_EXCEPTION(scope, void());
     88    }
    8789    result->putDirect(vm, exec->propertyNames().header, header);
    8890   
    8991    JSArray* sequence = constructEmptyArray(exec, 0);
    9092    RETURN_IF_EXCEPTION(scope, void());
    91     for (unsigned i = 0; i < m_sequence.size(); ++i)
     93    for (unsigned i = 0; i < m_sequence.size(); ++i) {
    9294        sequence->putDirectIndex(exec, i, m_sequence[i].toJS(exec));
     95        RETURN_IF_EXCEPTION(scope, void());
     96    }
    9397    result->putDirect(vm, exec->propertyNames().bytecode, sequence);
    9498}
Note: See TracChangeset for help on using the changeset viewer.