Ignore:
Timestamp:
Feb 3, 2014, 6:08:23 PM (11 years ago)
Author:
[email protected]
Message:

LLInt: Regex for pseudo-instructions is too big
https://bugs.webkit.org/show_bug.cgi?id=128148

Reviewed by Mark Lam.

  • offlineasm/instructions.rb:
  • offlineasm/parser.rb:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/offlineasm/parser.rb

    r153104 r163351  
    154154
    155155def isInstruction(token)
    156     token =~ INSTRUCTION_PATTERN
     156    INSTRUCTION_SET.member? token.string
    157157end
    158158
     
    160160    token =~ /\A((true)|(false)|(if)|(then)|(else)|(elsif)|(end)|(and)|(or)|(not)|(macro)|(const)|(sizeof)|(error)|(include))\Z/ or
    161161        token =~ REGISTER_PATTERN or
    162         token =~ INSTRUCTION_PATTERN
     162        isInstruction(token)
    163163end
    164164
Note: See TracChangeset for help on using the changeset viewer.