Commit Graph

642 Commits

Author SHA1 Message Date
Attila Szegedi f7e375298a 8134490: Dead var statement evacuation incorrectly descends into nested functions
Reviewed-by: hannesw, mhaupt
2015-09-25 12:46:53 +02:00
Hannes Wallnöfer 61be9736db 8134609: Allow constructors with same prototoype map to share the allocator map
Reviewed-by: attila, sundar
2015-09-16 14:42:32 +02:00
Hannes Wallnöfer 5b6b89a004 8134569: Add tests for prototype callsites
Reviewed-by: attila, sundar
2015-09-10 13:50:04 +02:00
Hannes Wallnöfer 3ea594a3bb 8087312: PropertyMapWrapper.equals should compare className
Reviewed-by: sundar, attila
2015-06-17 09:10:45 +02:00
Hannes Wallnöfer d94039c9ca 8135000: Number.prototype.toFixed returns wrong string for 0.5 and -0.5
Reviewed-by: attila, sundar
2015-09-10 13:46:45 +02:00
Attila Szegedi 51ea916d34 8135336: Fix broken build after JDK-8135262
Reviewed-by: hannesw, sundar
2015-09-10 15:24:39 +02:00
Attila Szegedi 628b53a223 8135262: Sanitize CodeInstaller API
Reviewed-by: hannesw, sundar
2015-09-10 14:00:27 +02:00
Hannes Wallnöfer f4eda6a1a6 8135190: Method code too large in Babel browser.js script
Reviewed-by: attila, sundar
2015-09-19 16:04:28 +02:00
Athijegannathan Sundararajan 5cffff8a27 8136694: Megemorphic scope access does not throw ReferenceError when property is missing
Reviewed-by: attila, hannesw
2015-09-17 18:23:53 +05:30
Attila Szegedi 8ecc41e22a 8134939: Improve toString method of Dynalink DynamicMethod objects
Reviewed-by: hannesw, sundar
2015-09-02 16:35:14 +02:00
Sergey Lugovoy c48f7ee110 8057035: Some tests failed using java.awt.Color on Solaris without X11 libraries
Reviewed-by: lagergren
2014-09-17 16:44:23 +04:00
Attila Szegedi 99bb6a9d93 8133785: SharedScopeCall should be enabled for non-optimistic call sites in optimistic compilation
Reviewed-by: hannesw, lagergren
2015-08-24 09:12:35 +02:00
Athijegannathan Sundararajan 12d6889769 8136544: Call site switching to megamorphic causes incorrect property read
Reviewed-by: attila, mhaupt
2015-09-16 16:26:30 +05:30
Athijegannathan Sundararajan c2a3e6063c 8080501: javaarrayconversion.js test is flawed
Reviewed-by: attila, hannesw
2015-09-15 19:31:24 +05:30
Athijegannathan Sundararajan 981a73443c 8087292: nashorn should have a "fail-fast" option for scripting, analog to bash "set -e"
Reviewed-by: hannesw, jlaskey, mhaupt
2015-09-03 21:47:48 +05:30
Athijegannathan Sundararajan bfdf166abd 8068901: Surprising behavior with more than one functional interface on a class
8068903: Can't invoke vararg @FunctionalInterface methods

Reviewed-by: attila, hannesw
2015-09-01 18:28:11 +05:30
Athijegannathan Sundararajan a50663d9f2 8134731: Function.prototype.apply interacts incorrectly with arguments
Reviewed-by: attila, hannesw
2015-08-31 17:51:02 +05:30
Michael Haupt 596f4448c5 8134484: disallow backquotes as heredoc end marker delimiters
Reviewed-by: attila, sundar
2015-08-26 13:11:35 +02:00
Michael Haupt cf87bb08bd 8073613: Here documents: how to avoid string interpolation?
Support heredoc end marker quoting like in bash

