Hannes Wallnöfer
86fefb1f46
8074687: Add tests for JSON parsing of numeric keys
...
Reviewed-by: sundar, attila
2015-03-10 18:23:43 +01:00
Athijegannathan Sundararajan
0ed9eb856c
8074671: Nashorn Parser API
...
Reviewed-by: darcy, forax, attila, hannesw
2015-03-09 20:14:10 +05:30
Hannes Wallnöfer
d6aef89288
8074556: Functions should not share allocator maps
...
Reviewed-by: lagergren, sundar
2015-03-09 11:34:48 +01:00
Hannes Wallnöfer
e1ac257862
8074545: Undefined object values in object literals with spill properties
...
Reviewed-by: lagergren, attila
2015-03-06 15:26:51 +01:00
Attila Szegedi
4a3782b060
8035712: Restore some of the RuntimeCallSite specializations
...
Reviewed-by: hannesw, lagergren
2015-03-05 15:43:43 +01:00
Hannes Wallnöfer
74c88b0515
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
ffd434caa1
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 18:03:18 +05:30
Attila Szegedi
0a6d13699b
8072426: Can't compare Java objects to strings or numbers
...
Reviewed-by: hannesw, lagergren, sundar
2015-02-20 15:47:28 +01:00
Attila Szegedi
8d084dc298
8072596: Arrays.asList results in ClassCastException with a JS array
...
Reviewed-by: lagergren, sundar
2015-02-12 16:43:33 +01:00
Hannes Wallnöfer
0e498bf1aa
8068872: Nashorn JSON.parse drops numeric keys
...
Reviewed-by: attila, lagergren
2015-02-05 14:47:28 +01:00
Hannes Wallnöfer
d4e6353375
8062141: Various performance issues parsing JSON
...
Reviewed-by: lagergren, attila
2015-02-05 14:42:14 +01:00
Attila Szegedi
d09ec5b3e1
8067139: Finally blocks inlined incorrectly
...
Reviewed-by: hannesw, lagergren
2015-01-28 17:58:08 +01:00
Athijegannathan Sundararajan
e7f1a050d3
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
4935529d4d
8069002: NPE on invoking null (8068889 regression)
...
Reviewed-by: jlaskey, sundar
2015-01-14 18:25:01 +01:00
Attila Szegedi
242419de96
8068573: POJO setter using [] syntax throws an exception
...
Reviewed-by: lagergren, jlaskey
2015-01-14 15:54:18 +01:00
Attila Szegedi
faf445e144
8068580: make JavaAdapterFactory.isAutoConvertibleFromFunction more robust
...
Reviewed-by: lagergren, sundar
2015-01-12 11:29:42 +01:00
Attila Szegedi
88c5d41ddc
8067774: Use a stack of types when calculating local variable types
...
Reviewed-by: lagergren, sundar
2014-12-18 12:10:10 +01:00
Athijegannathan Sundararajan
ae38f75625
8067854: bound java static method throws NPE when 'null' is used for this argument
...
Reviewed-by: attila, hannesw
2014-12-18 16:33:33 +05:30
Hannes Wallnöfer
36816b6c0a
8066226: Fuzzing bug: parameter counts differ in TypeConverterFactory
...
Reviewed-by: attila, sundar
2014-12-16 17:02:54 +01:00
Hannes Wallnöfer
49252804f2
8062030: Nashorn bug retrieving array property after key string concatenation
...
Reviewed-by: sundar, lagergren, attila
2014-12-15 12:32:34 +01:00
Hannes Wallnöfer
b7637531a9
8066215: Fuzzing bug: length valueOf bug
...
Reviewed-by: attila, lagergren
2014-12-15 12:08:36 +01:00
Hannes Wallnöfer
a7a2c82780
8067219: NPE in ScriptObject.clone() when running with object fields
...
Reviewed-by: attila, lagergren
2014-12-11 19:15:47 +01:00
Hannes Wallnöfer
c2cd1906de
8066669: dust.js performance regression caused by primitive field conversion
...
Reviewed-by: attila, sundar
2014-12-11 15:39:58 +01:00
Hannes Wallnöfer
7d75c8da1a
8066932: __noSuchMethod__ binds to this-object without proper guard
...
Reviewed-by: attila, lagergren
2014-12-11 12:01:17 +01:00
Attila Szegedi
13c5c04470
8066221: anonymous function statement name clashes with another symbol
...
Reviewed-by: lagergren, sundar
2014-12-10 18:28:41 +01:00
Athijegannathan Sundararajan
34673eaf92
8067136: BrowserJSObjectLinker does not handle call on JSObjects
...
Reviewed-by: attila, hannesw, lagergren
2014-12-10 19:42:01 +05:30
Attila Szegedi
3330ff38e9
8066236: RuntimeNode forces copy creation on visitation
...
Reviewed-by: hannesw, lagergren
2014-12-10 12:30:48 +01:00
Attila Szegedi
22573e0db4
8066224: fixes for folding a constant-test ternary operator
...
Reviewed-by: hannesw, lagergren
2014-12-10 11:55:25 +01:00
Attila Szegedi
47e744920e
8066225: NPE in MethodEmitter with duplicate integer switch cases
...
Reviewed-by: hannesw, lagergren
2014-12-10 11:55:04 +01:00
Attila Szegedi
d3b4347330
8066227: CodeGenerator load unitialized slot
...
Reviewed-by: hannesw, lagergren
2014-12-08 15:14:11 +01:00
Attila Szegedi
1284542fb3
8066230: Undefined object type assertion when computing TypeBounds
...
Reviewed-by: hannesw, lagergren
2014-12-08 15:13:16 +01:00
Athijegannathan Sundararajan
f42d5e85e3
8066749: jdk9-dev/nashorn ant build fails with jdk9 modular image build as JAVA_HOME
...
Reviewed-by: lagergren, hannesw
2014-12-05 14:35:00 +05:30
Athijegannathan Sundararajan
369861355d
8066696: test/script/nosecurity/JDK-8055034.js -Xbootclasspath option is wrong
...
Reviewed-by: attila, lagergren
2014-12-04 21:52:58 +05:30
Athijegannathan Sundararajan
949112fab2
8066683: nashorn test failures after modular image changes
...
Reviewed-by: attila, jlaskey
2014-12-04 20:40:48 +05:30
Chris Hegarty
2dbed37b5e
Merge
2014-12-03 17:55:36 +00:00
Attila Szegedi
29eb5ce73d
8066232: problem with conditional catch compilation
...
Reviewed-by: hannesw, lagergren
2014-12-03 16:31:39 +01:00
Attila Szegedi
deabb040d5
8066222: too strong assertion on function expression names
...
Reviewed-by: hannesw, lagergren
2014-12-03 16:31:15 +01:00
Chris Hegarty
174f2cfc80
8049367: Modular Run-Time Images
...
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:26:07 +00:00
Hannes Wallnöfer
e3a64209bc
8066214: Fuzzing bug: Object.prototype.toLocaleString(0)
...
Reviewed-by: attila, lagergren
2014-12-03 11:43:57 +01:00
Andreas Gabrielsson
beb05bda0d
8066238: AssertionError in parser when syntax errors appeared in non finished Blocks
...
Reviewed-by: hannesw, sundar, lagergren
2014-12-01 13:17:24 +01:00
Hannes Wallnöfer
7b35db48f7
8057980: let & const: remaining issues with lexical scoping
...
Reviewed-by: lagergren, attila
2014-11-27 16:42:53 +01:00
Attila Szegedi
e79371a0bc
8051778: support bind on all Nashorn callables
...
Reviewed-by: hannesw, lagergren
2014-11-27 13:04:46 +01:00
Hannes Wallnöfer
b5ae347f9c
8057691: Nashorn: let & const declarations are not shared between scripts
...
Reviewed-by: lagergren, attila
2014-11-21 17:44:57 +01:00
Marcus Lagergren
ad0645eb58
8049407: Endianness problem with TypedArrays
...
Reviewed-by: hannesw, sundar
2014-11-17 14:36:15 +01:00
Sergey Lugovoy
42c6853ed1
8062638: RuntimeException when run command from js with -scripting on Cygwin
...
Reviewed-by: hannesw, lagergren
2014-11-17 14:57:28 +03:00
Marcus Lagergren
ebdc046949
8062937: Need to block constant assumption for index setters and defineOwnProperty, not just delete
...
Reviewed-by: hannesw, jlaskey
2014-11-13 16:59:03 +01:00
Marcus Lagergren
434b1899be
8035312: Various array and ScriptObject length issues for non writable length fields
...
Reviewed-by: hannesw, attila
2014-11-12 14:12:01 +01:00
Attila Szegedi
c0e0171008
8062799: Binary logical expressions can have numeric types
...
Reviewed-by: lagergren, sundar
2014-11-11 17:27:44 +01:00
Hannes Wallnöfer
ed9bce193a
8047365: Very long function names break codegen
...
Reviewed-by: attila, lagergren
2014-11-06 13:17:47 +01:00
Hannes Wallnöfer
0c4006a654
8062624: java.lang.String methods not available on concatenated strings
...
Reviewed-by: lagergren, attila
2014-11-06 13:15:52 +01:00
Marcus Lagergren
fe0da815c5
8057825: Bug in apply specialization - if an apply specialization that is available doesn't fit, a new one wouldn't be installed, if the new code generated as a specialization didn't manage to do the apply specialization. Basically changing a conditional to an unconditional
...
Reviewed-by: attila, hannesw
2014-11-05 12:34:06 +01:00
Marcus Lagergren
75d37c8e9c
8061959: ArrayBuffer lacked static isViewMethod
...
Reviewed-by: attila, sundar
2014-11-03 13:58:52 +01:00
Marcus Lagergren
f27f5dd651
8062381: Wrong index was used for linking charCodeAt specializations
...
Reviewed-by: attila, hannesw
2014-11-03 12:34:39 +01:00
Attila Szegedi
5d2bb4cd2d
8059443: NPE when unboxing return values
...
Reviewed-by: lagergren, sundar
2014-11-03 09:49:52 +01:00
Hannes Wallnöfer
44b0af6eb9
8062583: Throwing object with error prototype causes error proto to be caught
...
Reviewed-by: sundar, jlaskey
2014-10-31 16:50:31 +01:00
Hannes Wallnöfer
cd2c4bfd1d
8062132: Nashorn incorrectly binds this for constructor created by another function
...
Reviewed-by: jlaskey, sundar
2014-10-31 10:06:52 +01:00
Athijegannathan Sundararajan
c92cca11f6
8062216: [nashorn] regresion test failure with TimeZone
...
Reviewed-by: hannesw, lagergren
2014-10-28 17:22:17 +05:30
Athijegannathan Sundararajan
b7956c76bc
8062024: Issue with date.setFullYear when time other than midnight
...
Reviewed-by: jlaskey, lagergren
2014-10-27 17:54:00 +05:30
Marcus Lagergren
5f5c28bf63
8061391: concat as a builtin optimistic form, had to remove NoTypedArrayData and replace it, as we throw away a lot of optimistic link opportunities with NoTypedArrayData not being Continuous
...
Reviewed-by: attila, hannesw
2014-10-23 15:19:00 +04:00
Attila Szegedi
e170fafd7c
8058610: must not let long operations overflow
...
Reviewed-by: hannesw, jlaskey, lagergren
2014-10-21 14:27:49 +02:00
Attila Szegedi
6da7daa4c2
8061113: Boolean used as optimistic call return type
...
Reviewed-by: hannesw, sundar
2014-10-16 11:34:31 +02:00
Athijegannathan Sundararajan
6427d424c8
8060688: Nashorn: Generated script class name fails --verify-code for names with special chars
...
Reviewed-by: jlaskey, hannesw
2014-10-15 19:50:03 +05:30
Athijegannathan Sundararajan
2d6eed916f
8050977: Java8 Javascript Nashorn exception: no current Global instance for nashorn
...
Reviewed-by: attila, lagergren, hannesw
2014-10-13 23:38:49 +05:30
Hannes Wallnöfer
4fcc6c8f4f
8060011: Concatenating an array and converting it to Java gives wrong result
...
Reviewed-by: lagergren, attila
2014-10-13 17:16:32 +02:00
Athijegannathan Sundararajan
f2913f0270
8060101: AssertionError: __noSuchProperty__ placeholder called from NativeJavaImporter
...
Reviewed-by: attila, jlaskey
2014-10-10 17:59:22 +05:30
Hannes Wallnöfer
4f8e9a09e2
8059236: Memory leak when executing octane pdfjs with optimistic typing
...
Reviewed-by: jlaskey, attila
2014-10-08 15:50:36 +02:00
Marcus Lagergren
da0b4cb7df
8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
...
Reviewed-by: attila, hannesw, sundar
2014-09-25 15:53:47 +02:00
Sergey Lugovoy
643e8d87e6
8057779: Tests failed on Windows when in output contains path to script
...
Reviewed-by: sundar, lagergren, hannesw
2014-09-23 15:58:44 +04:00
Attila Szegedi
00019f9c03
8058561: NPE in LocalVariableTypesCalculator
...
Reviewed-by: lagergren, sundar
2014-09-22 14:46:04 +02:00
Hannes Wallnöfer
62f4b355b5
8047764: Indexed or polymorphic set on global affects Object.prototype
...
Reviewed-by: lagergren, attila
2014-09-22 13:28:28 +02:00
Sergey Lugovoy
3d7f4564c6
8057035: Some tests failed using java.awt.Color on Solaris without X11 libraries
...
Reviewed-by: lagergren
2014-09-17 16:44:23 +04:00
Athijegannathan Sundararajan
bddf81075a
8058615: Overload resolution ambiguity involving ConsString
...
Reviewed-by: lagergren, hannesw
2014-09-17 15:02:42 +05:30
Athijegannathan Sundararajan
4dd455e254
8058545: With strict mode, bean property assignment of a non-existent property should result in TypeError
...
Reviewed-by: hannesw, lagergren
2014-09-16 17:04:35 +05:30
Hannes Wallnöfer
9352e3ed55
8056978: ClassCastException: cannot cast jdk.nashorn.internal.scripts.JO*
...
Reviewed-by: jlaskey, sundar
2014-09-15 17:51:11 +02:00
Athijegannathan Sundararajan
8c0e33df17
8058422: Users should be able to overwrite "context" and "engine" variables
...
Reviewed-by: lagergren, attila
2014-09-15 15:18:13 +05:30
Hannes Wallnöfer
1e000f777d
8057743: Single quotes must be escaped in message resource file
...
Reviewed-by: attila, lagergren, sundar
2014-09-12 11:00:51 +02:00
Hannes Wallnöfer
26d9d19841
8058179: Global constants get in the way of self-modifying properties
...
Reviewed-by: attila, jlaskey, sundar, lagergren
2014-09-11 17:23:02 +02:00
Attila Szegedi
f8b399466b
8057930: remove eval ID
...
Reviewed-by: hannesw, sundar
2014-09-09 15:33:58 +02:00
Attila Szegedi
c6dd744ff0
8057148: Skip nested functions on reparse
...
Reviewed-by: hannesw, lagergren
2014-09-08 18:40:58 +02:00
Sergey Lugovoy
5c841f8049
8057678: Tests for let and const keywords in Nashorn
...
Reviewed-by: hannesw, lagergren
2014-09-08 15:37:50 +04:00
Athijegannathan Sundararajan
f7042614f7
8057742: ant clean test should not fail if one or more external test suites are missing
...
Reviewed-by: lagergren, hannesw
2014-09-08 15:51:27 +05:30
Attila Szegedi
6e6817cf2b
8056129: AtomicInteger is treated as primitive number with optimistic compilation
...
Reviewed-by: jlaskey, lagergren
2014-09-04 18:57:14 +02:00
Hannes Wallnöfer
7ecdd47620
8051889: Implement block scoping in symbol assignment and scope computation
...
Reviewed-by: attila, lagergren
2014-09-04 15:37:14 +02:00
Marcus Lagergren
6db003872b
8057019: Various problems with extra arguments to applies
...
Reviewed-by: attila, hannesw, jlaskey
2014-09-04 10:52:42 +02:00
Sergey Lugovoy
d23eaa4432
8054343: Nashorn: Some tests fails on windows with AccessControlException
...
Reviewed-by: lagergren, sundar
2014-09-01 17:34:37 +04:00
Athijegannathan Sundararajan
b5af5f7eae
8056123: Anonymous function statements leak internal function names into global scope
...
Reviewed-by: hannesw, attila
2014-08-27 14:27:56 +05:30
Sergey Lugovoy
b04e423d8d
8055811: Tests for Nashorn ClassFilter Support
...
Reviewed-by: sundar, attila
2014-08-26 13:26:15 +04:00
Attila Szegedi
4aeaccdf69
8055870: iteration fails if index var is not used
...
Reviewed-by: hannesw, lagergren
2014-08-25 22:36:05 +02:00
Athijegannathan Sundararajan
ed9b4d01ec
8055899: Two nashorn tests fail in 8u40 nightly build with ClassNotFoundException
...
Reviewed-by: jlaskey, lagergren
2014-08-25 20:26:53 +05:30
Athijegannathan Sundararajan
cb277efc44
8055830: JDK-8015969.js is silently failing
...
Reviewed-by: lagergren, jlaskey, hannesw
2014-08-22 22:50:38 +05:30
Athijegannathan Sundararajan
9700f06b1b
8055796: JSObject and browser JSObject linkers should provide fallback to call underlying Java methods directly
...
Reviewed-by: attila, hannesw
2014-08-22 15:47:28 +05:30
Athijegannathan Sundararajan
017d321931
8055762: Nashorn misses linker for netscape.javascript.JSObject instances
...
Reviewed-by: lagergren, jlaskey
2014-08-21 20:06:48 +05:30
Athijegannathan Sundararajan
16bef5aa2a
8050078: Nashorn ClassFilter Support
...
Reviewed-by: lagergren, hannesw
2014-08-20 20:04:19 +05:30
Attila Szegedi
9227b18d8a
8055199: Tidy up Nashorn codebase for code standards (August 2014)
...
Reviewed-by: hannesw, lagergren
2014-08-15 17:30:49 +02:00
Athijegannathan Sundararajan
983051a456
8055139: test/script/trusted/JDK-8055107.js fails with access control exception
...
Reviewed-by: lagergren, attila, jlaskey
2014-08-14 20:14:54 +05:30
Athijegannathan Sundararajan
62e846549d
8055107: Extension directives to turn on callsite profiling, tracing, AST print and other debug features locally
...
Reviewed-by: attila, jlaskey
2014-08-14 18:54:54 +05:30
Athijegannathan Sundararajan
a98a0d19e1
8055034: jjs exits interactive mode if exception was thrown when trying to print value of last evaluated expression
...
Reviewed-by: jlaskey, attila
2014-08-13 21:03:37 +05:30
Athijegannathan Sundararajan
f2ebff72ba
8054993: type info cache may be disabled for test262 and tests explicitly changing that property should use @fork
...
Reviewed-by: lagergren, hannesw
2014-08-13 15:00:24 +05:30
Hannes Wallnöfer
f71b48d575
8044851: nashorn properties leak memory
...
Reviewed-by: attila, jlaskey, lagergren
2014-08-12 13:22:05 +02:00
Athijegannathan Sundararajan
a603833464
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
...
Reviewed-by: jlaskey, hannesw, attila
2014-08-11 20:35:21 +05:30
Hannes Wallnöfer
a8ece5cffc
8043956: Make code caching work with optimistic typing and lazy compilation
...
Reviewed-by: attila, lagergren
2014-08-08 12:50:46 +02:00
Attila Szegedi
9d38762126
8046026: CompiledFunction.relinkComposableInvoker assert is being hit
...
Reviewed-by: hannesw, jlaskey, sundar
2014-08-07 11:06:45 +02:00
Attila Szegedi
5d2615f1cb
8051439: Wrong type calculated for ADD operator with undefined operand
...
Reviewed-by: jlaskey, sundar
2014-08-06 11:02:14 +02:00
Attila Szegedi
1eb6e5cb42
8044786: Some tests fail with non-optimistic compilation
...
Reviewed-by: hannesw, jlaskey
2014-08-06 10:42:46 +02:00
Athijegannathan Sundararajan
a55d1b4b75
8053908: jdeps is not PATH on Mac, results in ant clean test failure on Mac
...
Reviewed-by: hannesw, jlaskey
2014-07-31 18:14:46 +05:30
Sergey Lugovoy
ce3b922118
8049318: Test hideLocationProperties.js fails on Window due to backslash in path
...
Reviewed-by: lagergren, sundar
2014-07-30 16:49:02 +04:00
Marcus Lagergren
5c93b19922
8048869: Reduce compile time by about 5% by removing the Class.casts from the AST nodes
...
Removed the native casts that slow down the compiler unnecessarily. I also modified the compile-octane harness so that it can run with --verbose and --iterations flags so that you can run the compiler for an arbitrary time, gathering a mission control executing profile.
Reviewed-by: attila, jlaskey
2014-07-29 14:21:45 -07:00
Athijegannathan Sundararajan
4323d2ade5
8050964: OptimisticTypesPersistence.java should use java.util.Date instead of java.sql.Date
...
Reviewed-by: jlaskey
2014-07-17 16:47:06 +05:30
Athijegannathan Sundararajan
8a77a443db
8050432: javax.script.filename variable should not be enumerable with nashorn engine's ENGINE_SCOPE bindings
...
Reviewed-by: jlaskey
2014-07-15 16:54:01 +05:30
Attila Szegedi
a9b421dd42
8047067: all eval arguments need to be copied in Lower
...
Reviewed-by: lagergren, sundar
2014-07-08 13:13:31 +02:00
Athijegannathan Sundararajan
ca212c0d9e
8049086: Minor API convenience functions on "Java" object
...
Reviewed-by: attila, hannesw
2014-07-04 15:56:53 +05:30
Athijegannathan Sundararajan
14eb01cb47
8049242: Explicit constructor overload selection should work with StaticClass as well
...
Reviewed-by: jlaskey, attila
2014-07-03 23:03:37 +05:30
Attila Szegedi
d9cdc6efec
8047166: 'do with({}) break ; while(0);' crashes in CodeGenerator
...
Reviewed-by: hannesw, jlaskey
2014-07-03 16:15:33 +02:00
Athijegannathan Sundararajan
27ba0956b6
8043232: Index selection of overloaded java new constructors
...
Reviewed-by: attila, hannesw, jlaskey
2014-07-02 18:10:31 +05:30
Athijegannathan Sundararajan
81f8f93225
8047359: large string size RangeError should be thrown rather than reporting negative length
...
Reviewed-by: hannesw, attila
2014-07-01 17:37:39 +05:30
Hannes Wallnöfer
3e0fd99223
8048586: String concatenation with optimistic types is slow
...
Reviewed-by: lagergren, attila
2014-06-30 17:31:28 +02:00
Athijegannathan Sundararajan
51aad86e6b
8048718: JSON.parse('{"0":0, "64":0}') throws ArrayindexOutOfBoundsException
...
Reviewed-by: lagergren, hannesw, attila
2014-06-30 20:23:16 +05:30
Athijegannathan Sundararajan
4b428d5833
8046013: TypeError: Cannot apply "with" to non script object
...
Reviewed-by: lagergren, hannesw
2014-06-27 21:54:16 +05:30
Marcus Lagergren
8f69a3e4a8
8048505: ScriptingFunctions.readFully couldn't handle file names represented as ConsStrings
...
Reviewed-by: sundar, hannesw
2014-06-27 10:47:44 +02:00
Attila Szegedi
3168df50f5
8047371: local variable declaration in TypeEvaluator should use ScriptObject.addOwnProperty instead of .set
...
Reviewed-by: jlaskey, lagergren
2014-06-26 15:36:15 +02:00
Attila Szegedi
9dde0bfa35
8047357: More precise synthetic return + unreachable throw
...
Reviewed-by: lagergren, sundar
2014-06-26 13:12:32 +02:00
Hannes Wallnöfer
ccb4ecb339
8048079: Persistent code store is broken after optimistic types merge
...
Reviewed-by: sundar, jlaskey, attila
2014-06-25 14:36:24 +02:00
Athijegannathan Sundararajan
dee1364e7c
8048071: eval within 'with' statement does not use correct scope if with scope expression has a copy of eval
...
Reviewed-by: hannesw, jlaskey
2014-06-25 17:08:47 +05:30
Athijegannathan Sundararajan
566786aba6
8047959: bindings created for declarations in eval code are not mutable
...
Reviewed-by: jlaskey, attila
2014-06-24 19:43:44 +05:30
Athijegannathan Sundararajan
90b667d865
8047728: (function(x){var o={x:0}; with(o){delete x} return o.x})() evaluates to 0 instead of undefined
...
Reviewed-by: jlaskey, hannesw, attila
2014-06-23 21:23:53 +05:30
Attila Szegedi
7aa808a993
8046905: apply on apply is broken
...
Reviewed-by: hannesw, lagergren
2014-06-23 10:59:33 +02:00
Attila Szegedi
f4c68a9cfc
8046921: Deoptimization type information peristence
...
Reviewed-by: hannesw, lagergren
2014-06-20 12:25:00 +02:00
Athijegannathan Sundararajan
2bdfb1233c
8047369: Add regression tests for passing test cases of JDK-8024971
...
Reviewed-by: hannesw, jlaskey
2014-06-19 20:36:03 +05:30
Marcus Lagergren
18ac28e76f
8047078: Fuzzing bug discovered when ArrayLiteralNodes weren't immutable
...
Reviewed-by: attila, sundar
2014-06-19 10:46:31 +02:00
Athijegannathan Sundararajan
186990579d
8047057: Add a regression test for the passing test cases from JDK-8042304
...
Reviewed-by: lagergren, attila
2014-06-17 18:23:35 +05:30
Athijegannathan Sundararajan
ff164ddca5
8047035: (function() "hello")() crashes in Lexer with jdk9
...
Reviewed-by: lagergren, hannesw, attila
2014-06-17 15:55:39 +05:30
Athijegannathan Sundararajan
5de5a29808
8044798: API for debugging Nashorn
...
Reviewed-by: jlaskey, hannesw
2014-06-11 08:53:35 +05:30
Attila Szegedi
fb404de88f
8038413: NPE in unboxInteger
...
Reviewed-by: jlaskey, sundar
2014-06-04 20:43:37 +02:00
Athijegannathan Sundararajan
a5af8cb53e
8044695: __stack__ becomes visible in Error properties
...
Reviewed-by: lagergren, jlaskey, attila
2014-06-04 19:01:24 +05:30
Attila Szegedi
52ac2452d0
8044502: Get rid of global optimistic flag
...
Reviewed-by: lagergren, sundar
2014-06-04 14:32:23 +02:00
Attila Szegedi
5ec014a881
8044638: Tidy up Nashorn codebase for code standards
...
Reviewed-by: lagergren, sundar
2014-06-04 13:08:57 +02:00
Athijegannathan Sundararajan
7898fee89e
8044750: megamorphic getter for scope objects does not call __noSuchProperty__ hook
...
Reviewed-by: attila, lagergren, hannesw
2014-06-04 13:55:21 +05:30
Attila Szegedi
52e0363faa
8044534: Constant folding for unary + should produce int for boolean literals
...
Reviewed-by: lagergren, sundar
2014-06-03 12:05:42 +02:00
Attila Szegedi
938ab83ff7
8044533: Deoptimizing negation produces wrong result for zero
...
Reviewed-by: lagergren, sundar
2014-06-03 12:04:36 +02:00
Athijegannathan Sundararajan
dba2bf3f02
8044520: Nashorn cannot execute node.js's express module
...
Reviewed-by: hannesw, lagergren
2014-06-03 14:13:03 +05:30
Athijegannathan Sundararajan
95ad9113d9
8044612: StringIndexOutOfBoundException in NativeRegExp.appendReplacement
...
Reviewed-by: hannesw, lagergren
2014-06-03 13:57:52 +05:30
Attila Szegedi
2ff2ad2750
Merge
2014-06-02 17:36:43 +02:00
Attila Szegedi
9fb4c3accc
Merge
2014-05-28 16:53:43 +02:00
Marcus Lagergren
d4287c2288
8044102: Ensure bechmark exclude list for Octane benchmarks is in only one place, project.properties, and fix benchmark harness
...
Reviewed-by: attila, sundar
2014-05-28 13:58:46 +02:00
Marcus Lagergren
a6e90a4ba3
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
...
Reviewed-by: jlaskey, sundar
2014-05-27 21:25:07 +02:00
Athijegannathan Sundararajan
f7940fec73
8043930: TypeError when attemping to create an instance of non-public class could be better
...
Reviewed-by: attila, lagergren
2014-05-26 15:48:25 +05:30
Hannes Wallnöfer
67d65fd0df
8030202: Nashorn: Multiple RegExp#ignoreCase issues
...
Reviewed-by: sundar, jlaskey
2014-05-22 17:51:56 +02:00
Marcus Lagergren
b4b7b4e53d
8043632: Parallelize class installation and various script fixes
...
Reviewed-by: sundar, attila
2014-05-21 16:12:40 +02:00
Marcus Lagergren
cc1275a3bf
8043611: Move timing dependent benchmark for apply2call specialization to currently_failing. It is dependent that nothing takes machine time when doing the two runs, causing spurious assertions. Suggest running octane.raytrace manually instead to verify that this works, or incorporating it in the nightly test suite
...
Reviewed-by: sundar, attila
2014-05-21 16:12:40 +02:00
Marcus Lagergren
3d7f88fb31
8043504: Octane test harness was missing argument to print_always at one callsite, causing erroneous logging
...
Reviewed-by: sundar, attila
2014-05-20 10:40:28 +02:00
Athijegannathan Sundararajan
db62a418b3
8043443: Test framework changes to run script tests without security manager
...
Reviewed-by: attila
2014-05-20 08:32:09 +05:30
Attila Szegedi
cfbed730b7
8043431: Fix yet another corner case of JDK-8041995
...
Reviewed-by: hannesw, lagergren
2014-05-19 18:24:12 +02:00
Marcus Lagergren
26308e1cd6
8034206: Make parts of code pipeline reusable in order to facilitate faster warmup and faster lazy compilation
...
Reviewed-by: hannesw, attila
2014-05-19 15:29:42 +02:00
Attila Szegedi
b0873269dc
8043235: Type-based optimizations interfere with continuation methods
...
Reviewed-by: jlaskey, lagergren
2014-05-15 15:28:51 +02:00
Attila Szegedi
4fd3436709
8043133: Fix corner cases of JDK-8041995
...
Reviewed-by: hannesw, lagergren
2014-05-14 17:05:08 +02:00
Attila Szegedi
64fd9c191a
8042118: Separate types from symbols
...
Reviewed-by: hannesw, lagergren
2014-05-13 11:30:40 +02:00
Athijegannathan Sundararajan
f96b4d2e4e
8042364: Make __proto__ ES6 draft compliant
...
Reviewed-by: jlaskey, lagergren, attila
2014-05-06 17:54:15 +05:30
Hannes Wallnöfer
77834a008e
8041998: RegExp implementation is not thread-safe
...
Reviewed-by: lagergren, sundar, attila
2014-05-06 12:38:12 +02:00
Matherey Nunez
31c5e7065a
8037572: Add more test cases to check static types
...
Reviewed-by: attila, lagergren
2014-05-05 14:17:20 +02:00
Marcus Lagergren
2f01820f6d
8041625: AccessorProperty currentType must only by Object.class when non-primitive, and scoping followup problem for lazily generated with bodies
...
Reviewed-by: jlaskey, attila
2014-05-02 18:22:29 +02:00
Athijegannathan Sundararajan
7579bb9eb4
8027933: Add --const-as-var option
...
Reviewed-by: jlaskey, hannesw
2014-05-02 19:15:59 +05:30
Matherey Nunez
e9e18d5614
8038398: OptimisticRecompilationTest fails on staging repo nashorn/jdk9/nashorn due to test framework
...
Reviewed-by: attila, lagergren
2014-04-29 16:00:53 +02:00
Marcus Lagergren
a3f88441db
8041995: Problems when loading tree expressions with several optimistic program points when optimistically initializing ObjectNodes
...
Reviewed-by: jlaskey, attila
2014-04-28 16:37:36 +02:00
Hannes Wallnöfer
60a0f257df
8040078: Avoid repeated reading of source for cached loads
...
Reviewed-by: jlaskey, lagergren
2014-04-25 16:34:17 +02:00
Marcus Lagergren
6163a42a8e
8033105: Make sure Nashorn test harness can run zlib benchmark
...
Reviewed-by: attila, hannesw
2014-04-22 14:09:46 +02:00
Matherey Nunez
af27b4200d
8040655: When processing a RewriteException debug object, the return value has already been reset to null. We need to catch this value before that
...
Reviewed-by: attila, lagergren
2014-04-18 21:24:34 +02:00
Marcus Lagergren
89f65d6006
8040089: Apply to call transform was incomplete. Now passes all tests and performance is back
...
Reviewed-by: hannesw, attila, sundar, jlaskey
2014-04-17 20:01:19 +02:00
Marcus Lagergren
e83ae85105
Merge
2014-04-11 16:52:56 +02:00
Marcus Lagergren
8692f48723
8039746: Transform applies to calls wherever possible, for ScriptFunctions and JSObjects
...
Reviewed-by: hannesw, attila, sundar, jlaskey
2014-04-11 16:52:14 +02:00
Attila Szegedi
67871d3371
8040024: BranchOptimizer produces bad code for NaN FP comparison
...
Reviewed-by: jlaskey, lagergren
2014-04-11 16:40:06 +02:00
Marcus Lagergren
d12e5e7d29
8039044: Expand undefined intrinsics for all commutative combinators of scrict undefined checks
...
Reviewed-by: jlaskey, hannesw
2014-04-02 10:52:39 +02:00
Marcus Lagergren
fd8e5653a0
8038945: Simplify strict undefined checks
...
Reviewed-by: jlaskey, hannesw
2014-04-01 16:12:38 +02:00
Marcus Lagergren
1584dc799c
8038799: Guard and unbox boxed primitives types on setting them in Properties to avoid megamorphisism
...
Reviewed-by: attila, jlaskey
2014-04-01 11:19:32 +02:00
Marcus Lagergren
379d9f239f
8027043: Turn global accesses into MethodHandle.constant, with one chance of reassignment, e.g. x = value occuring once in the global scope is ok, twice is not
...
Reviewed-by: attila, sundar, jlaskey
2014-03-31 14:13:34 +02:00
Marcus Lagergren
f6722c9a3f
8038406: Testability: as a first step of moving loggers away from the process global space, the Debug object now supports logging POJOs from log entries as an event queue, which can be introspected from test scripts. This is way better than screen scraping brittle and subject-to-change log output
...
Reviewed-by: attila, hannesw, sundar
2014-03-27 11:45:54 +01:00
Attila Szegedi
0cbec476dd
8037534: Use scope types to determine optimistic types
...
Reviewed-by: hannesw, lagergren
2014-03-24 18:41:06 +01:00
Attila Szegedi
85bc811235
Merge
2014-03-21 17:52:03 +01:00
Matherey Nunez
ba6fce6273
8036986: Test should check that correctly type is returned running with optimistic. If optimistic assumption was wrong we should get the right one
...
This uses the inspection framework for generated code to ensure optimisim.
Reviewed-by: attila, lagergren
2014-03-14 14:27:32 +01:00
Athijegannathan Sundararajan
572d581262
8015958: DataView constructor is not defined
...
Reviewed-by: attila, hannesw, lagergren
2014-03-13 15:58:24 +05:30
Hannes Wallnöfer
6f1436baa2
8034055: delete on global object not properly guarded
...
Reviewed-by: sundar, lagergren
2014-03-12 16:33:28 +01:00
Marcus Lagergren
8d4fc394e0
8035836: Array performance improvements
...
Implement typed arrays with native byte buffers and do fast linking for all continuous arrays
Reviewed-by: attila, jlaskey, sundar, hannesw
2014-03-03 11:24:44 +01:00
Attila Szegedi
e9e7dd2ec1
8035820: Optimistic recompilation
...
Co-authored-by: Marcus Lagergren <marcus.lagergren@oracle.com>
Reviewed-by: hannesw, jlaskey, sundar
2014-02-26 13:17:57 +01:00
Athijegannathan Sundararajan
18489cc7a4
8030197: Nashorn: Object.defineProperty() can be lured to change fixed NaN property
...
Reviewed-by: attila, jlaskey
2014-02-25 18:56:10 +05:30
Hannes Wallnöfer
2194adb36b
8030200: Wrong result for Number.prototype.toString() for certain radix/inputs
...
Reviewed-by: sundar, jlaskey, lagergren
2014-04-14 17:45:05 +02:00
Hannes Wallnöfer
08bec4bee8
8030199: Nashorn: Uint8ClampedArray - Incorrect ToUint8Clamp implementation
...
Reviewed-by: sundar, jlaskey, lagergren
2014-04-14 17:43:38 +02:00
Athijegannathan Sundararajan
319aa4c4c5
8039387: Nashorn supports indexed access of List elements, but length property is not supported
...
Reviewed-by: lagergren, jlaskey
2014-04-07 21:57:33 +05:30
Athijegannathan Sundararajan
79fba7993d
8039047: Parser accepts conditional catch clauses even when --no-syntax-extensions / -nse option is passed
...
Reviewed-by: lagergren, attila
2014-04-02 15:52:31 +05:30
Athijegannathan Sundararajan
4036a466ca
8037562: Nashorn: JSON.parse comes up with nonexistent entries if there are gaps between the keys
...
Reviewed-by: jlaskey, hannesw
2014-03-21 20:24:01 +05:30
Athijegannathan Sundararajan
1dd97ac6e7
8011964: need indexed access to externally-managed ByteBuffer
...
Reviewed-by: lagergren, hannesw
2014-02-14 19:02:02 +05:30
Matherey Nunez
615623c473
8033231: test fails with java.lang.UnsatisfiedLinkError
...
Reviewed-by: attila, sundar
2014-02-11 12:05:22 +01:00
Athijegannathan Sundararajan
118cf2ba60
8033924: Default permissions are not given for eval code
...
Reviewed-by: lagergren, jlaskey
2014-02-07 18:47:46 +05:30
Athijegannathan Sundararajan
3dd998447a
8033763: Add tests to assert map identity of certain objects
...
Reviewed-by: hannesw, lagergren
2014-02-06 17:44:37 +05:30
Attila Szegedi
281b87b796
8032681: Issues with Nashorn
...
Reviewed-by: ahgross, jlaskey, sundar
2014-01-30 20:13:27 +01:00
Athijegannathan Sundararajan
6d897ac7a8
8032954: Nashorn: extend Java.extend
...
Reviewed-by: jlaskey, attila, ahgross
2014-01-30 18:49:47 +05:30
Athijegannathan Sundararajan
3d9115510c
8032943: Improve reflection in Nashorn
...
Reviewed-by: jlaskey, attila, ahgross
2014-01-30 18:26:15 +05:30
Athijegannathan Sundararajan
86a64a99fd
8032068: implement @sourceURL and #sourceURL directives
...
Reviewed-by: hannesw, lagergren
2014-01-20 19:51:54 +05:30
Athijegannathan Sundararajan
961103778f
8032060: PropertyMap of Error objects is not stable
...
Reviewed-by: jlaskey, hannesw
2014-01-17 20:09:47 +05:30
Athijegannathan Sundararajan
bb600b7978
8032004: instance property "message" of Error objects should be non-enumerable
...
Reviewed-by: hannesw, jlaskey
2014-01-16 22:50:53 +05:30
Athijegannathan Sundararajan
9ce7db11e3
8031983: Error objects should capture stack at the constructor
...
Reviewed-by: jlaskey, hannesw
2014-01-16 21:26:21 +05:30
Athijegannathan Sundararajan
d7d8810466
8031715: Indexed access to java package not working
...
Reviewed-by: lagergren, hannesw
2014-01-15 14:51:49 +05:30