OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 Expression ParseFunctionLiteral( | 1176 Expression ParseFunctionLiteral( |
1177 Identifier name, | 1177 Identifier name, |
1178 Scanner::Location function_name_location, | 1178 Scanner::Location function_name_location, |
1179 bool name_is_strict_reserved, | 1179 bool name_is_strict_reserved, |
1180 bool is_generator, | 1180 bool is_generator, |
1181 int function_token_pos, | 1181 int function_token_pos, |
1182 FunctionLiteral::FunctionType function_type, | 1182 FunctionLiteral::FunctionType function_type, |
1183 bool* ok); | 1183 bool* ok); |
1184 void ParseLazyFunctionLiteralBody(bool* ok); | 1184 void ParseLazyFunctionLiteralBody(bool* ok); |
1185 | 1185 |
1186 // Logs the currently parsed literal as a symbol in the preparser data. | |
1187 void LogSymbol(); | |
1188 // Log the currently parsed string literal. | |
1189 Expression GetStringSymbol(); | |
1190 | |
1191 bool CheckInOrOf(bool accept_OF); | 1186 bool CheckInOrOf(bool accept_OF); |
1192 }; | 1187 }; |
1193 | 1188 |
1194 template<class Traits> | 1189 template<class Traits> |
1195 ParserBase<Traits>::FunctionState::FunctionState( | 1190 ParserBase<Traits>::FunctionState::FunctionState( |
1196 FunctionState** function_state_stack, | 1191 FunctionState** function_state_stack, |
1197 typename Traits::Type::Scope** scope_stack, | 1192 typename Traits::Type::Scope** scope_stack, |
1198 typename Traits::Type::Scope* scope, | 1193 typename Traits::Type::Scope* scope, |
1199 typename Traits::Type::Zone* extra_param) | 1194 typename Traits::Type::Zone* extra_param) |
1200 : next_materialized_literal_index_(JSFunction::kLiteralsPrefixSize), | 1195 : next_materialized_literal_index_(JSFunction::kLiteralsPrefixSize), |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 "accessor_get_set"); | 2172 "accessor_get_set"); |
2178 } | 2173 } |
2179 *ok = false; | 2174 *ok = false; |
2180 } | 2175 } |
2181 } | 2176 } |
2182 | 2177 |
2183 | 2178 |
2184 } } // v8::internal | 2179 } } // v8::internal |
2185 | 2180 |
2186 #endif // V8_PREPARSER_H | 2181 #endif // V8_PREPARSER_H |
OLD | NEW |