⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changelog

📁 一个类似windows
💻
📖 第 1 页 / 共 3 页
字号:
	* b_array.c (new_proc): Added support for array initializers which
	pass the number of arguments as negative integers.

1998-08-14  Markku Rossi  <mtr@purple.ngs.fi>

	* operands.def: Fixed operand `call_method' to call JS_MAYBE_GC()
	also for the language primitives.  This fixes a memory leak.

	* vm.c (js_vm_execute): Added support for regular expression
	constants.

	* b_regexp.c (js_builtin_RegExp_new): New global function to
	create built-in regular expression objects.
	(struct regexp_instance_ctx_st): Added flags `immutable'.

	* b_string.c (method): Implemented 'd' modifier for the unpack()
	method.

1998-08-13  Markku Rossi  <mtr@purple.ngs.fi>

	* main.c: New compiler option `-Wstrict-ecma'.

	* b_vm.c (property): The property `verbose' can have different
	values, not just 0 or 1.  Fixed.

1998-08-12  Markku Rossi  <mtr@purple.ngs.fi>

	* main.c: New compiler option -Wmissing-semicolon to warn about
	missing semicolons that are fixed by the automatic semicolon
	inserting during the compilation.
	New warning level -Wpedantic.

	* jsint.h: Renamed js_intern() to js_intern_with_len().
	Implemented inline function js_intern() that counts the length and
	passes it to js_intern_with_len().
	New macro JS_POP_N() to pop n elements from the stack.  This
	should remove all direct sp modifications from the operands.def
	file.

	* operands.def: Fixed load_array and store_array to work with
	built-in objects with string array indexes.

	* jsint.h (js_string_to_c_string): Made the argument node const.
	(JS_IS_STR_WHITE_SPACE_CHAR): Macro to match StrWhiteSpaceChars.

	* utils.c (js_vm_to_number): Convert any JSNode to its Number
	presentation.  This implementes the ToNumber() type conversion.

	* jsint.h (struct js_vm_st): Added symbol `valueOf'.

	* Renamed all `delete' delete procs to `delete_proc'.

	* b_number.c (global_method): Implemented global method use of the
	Number object.
	(method): Implemented radix 2 for the `toString()' method.
	(method): Implemented method `valueOf()'.
	(new_proc): Implemented new proc.

1998-08-11  Markku Rossi  <mtr@purple.ngs.fi>

	* js.h: Added C++'s extern C defs around the header.

	* jsint.h: Added C++'s extern C defs around the header.

1998-08-10  Markku Rossi  <mtr@purple.ngs.fi>

	* jsint.h (struct js_vm_st): Removed variable `exec_result_sp'
	since it didn't contain accurate information.  The needed values
	can be fetched through vm->sp after the apply.

1998-08-07  Markku Rossi  <mtr@purple.ngs.fi>

	* jsint.h (struct js_vm_st): Added variable `exec_result_sp' that
	can be used to fetch the valeus of the by-reference arguments.

1998-08-05  Markku Rossi  <mtr@purple.ngs.fi>

	* js.h: New API functions: js_compile_to_byte_code(),
	js_compile_data_to_byte_code(), and js_execute_byte_code().

	* main.c: New option -x, --executable to create executable
	byte-code files.

	* js.h (struct js_interp_options_st): New option
	`generate_executable_bc_files'.

	* b_file.c (method): New static method chmod() to change
	permissions of a file.

1998-08-04  Markku Rossi  <mtr@purple.ngs.fi>

	* dl_dummy.c: Dummy stubs for the dynamic loading functions for
	environments which do not support dynamic loading.

	* dl_open.c: Implement dynamic loading with dl{close,open,sym}()
	functions.

	* js.c (load_class_global_method): New global method loadClass()
	that extend the interpreter by calling extension entry functions
	from shared libraries.

1998-07-30  Markku Rossi  <mtr@ngs.fi>

	* operands.def: Fixed a reference bug from operand nth.

1998-07-07  Markku Rossi  <mtr@ngs.fi>

	* b_core.c: New global methods escape() and unescape().  Thanks to
	Roger E Critchlow Jr <rec@daylight.com>.

	* Changed license to GNU Library General Public License (LGPL).

1998-06-26  Markku Rossi  <mtr@ngs.fi>

	* make-jumps.pl: Changed to generate `OPERAND(op)' statements for
	each operand in ejumps.h.  These stmts are needed for the
	byte-code operand profiling.

	* jsint.h (struct js_vm_st): Added support for byte-code operand
	profiling.  This is a debugging tool to profile the performance of
	individual byte-code operands.  It is not intended to be used in
	production interpreters.

1998-06-25  Markku Rossi  <mtr@ngs.fi>

	* make-data.c (main): Changed to create also a pre-processor
	definition for the data length.  It is the same as the data length
	variable name, but in upper case.

	* b_regexp.c (EMIT_TO_RESULT): Fixed a typo where the result of
	the realloc() wasn't assigned to the reallocated pointer.

