Skip to content

Commit c9d02e6

Browse files
committed
update PR version 4
* change profile [minimal es5.1 es2015-subset] * JS foundation copyright JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
1 parent 2d35a5d commit c9d02e6

9 files changed

+12
-12
lines changed

jerry-core/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set(JERRY_CORE_NAME jerry-core)
1818
project (${JERRY_CORE_NAME} C)
1919

2020
# Optional features
21-
set(FEATURE_PROFILE "es5.1-full" CACHE STRING "Profile types: es5.1-full, minimal, es2015-part")
21+
set(FEATURE_PROFILE "es5.1" CACHE STRING "Profile types: es5.1, minimal, es2015-subset")
2222
set(FEATURE_ERROR_MESSAGES OFF CACHE BOOL "Enable error messages?")
2323
set(FEATURE_VALGRIND OFF CACHE BOOL "Enable Valgrind support?")
2424
set(FEATURE_VALGRIND_FREYA OFF CACHE BOOL "Enable Valgrind-Freya support?")
@@ -134,10 +134,10 @@ if(FEATURE_PROFILE STREQUAL "minimal")
134134
CONFIG_DISABLE_DATE_BUILTIN
135135
CONFIG_DISABLE_REGEXP_BUILTIN
136136
CONFIG_DISABLE_ANNEXB_BUILTIN)
137-
elseif(FEATURE_PROFILE STREQUAL "es5.1-full")
137+
elseif(FEATURE_PROFILE STREQUAL "es5.1")
138138
set(DEFINES_JERRY ${DEFINES_JERRY}
139139
${CONFIG_DISABLE_ES2015})
140-
elseif(NOT FEATURE_PROFILE STREQUAL "es2015-part")
140+
elseif(NOT FEATURE_PROFILE STREQUAL "es2015-subset")
141141
message(FATAL_ERROR "FEATURE_PROFILE='${FEATURE_PROFILE}' isn't supported")
142142
endif()
143143

jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.

jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.inc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.

jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.

jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer.inc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.

jerry-core/ecma/operations/ecma-arraybuffer-object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -13,14 +13,14 @@
1313
* limitations under the License.
1414
*/
1515

16+
#include "ecma-arraybuffer-object.h"
1617
#include "ecma-conversion.h"
1718
#include "ecma-objects.h"
1819
#include "ecma-builtins.h"
1920
#include "ecma-exceptions.h"
2021
#include "ecma-gc.h"
2122
#include "ecma-globals.h"
2223
#include "ecma-helpers.h"
23-
#include "ecma-arraybuffer-object.h"
2424

2525
#ifndef CONFIG_DISABLE_ARRAYBUFFER_BUILTIN
2626

jerry-core/ecma/operations/ecma-arraybuffer-object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Intel Corporation
1+
/* Copyright JS Foundation and other contributors, http://js.foundation
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.

tests/unit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
cmake_minimum_required (VERSION 2.8.12)
1717
project (Unittest C)
1818

19-
if(NOT FEATURE_PROFILE STREQUAL "es5.1-full")
19+
if(NOT FEATURE_PROFILE STREQUAL "es5.1")
2020
message(FATAL_ERROR "FEATURE_PROFILE='${FEATURE_PROFILE}' isn't supported with UNITTESTS=ON")
2121
endif()
2222

tools/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def devhelp(help):
4949
parser.add_argument('--builddir', metavar='DIR', action='store', default=BUILD_DIR, help='specify output directory (default: %(default)s)')
5050
parser.add_argument('--lto', metavar='X', choices=['ON', 'OFF'], default='ON', type=str.upper, help='enable link-time optimizations (%(choices)s; default: %(default)s)')
5151
parser.add_argument('--all-in-one', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper, help='all-in-one build (%(choices)s; default: %(default)s)')
52-
parser.add_argument('--profile', metavar='PROFILE', choices=['es5.1-full', 'minimal', 'es2015-part'], default='es5.1-full', type=str.lower, help='specify the profile (%(choices)s; default: %(default)s)')
52+
parser.add_argument('--profile', metavar='PROFILE', choices=['es5.1', 'minimal', 'es2015-subset'], default='es5.1', type=str.lower, help='specify the profile (%(choices)s; default: %(default)s)')
5353
parser.add_argument('--error-messages', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper, help='enable error messages (%(choices)s; default: %(default)s)')
5454
parser.add_argument('--snapshot-save', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper, help='enable saving snapshot files (%(choices)s; default: %(default)s)')
5555
parser.add_argument('--snapshot-exec', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper, help='enable executing snapshot files (%(choices)s; default: %(default)s)')

0 commit comments

Comments
 (0)