Changeset 27678 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Nov 10, 2007, 5:07:00 PM (18 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

Reviewed by Sam.

Test: fast/js/delete-then-put.html

  • kjs/property_map.cpp: (KJS::PropertyMap::put): Added a missing "- 1"; code to find an empty slot was not working. (KJS::PropertyMap::checkConsistency): Added a missing range check that would have caught this problem before.
  • roll out a last-minute change to my evaluateToBoolean patch that was incorrect.
  • kjs/nodes.h: (KJS::ExprStatementNode::ExprStatementNode): Take out call to optimizeForUnnecessaryResult, since the result is used in some cases.

LayoutTests:

Reviewed by Sam.

  • fast/js/delete-then-put-expected.txt: Added.
  • fast/js/delete-then-put.html: Added.
  • fast/js/resources/delete-then-put.js: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.h

    r27664 r27678  
    15771577  class ExprStatementNode : public StatementNode {
    15781578  public:
    1579     ExprStatementNode(ExpressionNode* e) KJS_FAST_CALL : expr(e)
    1580     {
    1581         e->optimizeForUnnecessaryResult();
    1582     }
     1579    ExprStatementNode(ExpressionNode* e) KJS_FAST_CALL : expr(e) { }
    15831580    virtual void optimizeVariableAccess(FunctionBodyNode*, DeclarationStacks::NodeStack&) KJS_FAST_CALL;
    15841581    virtual Completion execute(ExecState*) KJS_FAST_CALL;
Note: See TracChangeset for help on using the changeset viewer.