Changeset 242114 in webkit
- Timestamp:
- Feb 26, 2019, 4:25:34 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/wasm/regress/wasmToJS-should-purify-NaNs.js (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/JSCJSValue.h (modified) (3 diffs)
-
Source/JavaScriptCore/runtime/TypedArrayAdaptors.h (modified) (2 diffs)
-
Source/JavaScriptCore/wasm/js/WasmToJS.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r242081 r242114 1 2019-02-26 Mark Lam <mark.lam@apple.com> 2 3 wasmToJS() should purify incoming NaNs. 4 https://bugs.webkit.org/show_bug.cgi?id=194807 5 <rdar://problem/48189132> 6 7 Reviewed by Saam Barati. 8 9 * wasm/regress/wasmToJS-should-purify-NaNs.js: Added. 10 1 11 2019-02-26 Guillaume Emont <guijemont@igalia.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r242109 r242114 1 2019-02-26 Mark Lam <mark.lam@apple.com> 2 3 wasmToJS() should purify incoming NaNs. 4 https://bugs.webkit.org/show_bug.cgi?id=194807 5 <rdar://problem/48189132> 6 7 Reviewed by Saam Barati. 8 9 * runtime/JSCJSValue.h: 10 (JSC::jsNumber): 11 * runtime/TypedArrayAdaptors.h: 12 (JSC::IntegralTypedArrayAdaptor::toJSValue): 13 * wasm/js/WasmToJS.cpp: 14 (JSC::Wasm::wasmToJS): 15 1 16 2019-02-26 Dominik Infuehr <dinfuehr@igalia.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/JSCJSValue.h
r239427 r242114 2 2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) 3 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 4 * Copyright (C) 2003-201 8Apple Inc. All rights reserved.4 * Copyright (C) 2003-2019 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 24 24 25 25 #include "JSExportMacros.h" 26 #include "PureNaN.h" 26 27 #include <functional> 27 28 #include <math.h> … … 549 550 { 550 551 ASSERT(JSValue(d).isNumber()); 552 ASSERT(!isImpureNaN(d)); 551 553 return JSValue(d); 552 554 } -
trunk/Source/JavaScriptCore/runtime/TypedArrayAdaptors.h
r239427 r242114 1 1 /* 2 * Copyright (C) 2013 Apple Inc. All rights reserved.2 * Copyright (C) 2013-2019 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 46 46 static JSValue toJSValue(Type value) 47 47 { 48 static_assert(!std::is_floating_point<Type>::value, ""); 48 49 return jsNumber(value); 49 50 } -
trunk/Source/JavaScriptCore/wasm/js/WasmToJS.cpp
r240543 r242114 1 1 /* 2 * Copyright (C) 2016-201 8Apple Inc. All rights reserved.2 * Copyright (C) 2016-2019 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 250 250 case F32: 251 251 case F64: 252 arg = jsNumber( bitwise_cast<double>(buffer[argNum]));252 arg = jsNumber(purifyNaN(bitwise_cast<double>(buffer[argNum]))); 253 253 break; 254 254 }
Note:
See TracChangeset
for help on using the changeset viewer.