Changeset 12564 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
Feb 4, 2006, 5:43:16 PM (19 years ago)
Author:
darin
Message:

Reviewed by Maciej.

Test: fast/js/for-in-var-scope.html

  • kjs/nodes.cpp: (valueForReadModifyAssignment): Use ALWAYS_INLINE macro. (ForInNode::execute): Break out of the scope chain loop once we find and set the loop variable. We don't want to set multiple loop variables. (ForInNode::processVarDecls): Process the declaration of the loop variable.
  • other cleanup
  • kjs/object.cpp: (KJS::tryGetAndCallProperty): Use ALWAYS_INLINE macro.
  • kxmlcore/FastMalloc.cpp: Change to use ALWAYS_INLINE macro from AlwaysInline.h instead of defining it here a second time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.cpp

    r12317 r12564  
    328328}
    329329
    330 static inline
    331 #ifdef __GNUC__
    332 __attribute__((always_inline))
    333 #endif
    334 JSValue *tryGetAndCallProperty(ExecState *exec, const JSObject *object, const Identifier &propertyName) {
     330static ALWAYS_INLINE JSValue *tryGetAndCallProperty(ExecState *exec, const JSObject *object, const Identifier &propertyName) {
    335331  JSValue *v = object->get(exec, propertyName);
    336332  if (v->isObject()) {
Note: See TracChangeset for help on using the changeset viewer.