Lines Matching refs:literal

533     FunctionLiteral* literal;
537 SourcePositionEvent(FunctionLiteral* literal, bool is_start)
538 : position(is_start ? literal->start_position()
539 : literal->end_position()),
541 literal(literal) {}
555 if (a.literal->end_position() != b.literal->end_position()) {
556 return a.literal->end_position() > b.literal->end_position();
559 // literal ids to be first.
560 return a.literal->function_literal_id() <
561 b.literal->function_literal_id();
565 if (a.literal->start_position() != b.literal->start_position()) {
566 return a.literal->start_position() > b.literal->start_position();
569 // literal ids to be first.
570 return a.literal->function_literal_id() >
571 b.literal->function_literal_id();
579 // If any of start/end position is kNoSourcePosition, this literal is
601 for (FunctionLiteral* literal : literals) {
602 events.emplace_back(literal, true);
603 events.emplace_back(literal, false);
621 DCHECK_EQ(literal_stack.top().first, event.literal);
625 : event.literal->end_position() + delta;
632 event.literal,
635 : event.literal->start_position() + delta,
642 // Note that outer literal has not necessarily changed, unless the
643 // diff goes past the end of this literal. In this case, we'll mark
689 for (FunctionLiteral* literal : new_literals) {
690 DCHECK(literal->start_position() != kNoSourcePosition);
691 DCHECK(literal->end_position() != kNoSourcePosition);
693 literal->function_literal_id() == kFunctionLiteralIdTopLevel
695 : std::make_pair(literal->start_position(),
696 literal->end_position());
699 position_to_new_literal[key] = literal;
704 FunctionLiteral* literal = change_pair.first;
707 literal->function_literal_id() == kFunctionLiteralIdTopLevel
713 HasChangedScope(literal, it->second)) {
714 change_state[literal] = ChangeState::DAMAGED;
720 mappings[literal] = it->second;
721 if (change_state.find(literal) == change_state.end()) {
722 change_state[literal] =
785 CollectFunctionLiterals(isolate, parse_info->literal()).Run(literals);
790 explicit FunctionData(FunctionLiteral* literal)
791 : literal(literal), stack_position(NOT_ON_STACK) {}
793 FunctionLiteral* literal;
806 void AddInterestingLiteral(int script_id, FunctionLiteral* literal) {
807 map_.emplace(GetFuncId(script_id, literal), FunctionData{literal});
819 bool Lookup(Handle<Script> script, FunctionLiteral* literal,
821 return Lookup(GetFuncId(script->id(), literal), data);
865 FuncId GetFuncId(int script_id, FunctionLiteral* literal) {
866 int start_position = literal->start_position();
867 if (literal->function_literal_id() == 0) {
868 // This is the top-level script function literal, so special case its
1097 auto change_it = changed.find(data->literal);