Mercurial > people > rkennke > jdk9-shenandoah-final > nashorn
annotate bin/dump_octane_code.sh @ 703:3bbf629a2db9
8031317: SyntaxError when property setter has no parameter
Reviewed-by: lagergren, hannesw
author | sundar |
---|---|
date | Wed, 08 Jan 2014 17:51:47 +0530 |
parents | 2a4769fcd13f |
children |
rev | line source |
---|---|
23
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
1 #!/bin/bash |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
2 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
4 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
5 # This code is free software; you can redistribute it and/or modify it |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
6 # under the terms of the GNU General Public License version 2 only, as |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
7 # published by the Free Software Foundation. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
8 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
9 # This code is distributed in the hope that it will be useful, but WITHOUT |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
12 # version 2 for more details (a copy is included in the LICENSE file that |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
13 # accompanied this code). |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
14 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
15 # You should have received a copy of the GNU General Public License version |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
16 # 2 along with this work; if not, write to the Free Software Foundation, |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
18 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
21 # questions. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
22 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
23 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
24 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
25 # The purpose of this script is to provide a large amount of IR/bytecode from a known |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
26 # application to be diffed against the same output with a different Nashorn version. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
27 # That way we can quickly detect if a seemingly minute change modifies a lot of code, |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
28 # which it most likely shouldn't. One example of this was when AccessSpecializer was |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
29 # moved into Lower the first time, it worked fine, but as a lot of Scope information |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
30 # at the time was finalized further down the code pipeline it did a lot fewer callsite |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
31 # specializations. This would have been immediately detected with a before and after |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
32 # diff using the output from this script. |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
33 # |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
34 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
35 ITERS=$1 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
36 if [ -z $ITERS ]; then |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
37 ITERS=7 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
38 fi |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
39 NASHORN_JAR=dist/nashorn.jar |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
40 JVM_FLAGS="-ea -esa -server -jar ${NASHORN_JAR}" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
41 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
42 BENCHMARKS=( "box2d.js" "code-load.js" "crypto.js" "deltablue.js" "earley-boyer.js" "gbemu.js" "mandreel.js" "navier-stokes.js" "pdfjs.js" "raytrace.js" "regexp.js" "richards.js" "splay.js" ) |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
43 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
44 for BENCHMARK in "${BENCHMARKS[@]}" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
45 do |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
46 echo "START: ${BENCHMARK}" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
47 CMD="${JAVA_HOME}/bin/java ${JVM_FLAGS} -co --print-lower-parse test/script/external/octane/${BENCHMARK}" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
48 $CMD |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
49 echo "END: ${BENCHMARK}" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
50 echo "" |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
51 done |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
52 |
2a4769fcd13f
8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
lagergren
parents:
diff
changeset
|
53 echo "Done" |