View | Details | Raw Unified | Return to bug 271562
Collapse All | Expand All

(-)Source/JavaScriptCore/offlineasm/parser.rb (-3 / +3 lines)
Lines 584-592 class Parser Link Here
584
        firstCodeOrigin = @tokens[@idx].codeOrigin
584
        firstCodeOrigin = @tokens[@idx].codeOrigin
585
        list = []
585
        list = []
586
        loop {
586
        loop {
587
            if (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
587
            if @tokens[@idx].is_a? Annotation
588
                break
589
            elsif @tokens[@idx].is_a? Annotation
590
                # This is the only place where we can encounter a global
588
                # This is the only place where we can encounter a global
591
                # annotation, and hence need to be able to distinguish between
589
                # annotation, and hence need to be able to distinguish between
592
                # them.
590
                # them.
Lines 600-605 class Parser Link Here
600
                list << Instruction.new(codeOrigin, annotationOpcode, [], @tokens[@idx].string)
598
                list << Instruction.new(codeOrigin, annotationOpcode, [], @tokens[@idx].string)
601
                @annotation = nil
599
                @annotation = nil
602
                @idx += 2 # Consume the newline as well.
600
                @idx += 2 # Consume the newline as well.
601
            elsif (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
602
                break
603
            elsif @tokens[@idx] == "\n"
603
            elsif @tokens[@idx] == "\n"
604
                # ignore
604
                # ignore
605
                @idx += 1
605
                @idx += 1

Return to bug 271562