Ignore:
Timestamp:
Aug 8, 2008, 8:56:46 PM (17 years ago)
Author:
[email protected]
Message:

2008-08-08 Cameron Zwarich <[email protected]>

Reviewed by Oliver.

Bug 20330: JSCore crash loading any filehurricane media page
<https://bugs.webkit.org/show_bug.cgi?id=20330>

Fix a typo in the constant loading patch. Also, add a case for
op_unexpected_load to CodeBlock::dump().

JavaScriptCore:

  • VM/CodeBlock.cpp: (KJS::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (KJS::CodeGenerator::addUnexpectedConstant):

LayoutTests:

  • fast/js/resources/unexpected-constant-crash.js: Added.
  • fast/js/unexpected-constant-crash-expected.txt: Added.
  • fast/js/unexpected-constant-crash.html: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r35593 r35651  
    541541unsigned CodeGenerator::addUnexpectedConstant(JSValue* v)
    542542{
    543     int index = m_codeBlock->regexps.size();
     543    int index = m_codeBlock->unexpectedConstants.size();
    544544    m_codeBlock->unexpectedConstants.append(v);
    545545    return index;
Note: See TracChangeset for help on using the changeset viewer.