Lines Matching refs:ok
54 explicit PositionStack(bool* ok) : top_(NULL), ok_(ok) {}
551 // handling for functions that may fail (by returning !*ok).
557 #define CHECK_OK ok); \
558 if (!*ok) return NULL; \
645 bool ok = true;
647 ParseSourceElements(body, Token::EOS, &ok);
648 if (ok && top_scope_->is_strict_mode()) {
649 CheckOctalLiteral(beg_loc, scanner().location().end_pos, &ok);
651 if (ok) {
735 bool ok = true;
738 RelocInfo::kNoPosition, type, &ok);
740 ASSERT(ok == (result != NULL));
759 Handle<String> Parser::GetSymbol(bool* ok) {
1070 bool* ok) {
1164 Statement* Parser::ParseStatement(ZoneStringList* labels, bool* ok) {
1194 return ParseBlock(labels, ok);
1198 stmt = ParseVariableStatement(ok);
1206 stmt = ParseIfStatement(labels, ok);
1210 stmt = ParseDoWhileStatement(labels, ok);
1214 stmt = ParseWhileStatement(labels, ok);
1218 stmt = ParseForStatement(labels, ok);
1222 stmt = ParseContinueStatement(ok);
1226 stmt = ParseBreakStatement(labels, ok);
1230 stmt = ParseReturnStatement(ok);
1234 stmt = ParseWithStatement(labels, ok);
1238 stmt = ParseSwitchStatement(labels, ok);
1242 stmt = ParseThrowStatement(ok);
1267 *ok = false;
1270 return ParseFunctionDeclaration(ok);
1274 return ParseNativeDeclaration(ok);
1277 stmt = ParseDebuggerStatement(ok);
1281 stmt = ParseExpressionOrLabelledStatement(labels, ok);
1294 bool* ok) {
1392 Statement* Parser::ParseNativeDeclaration(bool* ok) {
1395 *ok = false;
1451 Statement* Parser::ParseFunctionDeclaration(bool* ok) {
1471 Block* Parser::ParseBlock(ZoneStringList* labels, bool* ok) {
1491 Block* Parser::ParseVariableStatement(bool* ok) {
1515 bool* ok) {
1527 *ok = false;
1563 *ok = false;
1586 *ok = false;
1746 bool* ok) {
1769 *ok = false;
1779 return ParseStatement(labels, ok);
1788 IfStatement* Parser::ParseIfStatement(ZoneStringList* labels, bool* ok) {
1808 Statement* Parser::ParseContinueStatement(bool* ok) {
1830 *ok = false;
1838 Statement* Parser::ParseBreakStatement(ZoneStringList* labels, bool* ok) {
1865 *ok = false;
1873 Statement* Parser::ParseReturnStatement(bool* ok) {
1911 bool* ok) {
1947 Statement* Parser::ParseWithStatement(ZoneStringList* labels, bool* ok) {
1955 *ok = false;
1967 CaseClause* Parser::ParseCaseClause(bool* default_seen_ptr, bool* ok) {
1981 *ok = false;
2001 bool* ok) {
2027 Statement* Parser::ParseThrowStatement(bool* ok) {
2035 *ok = false;
2045 TryStatement* Parser::ParseTryStatement(bool* ok) {
2074 *ok = false;
2094 *ok = false;
2163 bool* ok) {
2194 WhileStatement* Parser::ParseWhileStatement(ZoneStringList* labels, bool* ok) {
2212 Statement* Parser::ParseForStatement(ZoneStringList* labels, bool* ok) {
2301 Expression* Parser::ParseExpression(bool accept_IN, bool* ok) {
2318 Expression* Parser::ParseAssignmentExpression(bool accept_IN, bool* ok) {
2388 Expression* Parser::ParseConditionalExpression(bool accept_IN, bool* ok) {
2419 Expression* Parser::ParseBinaryExpression(int prec, bool accept_IN, bool* ok) {
2527 Expression* Parser::ParseUnaryExpression(bool* ok) {
2565 *ok = false;
2597 return ParsePostfixExpression(ok);
2602 Expression* Parser::ParsePostfixExpression(bool* ok) {
2636 Expression* Parser::ParseLeftHandSideExpression(bool* ok) {
2703 Expression* Parser::ParseNewPrefix(PositionStack* stack, bool* ok) {
2733 Expression* Parser::ParseNewExpression(bool* ok) {
2734 PositionStack stack(ok);
2735 return ParseNewPrefix(&stack, ok);
2739 Expression* Parser::ParseMemberExpression(bool* ok) {
2740 return ParseMemberWithNewPrefixesExpression(NULL, ok);
2745 bool* ok) {
2799 DebuggerStatement* Parser::ParseDebuggerStatement(bool* ok) {
2843 void Parser::ReportInvalidPreparseData(Handle<String> name, bool* ok) {
2848 *ok = false;
2852 Expression* Parser::ParsePrimaryExpression(bool* ok) {
2954 *ok = false;
2990 Expression* Parser::ParseArrayLiteral(bool* ok) {
3131 bool* ok);
3162 bool* ok) {
3208 *ok = false;
3216 *ok = false;
3223 *ok = false;
3229 *ok = true;
3294 bool* ok) {
3322 *ok = false;
3328 Expression* Parser::ParseObjectLiteral(bool* ok) {
3417 *ok = false;
3475 Expression* Parser::ParseRegExpLiteral(bool seen_equal, bool* ok) {
3479 *ok = false;
3494 ZoneList<Expression*>* Parser::ParseArguments(bool* ok) {
3507 *ok = false;
3522 bool* ok) {
3585 *ok = false;
3662 *ok = false;
3668 *ok = false;
3674 *ok = false;
3684 *ok = false;
3690 *ok = false;
3716 Expression* Parser::ParseV8Intrinsic(bool* ok) {
3743 *ok = false;
3753 *ok = false;
3777 void Parser::Expect(Token::Value token, bool* ok) {
3781 *ok = false;
3795 void Parser::ExpectSemicolon(bool* ok) {
3808 Expect(Token::SEMICOLON, ok);
3827 Handle<String> Parser::ParseIdentifier(bool* ok) {
3829 return ParseIdentifierOrReservedWord(&is_reserved, ok);
3834 bool* ok) {
3837 Expect(Token::IDENTIFIER, ok);
3840 Expect(Token::FUTURE_RESERVED_WORD, ok);
3844 if (!*ok) return Handle<String>();
3845 return GetSymbol(ok);
3849 Handle<String> Parser::ParseIdentifierName(bool* ok) {
3855 *ok = false;
3858 return GetSymbol(ok);
3866 bool* ok) {
3874 *ok = false;
3881 void Parser::CheckOctalLiteral(int beg_pos, int end_pos, bool* ok) {
3887 *ok = false;
3896 bool* ok) {
3897 Handle<String> result = ParseIdentifier(ok);
3898 if (!*ok) return Handle<String>();
3922 BreakableStatement* Parser::LookupBreakTarget(Handle<String> label, bool* ok) {
3938 bool* ok) {