1998-06-09  Markku Rossi  <mtr@ngs.fi>

	* operands.def (halt): Changed to sleep forever instead of exiting
	the process.
	(roll): Fixed the negative roll value.

	* vmswitch.c (struct function_st): Changed the name to be
	dynamically allocated.
	(execute_code): Save the executed function to the stack.  This
	protects it against the gc.
	(js_vm_switch_func_name): Fixed to lookup the function name also
	from the stack.

	* vmswt0.c (struct function_st): Changed the name to be
	dynamically allocated.
	(execute_code): Save the executed function to the stack.  This
	protects it against the gc.
	(js_vm_switch0_func_name): Fixed to lookup the function name also
	from the stack.

	* vmjumps.c (struct function_st): Changed the name to be
	dynamically allocated.
	(js_vm_jumps_exec): Save the executed function to the stack.
	There it is protected against garbage collections and it won't be
	collected while we are executing its code.
	(js_vm_jumps_func_name): Fixed to lookup the function name also
	from the stack.
	(js_vm_jumps_debug_position): Fixed to lookup the function also
	from the stack.  Now we find the `.global' code and we can fetch
	the debugging information for it.

	* heap.c (js_vm_garbage_collect): Changed the way how the stack is
	marked.  Now we do not follow the frame pointers, but we use brute
	force and process whole active stack.

	* debug.c (js_vm_stacktrace): Cleaned up the stacktrace output.
	Now the function parenthesis () are not printed after `.global'.

1998-06-08  Markku Rossi  <mtr@ngs.fi>

	* operands.def: Added support for the prototype properties of
	built-in objects.

	* jsint.h (struct js_builtin_st): Added the prototype property.
	(struct js_builtin_info_st): Added the prototype property.
	(struct js_string_st): Added the prototype property.
	(struct js_array_st): Added the prototype property.
	Added `JS_' prefixes to the property attribute values.

	* operands.def: Changed the way how the primitive language objects
	are called.
	Replaced all by-hand subroutine calls with JS_SUBROUTINE_CALL()
	macro.
	Removed operands `assert_args', `assert_min_args', and
	`assert_max_args'.
	Added operands `min_args', `add_1_i', and `add_2_i'.

	* object.c (js_vm_object_load_property): Changed the prototype
	property to be always linked through the `__proto__' property.

	* b_func.c (property): Made the `prototype' property mutable.

	* js.h (struct js_interp_options_st): Removed option
	argument_count_checks.

	* jsint.h: Added macro JS_SUBROUTINE_CALL() to handle the
	subroutine call stack frame creation.  All uses changed.
	Cleaned up JSNode types.
	Changed JSVirtualMachine's primitive object infos to be in an
	array that is indexed with the object type.  This cleans up the
	source noticeably.
	Removed flag JSC_FLAG_ARGUMENT_COUNT_CHECKS.  All uses changed.

1998-06-07  Markku Rossi  <mtr@ngs.fi>

	* jsint.h: Implemented the prototype property of object.  Changed
	all uses of the object built-in to use it.
	Added the prototype property to functions.

	* b_object.c: New built-in object for the object primitive type.

	* b_func.c: New built-in object for the function primitive type.

1998-06-05  Markku Rossi  <mtr@ngs.fi>

	* operands.def: Implemented mod operand.
	Reorganized the operand opcodes.

1998-06-04  Markku Rossi  <mtr@ngs.fi>

	* heap.c: Optimized the heap performance.  Now the vm has separate
	freelists for each block size.  This allows us to put each freed
	heap block to the freelist, and therefore, we need much less
	memory from the system.

	* jsint.h (struct js_vm_st): Added separate freelists for each
	heap block size.

	* vm.c (js_vm_intern): Changed the hash function to
	js_count_hash() that creates much evenly distributed hash values.

1998-06-03  Markku Rossi  <mtr@ngs.fi>

	* r_pthrs.c: Implemented an alternative method to count random
	numbers.  The new method assumes that the drand48() function is
	thread-safe.

	* rentrant.h: Added buffer_length argument to the js_asctime()
	function.  All uses and implementations changed.

1998-06-02  Markku Rossi  <mtr@ngs.fi>

	* rentrant.h: Added vm argument to the js_drand48_create()
	function.  All uses and implementations changed.

	* make-data.c (main): Changed to take third (first) argument that
	specifies the data name.

	* heap.c (js_vm_alloc_destroyable): Changed to return zeroed
	memory.

1998-06-01  Markku Rossi  <mtr@ngs.fi>

	* js.h: New function js_define_module() to initialize an extension
	module to the interpreter.

	* vm.c (js_vm_destroy): Fixed to destroy everything we allocate
	during the initialization and the evaluations.  Now there
	shouldn't be any memory leaks.

	* js.h: Moved all extension to be public at the js.h API.  Now the
	interpreter do not initialize any extensions; you have to do it
	explictly.

	* heap.c (js_vm_clear_heap): New function to delete all
	built-ins, etc. from the heap.  This is called from the
	js_vm_destroy() to remove everything dynamically allocated from
	the heap.

	* b_file.c (struct file_instance_ctx_st): Added flag dont_close to
	indicate that the file shouldn't be closed on delete.  This is
	useful for the system's standard streams.

	* jsint.h (struct js_heap_destroyable_st): Changed the way how the
	built-in objects are handled.  In the older versions, the
	built-ins were allocated with the js_vm_alloc_buitin() function.
	Now the function has been renamed to js_vm_alloc_destroyable()
	that allocates memory that has a callback function that will be
	called, when the garbage collector reclaims the storage.  This is
	more general way to handle the delete operand in the memory
	blocks.  The same method are now used also for JSBuiltinInfo,
	JSBuiltin, and for the Function closures.
	Implemented memory leak checks.  Now the memory leaks can be found
	easily.  Just turn the JS_DEBUG_MEMORY_LEAKS to 1 in the jsint.h
	file and dump the leaks after the interpreter has been deleted.

1998-05-29  Markku Rossi  <mtr@ngs.fi>

	* jsint.h: Major reorganization in the memory management.  The
	interpreter does no longer use the xalloc() semantics, but it will
	return an error message to the caller, if the memory were
	exhausted.  This change affects functions
	js_{malloc,calloc,realloc,strdup}() and js_string_to_c_string().
	All uses of these functions were changed.

1998-05-28  Markku Rossi  <mtr@ngs.fi>

	* b_file.c: Removed the historical stdin, stdout, and stderr
	references.

	* js.h (struct js_interp_options_st): Added options s_stdin,
	s_stdout, and s_stderr.  These can be used to redirect the System
	builtin's idea about the default streams.  All uses of globals
	stdin, stdout, and stderr were redirected to these streams.

	* heap.c (js_vm_garbage_collect): Fixed a bug from with-chain
	marking.

	* jsint.h: Massive namespace cleanup.  All functions, types, and
	preprocessor constants have now an appropriate `js' prefix.  All
	uses changed.

