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/kxmlcore/FastMalloc.cpp

    r11962 r12564  
    9696}
    9797
    98 #ifndef WIN32
     98#if !WIN32
    9999void fastMallocRegisterThread(pthread_t thread)
    100100{
     
    106106#else
    107107
    108 #include <new>
    109 #include <stdio.h>
    110 #include <stddef.h>
    111 #if defined HAVE_STDINT_H
     108#if HAVE_STDINT_H
    112109#include <stdint.h>
    113 #elif defined HAVE_INTTYPES_H
     110#elif HAVE_INTTYPES_H
    114111#include <inttypes.h>
    115112#else
    116113#include <sys/types.h>
    117114#endif
     115
     116#include "AlwaysInline.h"
     117#include "Assertions.h"
     118#include "TCPageMap.h"
     119#include "TCSpinLock.h"
     120#include "TCSystemAlloc.h"
     121#include <errno.h>
     122#include <new>
     123#include <pthread.h>
     124#include <stdarg.h>
     125#include <stddef.h>
     126#include <stdio.h>
    118127#include <string.h>
    119 #include <pthread.h>
    120128#include <unistd.h>
    121 #include <errno.h>
    122 #include <stdarg.h>
    123 #include "TCSpinLock.h"
    124 #include "TCPageMap.h"
    125 #include "TCSystemAlloc.h"
    126 
    127 #include "Assertions.h"
    128 
    129 #ifdef __GNUC__
    130 #define ALWAYS_INLINE inline __attribute__((always_inline))
    131 #else
    132 #define ALWAYS_INLINE inline
    133 #endif
    134129
    135130#if KXC_CHANGES
Note: See TracChangeset for help on using the changeset viewer.