Reviewed-by: attila, hannesw
2015-08-26 09:59:29 +02:00
Athijegannathan Sundararajan e9478f50f8 8133119: Error message associated with TypeError for call and new should include stringified Node
Reviewed-by: attila, mhaupt
2015-08-06 21:50:42 +05:30
Athijegannathan Sundararajan 88da9bbb22 8073733: TypeError messages with "call" and "new" could be improved
Reviewed-by: attila, mhaupt
2015-08-04 18:18:54 +05:30
Athijegannathan Sundararajan f31f2f1ff2 8114838: Anonymous functions escape to surrounding scope when defined under "with" statement
Reviewed-by: jlaskey, mhaupt
2015-07-29 18:54:56 +05:30
Athijegannathan Sundararajan 92013862ab 8130853: Non-extensible global is not handled property
Reviewed-by: jlaskey, hannesw
2015-07-13 20:09:14 +05:30
Hannes Wallnöfer e8e87805c0 8131683: Delete fails over multiple scopes
Reviewed-by: mhaupt, sundar
2015-07-22 10:18:33 +02:00
Hannes Wallnöfer 8f36d9ba38 8131340: Varargs function is recompiled each time it is linked
Reviewed-by: mhaupt, sundar
2015-07-20 13:11:26 +02:00
Athijegannathan Sundararajan 64085e64e1 8131039: after adding a function property to Object.prototype, JSON.parse with reviver function goes into infinite loop
Reviewed-by: hannesw, mhaupt
2015-07-16 15:45:54 +05:30
Athijegannathan Sundararajan deaa3b3e3d 8132092: Nashorn copyright has to be updated
Reviewed-by: jlaskey, hannesw, mhaupt
2015-07-28 14:52:34 +05:30
Attila Szegedi 31b47d16c2 8129410: Java adapters with class-level overrides should preserve variable arity constructors
Reviewed-by: lagergren, sundar
2015-06-23 11:16:48 +02:00
Athijegannathan Sundararajan ba9a0d12c8 8098847: obj."prop" and obj.'prop' should result in SyntaxError
Reviewed-by: hannesw, attila
2015-06-17 14:21:20 +05:30
Athijegannathan Sundararajan 8a1d15be53 8098578: Global scope is not accessible with indirect load call
Reviewed-by: attila, hannesw
2015-06-16 18:26:25 +05:30
Hannes Wallnöfer 9de1ade591 8098807: Strict eval throws ClassCastException with large scripts
Reviewed-by: sundar, attila
2015-06-16 13:25:41 +02:00
Hannes Wallnöfer 83ee16e17c 8098546: eval within a 'with' leaks definitions into global scope
Reviewed-by: sundar, attila
2015-06-15 15:49:14 +02:00
Athijegannathan Sundararajan a1ca4a29f4 8087211: Indirect evals should be strict with -strict option
Reviewed-by: lagergren, hannesw
2015-06-12 16:55:20 +05:30
Athijegannathan Sundararajan 4be8034a40 8086032: Add compiler error tests when syntax extensions are used with --no-syntax-extensions option
Reviewed-by: attila, hannesw
2015-06-09 14:19:57 +05:30
Athijegannathan Sundararajan 6ed694954c 8085802: Nashorn -nse option causes parse error on anonymous function definition
Reviewed-by: lagergren, attila
2015-06-08 13:57:44 +05:30
Michael Haupt bd2ce760a8 8080087: Nashorn $ENV.PWD is originally undefined
On Windows, the PWD environment variable does not exist and cannot be imported in scripting mode, so it is set explicitly.

Reviewed-by: lagergren, sundar
2015-06-05 12:38:53 +02:00
Hannes Wallnöfer 8c46ab0d0d 8066237: Fuzzing bug: Parser error on optimistic recompilation
Reviewed-by: lagergren, attila
2015-06-03 18:08:57 +02:00
Attila Szegedi 4a873d48e5 8066773: JSON-friendly wrapper for objects
Reviewed-by: jlaskey, lagergren, sundar
2015-06-02 10:55:17 +02:00
Hannes Wallnöfer cb9a932916 8066220: Fuzzing bug: MethodHandle bug (Object,Object) != (boolean)Object
Reviewed-by: lagergren, attila, sundar
2015-06-03 10:42:06 +02:00
Michael Haupt 19f9e8e4a0 8081604: rename ScriptingFunctions.tokenizeCommandLine
This used to be a single-purpose private helper; it is now used by external clients, and for new purposes. Consequently, it deserves a less specific name.

