Support external context, heap and lcache (#1778)
JerryScript should support external context, heap and lcache, so that it can have multiple instances and runtime configurable heap size. Related issue: 1746 JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
@@ -64,6 +64,8 @@ def get_arguments():
|
||||
help='debug build')
|
||||
parser.add_argument('--error-messages', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper,
|
||||
help='enable error messages (%(choices)s; default: %(default)s)')
|
||||
parser.add_argument('--external-context', metavar='X', choices=['ON', 'OFF'], default='OFF', type=str.upper,
|
||||
help='enable external context (%(choices)s; default: %(default)s)')
|
||||
parser.add_argument('-j', '--jobs', metavar='N', action='store', type=int, default=multiprocessing.cpu_count() + 1,
|
||||
help='Allowed N build jobs at once (default: %(default)s)')
|
||||
parser.add_argument('--jerry-cmdline', metavar='X', choices=['ON', 'OFF'], default='ON', type=str.upper,
|
||||
@@ -161,6 +163,7 @@ def generate_build_options(arguments):
|
||||
build_options.append('-DFEATURE_PROFILE=%s' % arguments.profile)
|
||||
build_options.append('-DFEATURE_DEBUGGER=%s' % arguments.jerry_debugger)
|
||||
build_options.append('-DFEATURE_DEBUGGER_PORT=%d' % arguments.jerry_debugger_port)
|
||||
build_options.append('-DFEATURE_EXTERNAL_CONTEXT=%s' % arguments.external_context)
|
||||
build_options.append('-DFEATURE_SNAPSHOT_EXEC=%s' % arguments.snapshot_exec)
|
||||
build_options.append('-DFEATURE_SNAPSHOT_SAVE=%s' % arguments.snapshot_save)
|
||||
build_options.append('-DFEATURE_SYSTEM_ALLOCATOR=%s' % arguments.system_allocator)
|
||||
|
||||
+5
-1
@@ -61,7 +61,9 @@ JERRY_TESTS_OPTIONS = [
|
||||
['--debug', '--snapshot-save=on', '--snapshot-exec=on'],
|
||||
['--snapshot']),
|
||||
Options('jerry_tests-es2015-subset-debug',
|
||||
['--debug', '--profile=es2015-subset'])
|
||||
['--debug', '--profile=es2015-subset']),
|
||||
Options('jerry_tests-debug-external-context',
|
||||
['--debug', '--jerry-libc=off', '--external-context=on'])
|
||||
]
|
||||
|
||||
# Test options for jerry-test-suite
|
||||
@@ -120,6 +122,8 @@ JERRY_BUILDOPTIONS = [
|
||||
['--jerry-libc=off']),
|
||||
Options('buildoption_test-cpointer_32bit',
|
||||
['--jerry-libc=off', '--compile-flag=-m32', '--cpointer-32bit=on', '--system-allocator=on']),
|
||||
Options('buildoption_test-external_context',
|
||||
['--jerry-libc=off', '--external-context=on']),
|
||||
]
|
||||
|
||||
def get_arguments():
|
||||
|
||||
Reference in New Issue
Block a user