| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); | 367 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); |
| 368 | 368 |
| 369 // All ParseXXX functions take as the last argument an *ok parameter | 369 // All ParseXXX functions take as the last argument an *ok parameter |
| 370 // which is set to false if parsing failed; it is unchanged otherwise. | 370 // which is set to false if parsing failed; it is unchanged otherwise. |
| 371 // By making the 'exception handling' explicit, we are forced to check | 371 // By making the 'exception handling' explicit, we are forced to check |
| 372 // for failure at the call sites. | 372 // for failure at the call sites. |
| 373 SourceElements ParseSourceElements(int end_token, bool* ok); | 373 SourceElements ParseSourceElements(int end_token, bool* ok); |
| 374 Statement ParseStatement(bool* ok); | 374 Statement ParseStatement(bool* ok); |
| 375 Statement ParseFunctionDeclaration(bool* ok); | 375 Statement ParseFunctionDeclaration(bool* ok); |
| 376 Statement ParseNativeDeclaration(bool* ok); | |
| 377 Statement ParseBlock(bool* ok); | 376 Statement ParseBlock(bool* ok); |
| 378 Statement ParseVariableStatement(bool* ok); | 377 Statement ParseVariableStatement(bool* ok); |
| 379 Statement ParseVariableDeclarations(bool accept_IN, int* num_decl, bool* ok); | 378 Statement ParseVariableDeclarations(bool accept_IN, int* num_decl, bool* ok); |
| 380 Statement ParseExpressionOrLabelledStatement(bool* ok); | 379 Statement ParseExpressionOrLabelledStatement(bool* ok); |
| 381 Statement ParseIfStatement(bool* ok); | 380 Statement ParseIfStatement(bool* ok); |
| 382 Statement ParseContinueStatement(bool* ok); | 381 Statement ParseContinueStatement(bool* ok); |
| 383 Statement ParseBreakStatement(bool* ok); | 382 Statement ParseBreakStatement(bool* ok); |
| 384 Statement ParseReturnStatement(bool* ok); | 383 Statement ParseReturnStatement(bool* ok); |
| 385 Statement ParseWithStatement(bool* ok); | 384 Statement ParseWithStatement(bool* ok); |
| 386 Statement ParseSwitchStatement(bool* ok); | 385 Statement ParseSwitchStatement(bool* ok); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 uintptr_t stack_limit_; | 484 uintptr_t stack_limit_; |
| 486 i::Scanner::Location strict_mode_violation_location_; | 485 i::Scanner::Location strict_mode_violation_location_; |
| 487 const char* strict_mode_violation_type_; | 486 const char* strict_mode_violation_type_; |
| 488 bool stack_overflow_; | 487 bool stack_overflow_; |
| 489 bool allow_lazy_; | 488 bool allow_lazy_; |
| 490 bool parenthesized_function_; | 489 bool parenthesized_function_; |
| 491 }; | 490 }; |
| 492 } } // v8::preparser | 491 } } // v8::preparser |
| 493 | 492 |
| 494 #endif // V8_PREPARSER_H | 493 #endif // V8_PREPARSER_H |
| OLD | NEW |