50 Commits

Author SHA1 Message Date
Marcus Lagergren
8d304985e6 8059811: Turn off optimistic typing by default and add both ant test-pessimistic and ant test-optimistic sub-test suites
Reviewed-by: attila, shade, hannesw
2014-10-09 10:19:24 +02:00
Hannes Wallnöfer
2134f7554d 8059938: NPE restoring cached script with optimistic types disabled
Reviewed-by: lagergren, sundar
2014-10-08 17:20:29 +02:00
Marcus Lagergren
d2a36ed370 8059231: Verify that octane raytrace now works with optimistic types turned off. Add better logging for optimistic types in the compiler
Reviewed-by: attila
2014-10-06 10:43:57 +02:00
Attila Szegedi
c7df19bca4 8059346: Single class loader is used to load compiled bytecode
Reviewed-by: hannesw, lagergren
2014-10-02 16:30:49 +02:00
Attila Szegedi
e97393b108 8059372: Code duplication in split emitter
Reviewed-by: jlaskey, lagergren
2014-10-01 12:22:12 +02:00
Attila Szegedi
8f4114ee43 8059371: Code duplication in handling of break and continue
Reviewed-by: jlaskey, lagergren
2014-10-01 10:26:53 +02:00
Attila Szegedi
80fe5fad5c 8059370: Unnecessary work in deoptimizing recompilation
Reviewed-by: jlaskey, lagergren
2014-10-01 10:26:25 +02:00
Marcus Lagergren
3d538d9cfd 8059321: Decrease warmup time by caching common structures that were reused during parse
Reviewed-by: attila, shade
2014-09-29 14:39:58 -07:00
Marcus Lagergren
3d2c518ad8 8059211: Changed ArrayData.length accessor to use the protected field and fixed javadoc warnings related to this
Reviewed-by: attila, hannesw
2014-09-26 18:47:20 +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
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
Hannes Wallnöfer
7cb28afba6 8046202: Make persistent code store more flexible
Reviewed-by: lagergren, sundar
2014-09-19 13:13:20 +02: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
9afdb7964c 8058304: Non-serializable fields in serializable classes
Reviewed-by: lagergren, sundar
2014-09-12 15:01:48 +02:00
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
c121e477c0 8058100: Reduce the RecompilableScriptFunctionData footprint
Reviewed-by: jlaskey, lagergren
2014-09-11 17:12:38 +02:00
Hannes Wallnöfer
6a9239547f 8057021: UserAccessorProperty guards fail with multiple globals
Reviewed-by: attila, lagergren
2014-09-10 15:19:26 +02:00
Attila Szegedi
621efcd976 8034954: Optimistic iteration in for-in and for-each
Reviewed-by: hannesw, lagergren
2014-09-10 13:08:58 +02:00
Marcus Lagergren
c0bc4f8216 8057703: More empty classes generated by Nashorn
Reviewed-by: attila, sundar
2014-09-10 12:37:44 +02:00
Attila Szegedi
7dfcc902f6 8057931: Instead of not skipping small functions in parser, make lexer avoid them instead
Reviewed-by: hannesw, sundar
2014-09-09 15:34:14 +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
Marcus Lagergren
5c74cf0819 8057588: Lots of trivial (empty) classes were generated by the Nashorn compiler as part of restOf-method generation
Reviewed-by: attila, sundar, hannesw
2014-09-05 16:28:17 +02:00
Marcus Lagergren
cbd2f643ad 8057611: Nashorn did not dump the JOx classes to disk when running with the -d flag
Reviewed-by: attila, sundar, hannesw
2014-09-05 16:28:02 +02:00
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
917f13e5db 8057551: Let the -d flag dump _all_ generated classes to disk and work outside --compile-only mode
Reviewed-by: attila, jlaskey
2014-09-04 14:42:30 +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
Attila Szegedi
b0b75a5371 8056913: Limit the size of type info cache on disk
Reviewed-by: jlaskey, lagergren
2014-09-03 14:33:34 +02:00
Attila Szegedi
5e59a2ef0d 8056243: OptimisticTypePersistence should refuse to work in symlinked directories
Reviewed-by: lagergren, sundar
2014-08-28 16:38:23 +02: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
Attila Szegedi
91f1c2c34c 8056025: CompilationPhase.setStates() is hot in class installation phase
Reviewed-by: jlaskey, sundar
2014-08-26 15:52:55 +02:00
Attila Szegedi
a72b265924 8056052: Source.getContent() does excess Object.clone()
Reviewed-by: jlaskey, sundar
2014-08-26 15:04:48 +02:00
Attila Szegedi
5eb6a95a44 8055954: Do not parallelize class installation
Reviewed-by: jlaskey, sundar
2014-08-26 15:04:20 +02:00
Attila Szegedi
362089dbfc 8055923: collect timings using System.nanoTime
Reviewed-by: hannesw, lagergren
2014-08-26 11:45:36 +02:00
Marcus Lagergren
e533964fc8 8055906: Avoid throwing an exception with filled in stack trace as part of the normal control flow
Reviewed-by: attila, hannesw
2014-08-26 11:42:07 +02:00
Attila Szegedi
8525a0f5b5 8055913: Node.hashCode() delegates to Object.hashCode() and is hot
Reviewed-by: lagergren, sundar
2014-08-26 11:32:12 +02:00
Attila Szegedi
2fc5ea4674 8055911: Don't use String.intern for IdentNode
Reviewed-by: lagergren, sundar
2014-08-26 11:31:31 +02: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
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
eadc8dbe75 8055687: Wrong "this" passed to JSObject.eval call
Reviewed-by: lagergren, hannesw, attila
2014-08-20 21:32:09 +05:30
Athijegannathan Sundararajan
16bef5aa2a 8050078: Nashorn ClassFilter Support
Reviewed-by: lagergren, hannesw
2014-08-20 20:04:19 +05:30
Chris Hegarty
57d4d0207b Merge 2014-08-18 10:59:40 +01:00
Chris Hegarty
5fe51a5b71 8054834: Modular Source Code
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@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>
Reviewed-by: alanb, chegar, ihse, mduigou
2014-08-17 15:56:32 +01:00