Skip to content

Commit f6adc7f

Browse files
committed
Added missing copyright headers.
1 parent d44c444 commit f6adc7f

21 files changed

+107
-225
lines changed

Build/scripts/check_prefast_error.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
15

26
param (
37
[string]$directory,

Build/scripts/post_build.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
5+
16
param (
27
[ValidateSet("x86", "x64", "arm", "*")]
38
[string]$arch="*",

Build/scripts/pre_build.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
5+
16
#
27
# Pre-Build script
38
#

Build/scripts/pre_post_util.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
5+
16
. "$PSScriptRoot\util.ps1"
27

38
function UseValueOrDefault($value, $defaultvalue, $defaultvalue2) {

Build/scripts/util.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
5+
16
function WriteMessage($str)
27
{
38
Write-Output $str

bin/ch/CodexAssert.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
#include "stdafx.h"
27

38
// The Codex library requires this assertion.

lib/Runtime/Base/ThreadConfigFlagsList.h

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
// Format: FLAG*(ThreadFlag, GlobalFlag)
27
FLAG(IsCollectGarbageEnabled, CollectGarbage)
38
FLAG(IsErrorStackTraceEnabled, errorStackTrace)

lib/Runtime/Library/InJavascript/GenByteCode.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
@echo off
27
setlocal
38
set _HASERROR=0
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
call %*
27
cd %JSCRIPT_ROOT%
38
build -cz -dir inetcore\jscript\manifests;inetcore\jscript\lib\author;inetcore\jscript\lib\backend;inetcore\jscript\lib\common;inetcore\jscript\lib\parser;inetcore\jscript\lib\runtime\bytecode;inetcore\jscript\lib\runtime\math;inetcore\jscript\lib\runtime\language;inetcore\jscript\lib\runtime\library;inetcore\jscript\lib\runtime\types;inetcore\jscript\lib\winrt;inetcore\jscript\dll\jscript\test;inetcore\jscript\exe\common;inetcore\jscript\exe\jshost\release

lib/common/Memory/ValidPointersMap/GenValidPointersMap.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
@echo off
27
setlocal
38
set _FILE=

test/Array/bug4916987.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
//Baseline switches:
27
//Switches: -mic:1 -off:simplejit
38
var Float64ArrayView = new Float64Array();
@@ -24,4 +29,3 @@ if (Float64ArrayView[4] === val && Int32ArrayView[4] === (val | 0)) {
2429
print(Int32ArrayView[4]);
2530
print("FAILED");
2631
}
27-

test/AsmJs/RunCompare.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
@echo off
27
setlocal ENABLEDELAYEDEXPANSION
38

test/AsmJs/RunTest.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
@echo off
27
setlocal ENABLEDELAYEDEXPANSION
38

test/Generated/createBaseLine.bat

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
::-------------------------------------------------------------------------------------------------------
2+
:: Copyright (C) Microsoft. All rights reserved.
3+
:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
::-------------------------------------------------------------------------------------------------------
5+
16
cscript.exe //nologo mul.js > mul.baseline
27
cscript.exe //nologo mul0.js > mul0.baseline
38
cscript.exe //nologo mul1.js > mul1.baseline

test/SIMD.workloads.asmjs/testLinearSearch.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
function InitBuffer1(buffer) {
27
HEAP32 = new Int32Array(buffer);
38
HEAP32[0] = 13654
@@ -21,39 +26,39 @@ function InitBuffer2(buffer) {
2126

2227
function asmModule(stdlib, imports, buffer) {
2328
"use asm";
24-
29+
2530
var log = stdlib.Math.log;
26-
31+
2732
var i4 = stdlib.SIMD.Int32x4;
2833
var i4equal = i4.equal;
2934
var i4splat = i4.splat;
3035
var i4swizzle = i4.swizzle;
31-
36+
3237
var HEAP32 = new stdlib.Int32Array(buffer);
3338
var BLOCK_SIZE = 4;
3439
var i = 0;
35-
40+
3641
function linearSearch(value, length) {
3742
value = value | 0;
3843
length = length|0;
3944
var i4Value = i4(0, 0, 0, 0);
4045
var i4Heap = i4(0, 0, 0, 0);
4146
var i4Result = i4(0, 0, 0, 0);
4247
var i4Flipped = i4(0, 0, 0, 0);
43-
48+
4449
i4Value = i4splat(value | 0);
4550
for(i = 0; (i | 0) < (length | 0); i = (i + BLOCK_SIZE) | 0) {
4651
i4Heap = i4((HEAP32[(i << 2) >> 2] | 0), (HEAP32[((i + 1) << 2) >> 2] | 0), (HEAP32[((i + 2) << 2) >> 2] | 0), (HEAP32[((i + 3) << 2) >> 2] | 0));
4752
i4Result = i4equal(i4Heap, i4Value);
48-
53+
4954
if(i4Result.signMask != 0) {
5055
i4Flipped = i4swizzle(i4Result, 3, 2, 1, 0);
5156
return (i + BLOCK_SIZE - ~~(log(+(i4Flipped.signMask|0)) / log(2.0)) - 1)|0
5257
}
5358
}
5459
return -1;
5560
}
56-
61+
5762
return {linearSearch:linearSearch};
5863
}
5964

@@ -73,4 +78,4 @@ WScript.Echo("List 2");
7378
WScript.Echo(m.linearSearch(13654, 999999));
7479
WScript.Echo(m.linearSearch(23, 999999));
7580
WScript.Echo(m.linearSearch(145764, 999999));
76-
WScript.Echo(m.linearSearch(-53, 999999));
81+
WScript.Echo(m.linearSearch(-53, 999999));

0 commit comments

Comments
 (0)