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

📄 changelog

📁 一个类似windows
💻
📖 第 1 页 / 共 3 页
字号:
	This uses the standard C-library.  This shouldn't be used with
	threads.

	* r_pthrs.c: Implement Re-entrant functions with Posix threads.

	* rentrant.h: New file to define functions that must be
	re-implemented on different operating systems to assure that the
	interpreter will be re-entrant.

	* b_date.c (method): Implemented format() and formatGMT()
	methods.

	* object.c (js_vm_object_nth): Implemented.  This is needed for
	the byte-code operand `nth'.

	* jsint.h (struct object_st): Added <hash_lengths> to hold the
	chain lengths of each hash slot.

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

	* main.c (long_options): Changed long option `--dispatch' to take
	an argument.

	* operands.def: New operands: `roll' and `nth'.
	Reorganized the operands.  All old byte-code file must be
	recompiled.

	* b_date.c: Implemented Date built-in object.

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

	* jsint.h (SYMBOL_NULL): New constant for nonexistent symbols.

	* operands.def (delete_property): New operand to delete a property
	from an object.
	(delete_array): New operand to delete an item from an array.
	These two new operands implement the JavaScript `delete'
	operator.

	* object.c (js_vm_object_delete_property): New function to delete
	a property of an object through the standard object.property
	interface.
	(js_vm_object_delete_array): New function to delete a property of
	an object through the array reference interface.

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

	* main.c: Fixed long option --file not to take an argument.  The
	arguments are handled after the getopt_long() has processed them.

	* js.c (js_eval_file): Added more knowledge to the file type
	determination.  If we can't determine the file type from the
	file's suffix, the file is opened and searched for the magic
	number of the JS byte-code file.

	* b_array.c (method): Changed the splice() method to return an
	array containing the deleted items, or `undefined' if no items
	were deleted.

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

	* b_regexp.c (js_builtin_RegExp_split): New function to preform
	string split from the matched regexp boundaries.
	(new_proc): Fixed a zero allocation bug when a regular expression
	was created from an empty string.

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

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

	* b_core.c: New global methods float() and int().

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

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

	* xcurses.c (method): New method mvaddsubstr() to draw a substring
	of a string.

	* b_string.c (method): Cleaned up argument handling for substr()
	and substring() methods.

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

	* b_regexp.c (js_builtin_RegExp_match): New function to perform
	regexp execution against a string.  String.match() uses this.
	(js_builtin_RegExp_search): New function to perform regexp
	search against a string.  String.search() uses this.

	* vm.c (intern_builtins): Changed the order in which the built-ins
	are initialized.  The RegExp object must be initialized before
	String.

	* b_regexp.c (js_builtin_RegExp_replace): New function to perform
	search-replace operation for a string.

	* b_string.c (method): Implemented replace(), match(), and
	search() methods.

	* vm.c: Added `js_' prefix to all built-in global functions.

	* b_regexp.c (method): Changed the test() method to obey and
	update the RegExp.lastIndex property.

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

	* vm.c (js_vm_apply): Changed to reset the vm->sp to the saved
	value in every case, not just when an error occurred.  Otherwise
	the stack will eventually overflow.
	(js_vm_execute): Likewise.

	* b_system.c (method): New method popen().
	(property): Added properties stderr, stdin, and stdout.

	* b_file.c (method): Major cleanup.  Added some missing argument
	checks.
	(builtin_File_new): New function to enter files to the JS system.
	(builtin_File): Moved File.stderr, File.stdin, and File.stdout to
	the System built-in.
	(method): New methods lstat() and stat().

	* Removed all ToStringProcs from the built-in objects.  The
	toString() methods is now always implemented in the object's
	method proc.

	* Major cleanup for all builtin-objects.  Now the instance methods
	actually check that there is an instance of the object available;
	the instance methods can now longer be called statically.

	* b_string.c (method): Implemented indexOf() and lastIndexOf()
	methods.

	* mrgsort.h (mergesort_r): Renamed re_mergesort() to
	mergesort_r().

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

	* b_regexp.c: Implemented RegExp built-in object.

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

	* mrgsort.h (re_mergesort): Renamed mergesort() to re_mergesort()
	because mergesort() was already defined in The FreeBSD's stdlib.h.

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

	* main.c: New compiler option -Wwith-clobber.

	* js.c (js_compile): Added support for option
	JSC_FLAG_WARN_WITH_CLOBBER.

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

	* b_core.c: Implemented global methods isFloat() and isInt().

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

	* heap.c (js_vm_garbage_collect): Updated to mark the with-chains
	from the stack.

	* operands.def: Implemented the with-chain.  This affected
	operands load_global, jsr, with_push, and with_pop.

	* jsint.h (WITHPTR): New macro to refer to the stack frame's with
	pointer.

	* object.c (js_vm_object_load_property): Changed to return an
	integer return value that specifies whether the property was
	defined in the object or not.  This is needed by the with
	statement.

	* operands.def: Changed with_pop to take an Int8 argument to
	specify the number of with-frames to pop.

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

	* vmjumps.c (js_vm_jumps_exec): Added a slot for the with chain to
	the stack frame.

	* jsint.h: Removed #if HAVE_CONFIG_H from the inclusion of
	jsconfig.h.  We have it always.

	* b_array.c (method): Implemented splice() method.

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

	* mrgsort.c: New file that implements re-entrant, stable
	mergesort.

	* utils.c (js_vm_to_string): Changed to generate static strings
	when ever it is possible.

	* jsint.h: Changed JSVMExecute function type to allow applying
	arguments to an anonymous function pointer.

	* b_array.c (method): Implemented sort() method.

	* vmswitch.c: Optimized to pre-compile the byte-code stream to
	internal presentation.  This gives some speedup.  The old
	non-compiled version is now called `switch-basic' and it can be
	found from vmswt0.c.

	* debug.c (js_vm_stacktrace): Implemented JS_ARRAY type.

	* jsint.h: Cleaned up byte-code instruction dispatcher
	interfaces.

	* js.c (js_create_interp): Added support for the new switch-basic
	dispatch method.

	* b_vm.c (builtin_VM_property): Renamed property dispatchType to
	dispatchMethod and changed its value to be string that gives the
	name of the dispatchmethod.

	* js.h: Added new bc instruction dispatch method switch-basic.

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

	* object.c (js_vm_object_mark): Tail-recursive optimization for
	linked list properties.  This saves the gc-mark stack usage
	noticeably.

	* heap.c (js_vm_is_marked_ptr): New function to determine whether
	the pointer is marked or not.

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

	* b_file.c (builtin_File_method): Changed the open() method to add
	the 'b' flag to the fopen mode.

	* js.c (js_execute_byte_code_file): Added 'b' to the fopen mode.

	* Ported to OS/2 1.3.  It is a 16 bit system.

	* heap.c: Cleaned up the heap allocation.

	* bc.c (js_bc_read_data): Fixed all 16 / 32 bit issues.

	* main.c: Implemented `--no-compiler' option to disable compiler
	from the interpreter.  This option makes the interpreter a pure
	virtual machine that can only execute byte-code files.

	* b_system.c (builtin_System_property): New property `bits' to
	tell the "bits" of the underlying processor (16, 32, 64).
	(builtin_System_method): Implement sleep() and usleep() methods
	only if the system supports them.

	* b_string.c (builtin_String_method): Fixed pack() and unpack()
	methods to work in 16 bit environments.

	* b_math.c: Defined some double constants which can be used if the
	system headers do not define them.
	(method): Implemented an alternative method to count random
	numbers.

	* b_file.c (builtin_File_method): Fixed a typo from the return
	value check of fread().
	Included sys/types.h.

	* heap.c (BLOCK_SIZE): Changed the default block size to depend on
	the underlying machine (16 / 32 bit).

	* jsint.h: Defined integer types: UInt8, Int8, UInt16, Int16,
	UInt32, Int32.
	Changed unistd.h to be included only if it is detected by the
	configure script.
	Included limits.h.
	(struct js_vm_st): Changed garbage collection variables to be 32
	bit integers, instead of using unsigned int.
	(struct symtab_entry_st): Changed symtab entry's name to be
	dynamically allocated.  This saves noticeably memory.
	Renamed option JSC_FLAG_OPTIMIZE_JUMPS_TO_JUMPS to
	JSC_FLAG_OPTIMIZE_JUMPS.

	* vm.c (js_vm_execute): Changed symtab entry's symbol names to be
	dynamically allocated.
	(js_vm_execute): Removed uses of __FUNCTION__ macros.

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

	* main.c (usage): Fixed some compiler warnings.

	* object.c: Fixed some compiler warnings.

	* vm_jumps2.c: Added support for non-gcc environments.

	* vm.c (js_vm_create): Added support for non-gcc environments.

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

	* bi_array.c (method): Implemented toString() and join() methods.
	(method): Implemented slice() method.

	* utils.c (js_vm_to_string): New function to convert any node to
	string.  This function is used in all places where a string
	presentation of a value is needed.

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

	* bi_array.c (method): Implemented reverse() and shift() methods.

	* jsint.h: Changed the definition of truthness and falseness of a
	node.  Now also integer 0 is false.

	* bi_math.c: Implemented the Math core object.

	* operands.def: Implemented type conversions to operands add, sub,
	div and mul.

	* bi_boolean.c: Finished the Boolean core object.

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

	* jsint.h: Implemented array core type.
	Cleaned up the internal namespace.  Now all virtual machine
	functions start with prefix `js_vm_'.

	* main.c: Changed the default optimization level to 1.
	(main): Pass all arguments (and the name of the script) to the
	script through ARGS array.

	* js.h: Implemented public interface to JavaScript's types.
	Implemented functions to create string and array types.
	Implemented functions to set and get values of global variables.

	* bi_system.c (builtin_System_method): Implemented chdir() and
	getcwd() methods.

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

	* xcurses.c: Curses extension.  It is still under construction.

	* main.c: Changed the default optimization level to be 1 (no heavy
	optimizations).

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

	* bi_string.c (builtin_String_method): Implemented toLowerCase()
	and toUpperCase() methods.

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

	* bi_system.c: Implemented canonical host properties:
	canonicalHost, canonicalHostCPU, canonicalHostVendor,
	canonicalHostOS.

	* bi_vm.c: Implemented version properties: version, versionMajor,
	versionMinor, versionPatch.

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

	* bi_number.c (builtin_Number_property): Implemented properties.

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

	* bi_number.c (builtin_Number_method): Added radix argument to the
	toString() method.

	* bi_core.c: New file to implement the virtual machine level
	global methods.

	* operands.def: Added some missing SAVE_REGS() calls.

	* defs.h (JSType): New type JS_NAN for NaN numbers.  Changed all
	places where node types are checked.

	* bi_string.c (builtin_String_method): Implemented methods concat,
	fromCharCode, substr and substring.  Changed the missing methods
	to raise an error.

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

	* vm.c (js_vm_builtin_create): New function to create builtin
	objects.

	* heap.c (js_vm_alloc_builtin): New function to allocate tagged
	memory for the builtin objects.
	(js_vm_garbage_collect): Changed to call the possible user-defined
	destructor for each collected builtin node.

	* defs.h: Defined macros IS_TRUE() and IS_FALSE() to determine the
	trueness and falseness of a node.
	Changed all Builtin procs to take BuiltinInfo argument instead of
	the object context.
	(js_string_to_c_string): New function to convert JS string to a
	C-string.

	* vm_jumps2.c (js_vm_exec_jumps2): Optimized the debug info
	handling.

	* bi_system.c: New methods: flush, getenv, sleep, system and
	usleep.

⌨️ 快捷键说明

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