Reviewed-by: attila, lagergren, sundar
2015-06-02 10:40:19 +02:00
Athijegannathan Sundararajan d45b3c1c94 8081609: engine.eval call from a java method which was called from a previous engine.eval results in wrong ScriptContext being used
Reviewed-by: attila, lagergren
2015-06-02 14:53:05 +05:30
Attila Szegedi f0e860829e 8081204: ListAdapter throws NPE when adding/removing elements outside of JS context
Reviewed-by: lagergren, sundar
2015-05-27 14:37:11 +03:00
Athijegannathan Sundararajan 32547d8a76 8081355: Test missed for the fix of JDK-8007456 backport to jdk8u-dev
Reviewed-by: hannesw, lagergren
2015-05-28 13:35:35 +05:30
Athijegannathan Sundararajan c908db1268 8081156: jjs "nashorn.args" system property is not effective when script arguments are passed
Reviewed-by: hannesw, lagergren
2015-05-27 22:18:51 +05:30
Attila Szegedi 99593500bb 8081062: ListAdapter should take advantage of JSObject
Reviewed-by: lagergren, sundar
2015-05-26 16:12:23 +02:00
Athijegannathan Sundararajan c253d7de88 8007456: Nashorn test framework @argument does not handle quoted strings
Reviewed-by: hannesw, lagergren
2015-05-27 16:52:49 +05:30
Attila Szegedi b37f82d708 8081015: Allow conversion of native arrays to Queue and Collection
Reviewed-by: hannesw, lagergren, sundar
2015-05-26 14:37:14 +02:00
Athijegannathan Sundararajan 8dae5cfddb 8079145: jdk.nashorn.internal.runtime.arrays.IntArrayData.convert assertion
Reviewed-by: jlaskey, hannesw
2015-05-21 21:51:48 +05:30
Athijegannathan Sundararajan 9131fc1574 8080848: delete of bound Java method property results in crash
Reviewed-by: hannesw, lagergren
2015-05-21 18:44:51 +05:30
Hannes Wallnöfer bc87ce8be6 8073846: Javascript for-in loop returned extra keys
Reviewed-by: attila, lagergren, sundar
2015-04-20 10:39:55 +02:00
Hannes Wallnöfer 80ccd805d7 8071928: Instance properties with getters returning wrong values
Reviewed-by: attila, lagergren, sundar
2015-04-20 10:40:42 +02:00
Attila Szegedi 0714685888 8078414: Don't create impossible converters for ScriptObjectMirror
Reviewed-by: hannesw, sundar
2015-05-15 15:40:57 +02:00
Attila Szegedi a236be5f43 Merge 2015-05-15 15:44:55 +02:00
Michael Haupt 28052a1aee 8080471: fix usage of replace and file separator in Nashorn tests
Two tests should use replace instead of replaceAll, and there is a typo in the usage of File.separator.

