Ignore:
Timestamp:
Sep 18, 2008, 11:32:12 PM (17 years ago)
Author:
Darin Adler
Message:

2008-09-18 Darin Adler <Darin Adler>

Reviewed by Maciej Stachowiak.

  • kjs/grammar.y: Get rid of string from the union, and use ident for STRING as well as for IDENT.
  • kjs/lexer.cpp: (JSC::Lexer::lex): Use makeIdentifier instead of makeUString for String.
  • kjs/lexer.h: Remove makeUString.
  • kjs/nodes.h: Changed StringNode to hold an Identifier instead of UString.
  • VM/CodeGenerator.cpp: (JSC::keyForCharacterSwitch): Updated since StringNode now holds an Identifier. (JSC::prepareJumpTableForStringSwitch): Ditto.
  • kjs/nodes.cpp: (JSC::StringNode::emitCode): Ditto. The comment from here is now in the lexer. (JSC::processClauseList): Ditto.
  • kjs/nodes2string.cpp: (JSC::StringNode::streamTo): Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r36604 r36660  
    14311431    UNUSED_PARAM(max);
    14321432    ASSERT(node->isString());
    1433     UString::Rep* clause = static_cast<StringNode*>(node)->value().rep();
     1433    UString::Rep* clause = static_cast<StringNode*>(node)->value().ustring().rep();
    14341434    ASSERT(clause->size() == 1);
    14351435   
     
    14611461       
    14621462        ASSERT(nodes[i]->isString());
    1463         UString::Rep* clause = static_cast<StringNode*>(nodes[i])->value().rep();
     1463        UString::Rep* clause = static_cast<StringNode*>(nodes[i])->value().ustring().rep();
    14641464        OffsetLocation location;
    14651465        location.branchOffset = labels[i]->offsetFrom(switchAddress);
Note: See TracChangeset for help on using the changeset viewer.