1998-05-27  Markku Rossi  <mtr@ngs.fi>

	* jsint.h: Namespace cleanups for the different integer types.
	Added `JS' prefix to types `{U,}Int{8,16,32}'.  All uses changed.

	* js.1: Documented the command line options.

1998-05-26  Markku Rossi  <mtr@ngs.fi>

	* xalloc.c: Renamed functions x{malloc,calloc,realloc,free,strdup}
	to js_{malloc,calloc,realloc,free,strdup}.  All prototypes and
	calls changed.

1998-05-22  Markku Rossi  <mtr@ngs.fi>

	* main.c (create_interp): Fixed to pass the `warn_with_clobber'
	option to the interpreter.

	* b_date.c (new_proc): Implemented constructors with three and six
	arguments.

1998-05-20  Markku Rossi  <mtr@ngs.fi>

	* js.h: Added new API function js_create_global_method() to
	implement the user-defined global methods.

	* js.c (js_create_global_method): New API function to implement
	user-defined global methods.

	* b_vm.c (method): Fixed the method stackTrace() to pass the limit
	argument to the js_vm_stacktrace().

	* debug.c (js_vm_stacktrace): Added argument `num_frames' to
	specify how many stack frames the function should print.

1998-05-19  Markku Rossi  <mtr@ngs.fi>

	* b_md5.c (method): Fixed an off-by-one bug from the final()
	method.

	* b_math.c (method): Removed the clock seed setting from the
	random() method.
	Implemented new method seed() to set the random seed.

1998-05-18  Markku Rossi  <mtr@ngs.fi>

	* b_array.c (method): Set the default result type to be
	`undefined'.

1998-05-15  Markku Rossi  <mtr@ngs.fi>

	* jsint.h (struct error_handler_frame_st): Added item `thrown' for
	the thrown value.

	* operands.def: Implemented operand throw.

	* vm.c (js_vm_error): When jumping to a catch-block, format the
	error message to the vm->error_handler->thrown as a JS string.

1998-05-14  Markku Rossi  <mtr@ngs.fi>

	* operands.def: Implemented operands try_push and try_pop.

	* jsint.h (struct error_handler_frame_st): Added slots for the
	try_push operands saved state.

1998-05-13  Markku Rossi  <mtr@ngs.fi>

	* xjs.c (method): Implemented getVar() and setVar() methods.

	* jsint.h: Added prototype for the js_crc32() function.

	* b_md5.c: New builtin object to count the MD5 message digests.

	* b_string.c (method): Implemented method crc32().

	* b_math.c: Changed to use the rentrant.h API.

	* b_date.c: Changed to use the rentrant.h API.

	* r_std.c: Non-re-entrant versions of the re-entrant functions.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -