Thu, 23 May 2013 15:51:08 +0200
8012522: Clean up lexical contexts - split out stack based functionality in CodeGenerator and generify NodeVisitors based on their LexicalContext type to avoid casts
Reviewed-by: attila, jlaskey
1 DO NOT TRANSLATE OR LOCALIZE.
2 -----------------------------
4 %% This notice is provided with respect to ECMAScript Language
5 Specification ECMA-262 Edition 5.1 which is included with the Nashorn
6 technology.
8 --- begin of LICENSE ---
9 Copyright notice
10 Copyright © 2011 Ecma International
11 Ecma International
12 Rue du Rhone 114
13 CH-1204 Geneva
14 Tel: +41 22 849 6000
15 Fax: +41 22 849 6001
16 Web: http://www.ecma-international.org
18 This document and possible translations of it may be copied and furnished to
19 others, and derivative works that comment on or otherwise explain it or assist
20 in its implementation may be prepared, copied, published, and distributed, in
21 whole or in part, without restriction of any kind, provided that the above
22 copyright notice and this section are included on all such copies and derivative
23 works. However, this document itself may not be modified in any way, including
24 by removing the copyright notice or references to Ecma International, except as
25 needed for the purpose of developing any document or deliverable produced by
26 Ecma International (in which case the rules applied to copyrights must be
27 followed) or as required to translate it into languages other than English. The
28 limited permissions granted above are perpetual and will not be revoked by Ecma
29 International or its successors or assigns. This document and the information
30 contained herein is provided on an "AS IS" basis and ECMA INTERNATIONAL
31 DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
32 WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP
33 RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
34 PURPOSE." Software License
36 All Software contained in this document ("Software)" is protected by copyright
37 and is being made available under the "BSD License", included below. This
38 Software may be subject to third party rights (rights from parties other than
39 Ecma International), including patent rights, and no licenses under such third
40 party rights are granted under this license even if the third party concerned is
41 a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS
42 AVAILABLE AT http://www.ecma-international.org/memento/codeofconduct.htm FOR
43 INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO
44 IMPLEMENT ECMA INTERNATIONAL STANDARDS*. Redistribution and use in source and
45 binary forms, with or without modification, are permitted provided that the
46 following conditions are met:
48 1. Redistributions of source code must retain the above copyright notice, this
49 list of conditions and the following disclaimer.
51 2. Redistributions in binary form must reproduce the above copyright notice,
52 this list of conditions and the following disclaimer in the documentation and/or
53 other materials provided with the distribution.
55 3. Neither the name of the authors nor Ecma International may be used to endorse
56 or promote products derived from this software without specific prior written
57 permission.
59 THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR
60 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
61 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
62 SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
63 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
64 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
65 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
66 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
67 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
68 OF SUCH DAMAGE.
69 --- end of LICENSE ---
71 %% This notice is provided with respect to Dynalink library which is included
72 with the Nashorn technology.
74 --- begin of LICENSE ---
75 Copyright (c) 2009-2013, Attila Szegedi
77 Redistribution and use in source and binary forms, with or without
78 modification, are permitted provided that the following conditions are
79 met:
80 * Redistributions of source code must retain the above copyright
81 notice, this list of conditions and the following disclaimer.
82 * Redistributions in binary form must reproduce the above copyright
83 notice, this list of conditions and the following disclaimer in the
84 documentation and/or other materials provided with the distribution.
85 * Neither the name of the copyright holder nor the names of
86 contributors may be used to endorse or promote products derived from
87 this software without specific prior written permission.
89 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
90 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
91 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
92 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER
93 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
94 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
95 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
96 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
97 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
98 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
99 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
100 --- end of LICENSE ---
102 %% This notice is provided with respect to Joni library which is included
103 with the Nashorn technology.
105 --- begin of LICENSE ---
106 Permission is hereby granted, free of charge, to any person obtaining a copy of
107 this software and associated documentation files (the "Software"), to deal in
108 the Software without restriction, including without limitation the rights to
109 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
110 of the Software, and to permit persons to whom the Software is furnished to do
111 so, subject to the following conditions:
113 The above copyright notice and this permission notice shall be included in all
114 copies or substantial portions of the Software.
116 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
117 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
118 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
119 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
120 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
121 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
122 SOFTWARE.
123 --- end of LICENSE ---