Changeset 31136 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Mar 18, 2008, 2:10:30 PM (17 years ago)
Author:
[email protected]
Message:

2008-03-18 Maciej Stachowiak <[email protected]>

Reviewed by Oliver.


  • inline ActivationImp::init for 0.8% SunSpider speedup
  • kjs/Activation.h: (KJS::ActivationImp::init): Moved here from function.cpp
  • kjs/function.cpp:
Location:
trunk/JavaScriptCore/kjs
Files:
2 edited

Legend:

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

    r31114 r31136  
    2828#include "JSVariableObject.h"
    2929#include "object.h"
     30#include "function.h"
    3031
    3132namespace KJS {
     
    8283    };
    8384
     85    inline void ActivationImp::init(ExecState* exec)
     86    {
     87        d()->exec = exec;
     88        d()->function = exec->function();
     89        d()->symbolTable = &exec->function()->body->symbolTable();
     90        d()->argumentsObject = 0;
     91    }
     92
    8493    const size_t activationStackNodeSize = 32;
    8594
  • trunk/JavaScriptCore/kjs/function.cpp

    r31121 r31136  
    353353    if (!d()->isOnStack)
    354354        delete d();
    355 }
    356 
    357 void ActivationImp::init(ExecState* exec)
    358 {
    359     d()->symbolTable = &exec->function()->body->symbolTable();
    360     d()->exec = exec;
    361     d()->function = exec->function();
    362     d()->argumentsObject = 0;
    363355}
    364356
Note: See TracChangeset for help on using the changeset viewer.