nashorn/test/script/basic/date.js.EXPECTED
author attila
Thu, 31 Jan 2013 18:34:42 +0100
changeset 16206 83069fa0935b
parent 16147 e63b63819133
permissions -rw-r--r--
8006529: Methods always get callee - it should be conditional Summary: This commit streamlines the bytecode function signatures, prologue, local variable use, scope creation, and invocation. It started out quite innocently when we noticed that we always emit __callee__ parameters for all functions even when they are not needed, but it turned out to be quite a deep rabbit hole. In the end, I identified exact conditions when functions need to have a callee parameter, when they need to receive parent scope, when they need to create their own scope, when they need to have variable arity signature, and when they need to have an "arguments" object, and made sure that callee parameters in signatures only show up when they are needed, that parent function's scope is only passed to a child function when it is needed, that the function only creates its own scope when it is needed. In crypto.js, the number of scopes dropped from 446 to 244, and the number of callees dropped from 315 to 145. Reviewed-by: jlaskey, lagergren
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
Date.length = 7
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     2
Date.UTC.length = 7
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
Date.prototype.setSeconds.length = 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
Date.prototype.setUTCSeconds.length = 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
Date.prototype.setMinutes.length = 3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
Date.prototype.setUTCMinutes.length = 3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
Date.prototype.setHours.length = 4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     8
Date.prototype.setUTCHours.length = 4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     9
Date.prototype.setMonth.length = 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
Date.prototype.setUTCMonth.length = 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    11
Date.prototype.setFullYear.length = 3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    12
Date.prototype.setUTCFullYear.length = 3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    13
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    14
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    15
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    16
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    17
2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    18
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    19
2011
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    20
11
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    21
31
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    22
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    23
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    24
2011-05-03T11:31:01.000Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    25
Tue, 03 May 2011 11:31:01 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    26
Tue May 03 2011 17:01:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    27
Tue May 03 2011 17:01:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    28
2011-05-03
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    29
17:01:01
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    30
Tue May 03 2011
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    31
17:01:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    32
2011-05-03T11:31:01.000Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    33
10
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    34
34
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    35
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    36
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    37
2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    38
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    39
2011
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    40
11
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    41
40
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    42
34
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    43
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    44
2011-05-03T11:40:34.000Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    45
Tue, 03 May 2011 11:40:34 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    46
Tue May 03 2011 17:10:34 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    47
Tue May 03 2011 17:10:34 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    48
2011-05-03
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    49
17:10:34
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    50
Tue May 03 2011
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    51
17:10:34 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    52
2011-05-03T11:40:34.000Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    53
31
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    54
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    55
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    56
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    57
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    58
10
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    59
2000
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    60
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    61
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    62
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    63
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    64
2000-11-01T01:01:01.001Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    65
Wed, 01 Nov 2000 01:01:01 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    66
Wed Nov 01 2000 06:31:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    67
Wed Nov 01 2000 06:31:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    68
2000-11-01
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    69
06:31:01
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    70
Wed Nov 01 2000
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    71
06:31:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    72
2000-11-01T01:01:01.001Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    73
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    74
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    75
5
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    76
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    77
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    78
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    79
2012
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    80
21
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    81
33
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    82
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    83
5
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    84
2012-02-01T21:33:04.005Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    85
Wed, 01 Feb 2012 21:33:04 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    86
Thu Feb 02 2012 03:03:04 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    87
Thu Feb 02 2012 03:03:04 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    88
2012-02-02
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    89
03:03:04
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    90
Thu Feb 02 2012
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    91
03:03:04 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    92
2012-02-01T21:33:04.005Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    93
34
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    94
5
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    95
6
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    96
2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    97
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    98
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    99
2012
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   100
3
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   101
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   102
5
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   103
6
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   104
2012-02-02T03:04:05.006Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   105
Thu, 02 Feb 2012 03:04:05 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   106
Thu Feb 02 2012 08:34:05 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   107
Thu Feb 02 2012 08:34:05 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   108
2012-02-02
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   109
08:34:05
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   110
Thu Feb 02 2012
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   111
08:34:05 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   112
2012-02-02T03:04:05.006Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   113
30
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   114
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   115
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   116
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   117
4
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   118
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   119
1970
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   120
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   121
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   122
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   123
0
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   124
1970-01-01T00:00:01.000Z
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   125
Thu, 01 Jan 1970 00:00:01 GMT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   126
Thu Jan 01 1970 05:30:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   127
Thu Jan 01 1970 05:30:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   128
1970-01-01
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   129
05:30:01
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   130
Thu Jan 01 1970
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   131
05:30:01 GMT+0530 (IST)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   132
1970-01-01T00:00:01.000Z