Skip to content

Commit 0af32b1

Browse files
committedJan 26, 2016
Simd.js library support
Change description: 1. Implemented support for new SIMD types SIMD.Bool32x4, SIMD.Bool16x8, SIMD.Bool8x16, SIMD.Int16x8,SIMD.Int8x16, SIMD.Uint32x4, SIMD.Uint16x8, SIMD.Uint8x16. This adds to the existing types SIMD.Int32x4 and SIMD.Float32x4 ensuring compatability with the latest SIMDjs specification. 2. Adding new builtin functions for all SIMDJs types to be consistent with the SIMD.js specification and the polyfill implemntation. This is validated against the polyfill tests. 3. Updating the syntax and behavior of the existing builtin functions and removing builtins to be consistent with the SIMD.js specification and the polyfill. 4. Clean up of existing SIMD unittests to avoid printing SIMD values for validation. Tests prints only PASS/FAIL while verification and uses utility methods for comparing the values to the right precision. This avoids unittest dependency on the printing of numbers. 5. Code refactoring to reduce code size/complexity of the SIMDjs code.
1 parent 78d7bd4 commit 0af32b1

File tree

292 files changed

+18987
-10543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+18987
-10543
lines changed
 

‎lib/Backend/BackEnd.h

+7-15
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,19 @@
2323
#include "Language\CodeGenRecyclableData.h"
2424
#include "Library\JavascriptGenerator.h"
2525
#include "Library\JavascriptRegularExpression.h"
26+
#include "Library\StackScriptFunction.h"
27+
28+
#include "Language\InterpreterStackFrame.h"
29+
#include "Language\ReadOnlyDynamicProfileInfo.h"
2630

2731
#include "Library\StackScriptFunction.h"
2832

2933
#include "Language\InterpreterStackFrame.h"
3034
#include "Language\ReadOnlyDynamicProfileInfo.h"
3135

32-
// SIMD types
33-
#include "Library\JavascriptSIMDFloat32x4.h"
34-
#include "Library\JavascriptSIMDFloat64x2.h"
35-
#include "Library\JavascriptSIMDInt32x4.h"
36-
#include "Library\JavascriptSIMDInt8x16.h"
37-
// SIMD operations
38-
#include "Language\SIMDFloat32x4Operation.h"
39-
#include "Language\SIMDFloat64x2Operation.h"
40-
#include "Language\SIMDInt32x4Operation.h"
41-
#include "Language\SIMDInt8x16Operation.h"
42-
// SIMD libs
43-
#include "Library\SIMDFloat32x4Lib.h"
44-
#include "Library\SIMDFloat64x2Lib.h"
45-
#include "Library\SIMDInt32x4Lib.h"
46-
#include "Library\SIMDInt8x16Lib.h"
36+
// SIMD_JS
37+
#include "Library\SimdLib.h"
38+
#include "Language\SimdOps.h"
4739

4840
// =================
4941
// Common Includes

‎lib/Backend/Lower.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
#include "ExternalLowerer.h"
1515

16+
#include "ExternalLowerer.h"
17+
1618
///----------------------------------------------------------------------------
1719
///
1820
/// Lowerer::Lower

0 commit comments

Comments
 (0)