Reviewed-by: attila, hannesw
2015-05-15 10:21:48 +02:00
Attila Szegedi f58f60bfa7 8079424: code generator for discarded boolean logical operation has an extra pop
Reviewed-by: lagergren, sundar
2015-05-15 10:19:37 +02:00
Attila Szegedi 802bb42939 8080295: Need to adjust test output for 8067931
Reviewed-by: jlaskey, sundar
2015-05-13 10:01:37 -05:00
Hannes Wallnöfer d597148b1c 8047365: Very long function names break codegen
Reviewed-by: attila, lagergren
2015-05-14 15:35:38 +02:00
Hannes Wallnöfer 148a50bc78 8066214: Fuzzing bug: Object.prototype.toLocaleString(0)
Reviewed-by: attila, lagergren
2014-12-03 11:43:57 +01:00
Hannes Wallnöfer e25e8c81f0 8066215: Fuzzing bug: length valueOf bug
Reviewed-by: attila, lagergren
2014-12-15 12:08:36 +01:00
Hannes Wallnöfer e10e4a4634 8066226: Fuzzing bug: parameter counts differ in TypeConverterFactory
Reviewed-by: attila, sundar
2014-12-16 17:02:54 +01:00
Athijegannathan Sundararajan 1dfed587ed 8068985: Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
Reviewed-by: jlaskey, attila
2015-01-15 10:18:31 +05:30
Attila Szegedi 62b540c274 8066222: too strong assertion on function expression names
Reviewed-by: hannesw, lagergren
2014-12-03 16:31:15 +01:00
Athijegannathan Sundararajan b3086f8e9f 8080182: Array.prototype.sort throws IAE on inconsistent comparison
Reviewed-by: lagergren, hannesw
2015-05-13 12:45:14 +05:30
Athijegannathan Sundararajan 1d39072ec4 8079470: Misleading error message when explicit signature constructor is called with wrong arguments
Reviewed-by: jlaskey, hannesw
2015-05-06 20:04:42 +05:30
Attila Szegedi 0b5dd613a8 8079269: Optimistic rewrite in object literal causes ArrayIndexOutOfBoundsException
Reviewed-by: hannesw, lagergren
2015-05-05 18:35:29 +02:00
Attila Szegedi f5c1bdf2ea 8075090: Add tests for the basic failure of try/finally compilation
Reviewed-by: hannesw, lagergren
2015-03-16 11:00:07 +01:00
Hannes Wallnöfer 63942abe31 8078612: Persistent code cache should support more configurations
Reviewed-by: lagergren, attila
2015-05-05 14:30:00 +02:00
Hannes Wallnöfer 6b7550fe3b 8078049: Nashorn crashes when attempting to start TypeScript compiler
Reviewed-by: lagergren, attila
2015-05-05 14:23:43 +02:00
Hannes Wallnöfer 463df52120 8053905: Eager code generation fails for earley boyer with split threshold set to 1000
Reviewed-by: attila, lagergren
2015-04-27 12:50:21 +02:00
Hannes Wallnöfer c788feed9f 8066407: Function with same body not reparsed after SyntaxError
Reviewed-by: attila, lagergren
2015-04-27 12:27:33 +02:00
Athijegannathan Sundararajan 58d710017c 8078384: Test execution blocker: Nashorn testsuite failing due to compile error in jdk/nashorn/api/scripting/test/ScriptEngineTest.java
Reviewed-by: hannesw, jlaskey
2015-04-22 22:49:24 +05:30
Lana Steuck 44c8ad349b Merge 2015-04-16 16:01:11 -07:00
Hannes Wallnöfer e17fbda670 8067215: Disable dual fields when not using optimistic types
Reviewed-by: attila, lagergren
2015-04-10 14:18:31 +02:00
Hannes Wallnöfer ef5af807ad 8077955: Undeclared globals in eval code should not be handled as fast scope
Reviewed-by: lagergren, attila
2015-04-16 17:31:32 +02:00
Abhijit Saha dfec1af909 Merge 2015-04-09 22:59:28 -07:00
Athijegannathan Sundararajan 0a2989add5 8076972: Several nashorn tests failing
Reviewed-by: jlaskey, lagergren
2015-04-07 14:13:07 +05:30
Athijegannathan Sundararajan 2c164ba79d 8076646: nashorn tests should avoid using package names used by nashorn sources
Reviewed-by: hannesw, lagergren
2015-04-06 16:18:54 +05:30
Hannes Wallnöfer 6fb59f08dd 8075366: Slow scope access to global let/const does not work
Reviewed-by: sundar, attila, lagergren
2015-03-26 21:39:25 +01:00
Abhijit Saha 05b34d7eb8 Merge 2015-03-25 11:37:59 -07:00
Hannes Wallnöfer 03f5957bbc 8073868: Regex matching causes java.lang.ArrayIndexOutOfBoundsException: 64
Reviewed-by: attila, lagergren
2015-03-25 17:43:55 +01:00
Hannes Wallnöfer 789c8eb504 8075927: toNumber(String) accepts illegal characters
Reviewed-by: attila, sundar
2015-03-25 14:41:47 +01:00
Abhijit Saha 26da050d34 Merge 2015-03-18 18:32:19 -07:00
Marcus Lagergren 593ded2b55 8066217: ArrayBuffer constructor was erroneous with zero args
Reviewed-by: sundar, hannesw
2015-03-17 08:56:42 +01:00
Hannes Wallnöfer 1cd0f9c614 8074693: Different instances of same function use same allocator map
Reviewed-by: attila, lagergren
2015-03-11 11:08:22 +01:00
Hannes Wallnöfer 528927ada9 8074687: Add tests for JSON parsing of numeric keys
Reviewed-by: sundar, attila
2015-03-10 18:23:43 +01:00
Attila Szegedi d2fd2a4e0f 8035712: Restore some of the RuntimeCallSite specializations
Reviewed-by: hannesw, lagergren
2015-03-05 15:43:43 +01:00
Hannes Wallnöfer eedb8550f9 8073707: const re-assignment should not reported as a early error
Reviewed-by: sundar, attila
2015-02-27 14:33:47 +01:00
Athijegannathan Sundararajan b69cd0e539 8074021: Indirect eval fails when used as an element of an array or as a property of an object
Reviewed-by: attila, hannesw
2015-02-27 19:16:29 +05:30
Attila Szegedi 3b50dea003 8072426: Can't compare Java objects to strings or numbers
Reviewed-by: hannesw, lagergren, sundar
2015-02-20 15:47:28 +01:00
Hannes Wallnöfer 0fe3fb8f27 8074556: Functions should not share allocator maps
Reviewed-by: lagergren, sundar
2015-03-09 11:34:48 +01:00
Hannes Wallnöfer f61ef1cd71 8074545: Undefined object values in object literals with spill properties
Reviewed-by: lagergren, attila
2015-03-06 15:26:51 +01:00
Abhijit Saha 0ba2ff8d01 Merge 2015-02-18 13:49:57 -08:00
Attila Szegedi 2cfb1c6abd 8072596: Arrays.asList results in ClassCastException with a JS array
Reviewed-by: lagergren, sundar
2015-02-12 16:43:33 +01:00
Athijegannathan Sundararajan dfa05d3098 8072752: Add regression tests for 8071678 and 8071594
Reviewed-by: hannesw, attila
2015-02-09 14:40:56 +05:30
Athijegannathan Sundararajan a5c366011b 8071989: NashornScriptEngine returns javax.script.ScriptContext instance with insonsistent get/remove methods behavior for undefined attributes
Reviewed-by: attila, lagergren
2015-02-06 19:28:26 +05:30
Athijegannathan Sundararajan 7dcde98d95 8072595: nashorn should not use obj.getClass() for null checks
Reviewed-by: hannesw, attila
2015-02-05 19:08:00 +05:30
Hannes Wallnöfer b7aed1c5c8 8068872: Nashorn JSON.parse drops numeric keys
Reviewed-by: attila, lagergren
2015-02-05 14:47:28 +01:00
Hannes Wallnöfer 8f507059f5 8062141: Various performance issues parsing JSON
Reviewed-by: lagergren, attila
2015-02-05 14:42:14 +01:00
Attila Szegedi 620ccb1d45 8071991: Build errors in 8u-dev after backporting JDK-8067139 and JDK-8066232
Reviewed-by: hannesw, lagergren
2015-01-30 12:33:29 +01:00
Attila Szegedi 34d757e492 8067139: Finally blocks inlined incorrectly
Reviewed-by: hannesw, lagergren
2015-01-28 17:58:08 +01:00