Home
last modified time | relevance | path

Searched refs:scanner_ (Results 1 – 7 of 7) sorted by relevance

/external/v8/src/asmjs/
Dasm-parser.h154 AsmJsScanner scanner_; variable
236 return scanner_.Token() == token; in Peek()
240 if (scanner_.Token() == token) { in Check()
241 scanner_.Next(); in Check()
249 if (scanner_.IsUnsigned() && scanner_.AsUnsigned() == 0) { in CheckForZero()
250 scanner_.Next(); in CheckForZero()
258 if (scanner_.IsDouble()) { in CheckForDouble()
259 *value = scanner_.AsDouble(); in CheckForDouble()
260 scanner_.Next(); in CheckForDouble()
268 if (scanner_.IsUnsigned()) { in CheckForUnsigned()
[all …]
Dasm-parser.cc28 failure_location_ = static_cast<int>(scanner_.Position()); \
31 scanner_.Name(scanner_.Token()).c_str(), __FILE__, __LINE__); \
38 failure_location_ = static_cast<int>(scanner_.Position()); \
47 if (scanner_.Token() != token) { \
50 scanner_.Next(); \
74 scanner_(stream), in AsmJsParser()
274 const std::string& str = scanner_.GetIdentifierString(); in CopyCurrentIdentifierString()
283 } else if (!Peek('}') && !scanner_.IsPrecededByNewline()) { in SkipSemicolon()
295 size_t position = scanner_.Position(); in Loop()
393 if (!scanner_.IsGlobal()) { in ValidateModuleParameters()
[all …]
/external/v8/src/parsing/
Dscanner.h186 : scanner_(scanner), bookmark_(kNoBookmark) { in BookmarkScope()
187 DCHECK_NOT_NULL(scanner_); in BookmarkScope()
201 Scanner* scanner_; variable
402 explicit LiteralScope(Scanner* self) : scanner_(self), complete_(false) { in LiteralScope()
403 scanner_->StartLiteral(); in LiteralScope()
406 if (!complete_) scanner_->DropLiteral(); in ~LiteralScope()
411 Scanner* scanner_;
Dscanner.cc137 DCHECK_EQ(scanner_->next_next().token, Token::UNINITIALIZED); in Set()
143 DCHECK_IMPLIES(scanner_->current().token == Token::UNINITIALIZED, in Set()
144 scanner_->current().location.beg_pos == in Set()
145 scanner_->next().location.beg_pos); in Set()
146 bookmark_ = (scanner_->current().token == Token::UNINITIALIZED) in Set()
148 : scanner_->location().beg_pos; in Set()
154 scanner_->SeekNext(0); in Apply()
156 scanner_->SeekNext(bookmark_); in Apply()
157 scanner_->Next(); in Apply()
158 DCHECK_EQ(scanner_->location().beg_pos, static_cast<int>(bookmark_)); in Apply()
Dparser-base.h103 : scanner_(scanner), range_(range), post_kind_(post_kind) { in scanner_() function
122 return scanner_->location().beg_pos; in GetPosition()
124 return scanner_->location().end_pos; in GetPosition()
126 return scanner_->peek_location().beg_pos; in GetPosition()
128 return scanner_->peek_location().end_pos; in GetPosition()
134 Scanner* scanner_; variable
276 scanner_(scanner), in ParserBase()
678 Scanner* scanner() const { return scanner_; } in scanner()
680 int position() const { return scanner_->location().beg_pos; } in position()
681 int peek_position() const { return scanner_->peek_location().beg_pos; } in peek_position()
[all …]
Dparser.cc409 : ParserBase<Parser>(info->zone(), &scanner_, info->stack_limit(), in Parser()
415 scanner_(info->unicode_cache(), info->character_stream(), in Parser()
511 scanner_.Initialize(); in ParseProgram()
705 scanner_.Initialize(); in ParseFunction()
3414 Handle<String> source_url = scanner_.SourceUrl(isolate); in HandleSourceURLComments()
3418 Handle<String> source_mapping_url = scanner_.SourceMappingUrl(isolate); in HandleSourceURLComments()
3432 if (scanner_.FoundHtmlComment()) { in UpdateStatistics()
3451 scanner_.Initialize(); in ParseOnBackground()
Dparser.h241 new PreParser(zone(), &scanner_, stack_limit_, ast_value_factory(),
1101 Scanner scanner_;