Changeset 245203 in webkit


Ignore:
Timestamp:
May 10, 2019 6:40:00 PM (5 years ago)
Author:
sbarati@apple.com
Message:

Call to JSToWasmICCallee::createStructure passes in wrong prototype value
https://bugs.webkit.org/show_bug.cgi?id=197807
<rdar://problem/50530400>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/js-to-wasm-callee-has-correct-prototype.js: Added.

(test.getInstance):
(test):

Source/JavaScriptCore:

We were passing the empty value instead of null. However, the empty
value means the Structure is poly proto. That's definitely not the case
here.

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::init):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r245201 r245203  
     12019-05-10  Saam barati  <sbarati@apple.com>
     2
     3        Call to JSToWasmICCallee::createStructure passes in wrong prototype value
     4        https://bugs.webkit.org/show_bug.cgi?id=197807
     5        <rdar://problem/50530400>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/js-to-wasm-callee-has-correct-prototype.js: Added.
     10        (test.getInstance):
     11        (test):
     12
    1132019-05-10  Ross Kirsling  <ross.kirsling@sony.com>
    214
  • trunk/Source/JavaScriptCore/ChangeLog

    r245194 r245203  
     12019-05-10  Saam barati  <sbarati@apple.com>
     2
     3        Call to JSToWasmICCallee::createStructure passes in wrong prototype value
     4        https://bugs.webkit.org/show_bug.cgi?id=197807
     5        <rdar://problem/50530400>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        We were passing the empty value instead of null. However, the empty
     10        value means the Structure is poly proto. That's definitely not the case
     11        here.
     12
     13        * runtime/JSGlobalObject.cpp:
     14        (JSC::JSGlobalObject::init):
     15
    1162019-05-10  Yusuke Suzuki  <ysuzuki@apple.com>
    217
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp

    r245082 r245203  
    10631063        m_jsToWasmICCalleeStructure.initLater(
    10641064            [] (const Initializer<Structure>& init) {
    1065                 init.set(JSToWasmICCallee::createStructure(init.vm, init.owner, JSValue()));
     1065                init.set(JSToWasmICCallee::createStructure(init.vm, init.owner, jsNull()));
    10661066            });
    10671067        m_webAssemblyWrapperFunctionStructure.initLater(
Note: See TracChangeset for help on using the changeset viewer.