Changeset 245895 in webkit
- Timestamp:
- May 30, 2019, 11:06:09 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/wasm/references/is_null.js (modified) (3 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp (modified) (1 diff)
-
Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r245888 r245895 1 2019-05-30 Justin Michaud <justin_michaud@apple.com> 2 3 oss-fuzz: jsc: Issue 15016: jsc: Abrt in JSC::Wasm::AirIRGenerator::addLocal (15016) 4 https://bugs.webkit.org/show_bug.cgi?id=198355 5 6 Reviewed by Saam Barati. 7 8 * wasm/references/is_null.js: 9 1 10 2019-05-30 Stephan Szabo <stephan.szabo@sony.com> 2 11 -
trunk/JSTests/wasm/references/is_null.js
r245496 r245895 10 10 .Function("j") 11 11 .Function("k") 12 .Function("local_read") 12 13 .End() 13 14 .Code() 14 .Function("h", { params: ["anyref"], ret: "anyref" } )15 .Function("h", { params: ["anyref"], ret: "anyref" }, ["anyref"]) 15 16 .GetLocal(0) 17 .SetLocal(1) 18 .GetLocal(1) 16 19 .End() 17 20 … … 28 31 .Function("k", { params: [], ret: "i32" }) 29 32 .RefNull() 33 .RefIsNull() 34 .End() 35 36 .Function("local_read", { params: [], ret: "i32" }, ["anyref"]) 37 .GetLocal(0) 30 38 .RefIsNull() 31 39 .End() … … 52 60 53 61 assert.eq(instance.exports.k(), 1) 62 assert.eq(instance.exports.local_read(), 1) 54 63 55 64 assert.eq(obj.test, "hi") -
trunk/Source/JavaScriptCore/ChangeLog
r245875 r245895 1 2019-05-30 Justin Michaud <justin_michaud@apple.com> 2 3 oss-fuzz: jsc: Issue 15016: jsc: Abrt in JSC::Wasm::AirIRGenerator::addLocal (15016) 4 https://bugs.webkit.org/show_bug.cgi?id=198355 5 6 Reviewed by Saam Barati. 7 8 Fix missing anyref case in addLocal. 9 10 * wasm/WasmAirIRGenerator.cpp: 11 (JSC::Wasm::AirIRGenerator::addLocal): 12 1 13 2019-05-29 Don Olmstead <don.olmstead@sony.com> 2 14 -
trunk/Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp
r245765 r245895 880 880 m_locals.uncheckedAppend(local); 881 881 switch (type) { 882 case Type::Anyref: 883 append(Move, Arg::imm(JSValue::encode(jsNull())), local); 884 break; 882 885 case Type::I32: 883 886 case Type::I64: { -
trunk/Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp
r245765 r245895 535 535 Variable* local = m_proc.addVariable(toB3Type(type)); 536 536 m_locals.uncheckedAppend(local); 537 m_currentBlock->appendNew<VariableValue>(m_proc, Set, Origin(), local, constant(toB3Type(type), 0, Origin())); 537 auto val = type == Anyref ? JSValue::encode(jsNull()) : 0; 538 m_currentBlock->appendNew<VariableValue>(m_proc, Set, Origin(), local, constant(toB3Type(type), val, Origin())); 538 539 } 539 540 return { };
Note:
See TracChangeset
for help on using the changeset viewer.