Changeset 84030 in webkit


Ignore:
Timestamp:
Apr 15, 2011 1:51:24 PM (13 years ago)
Author:
msaboff@apple.com
Message:

2011-04-15 Michael Saboff <msaboff@apple.com>

Reviewed by Oliver Hunt.

globalObject moved to JSObjectWithGlobalObject.cpp inhibits inlining
https://bugs.webkit.org/show_bug.cgi?id=58677

Moved JSObjectWithGlobalObject::globalObject() to
runtime/JSObjectWithGlobalObject.h to allow the compiler to inline
it for a performance benefit. An equivalent instance had been in
a header file before r60057.

  • JavaScriptCore.exp:
  • runtime/JSObjectWithGlobalObject.cpp:
  • runtime/JSObjectWithGlobalObject.h: (JSC::JSObjectWithGlobalObject::globalObject):
Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r84021 r84030  
     12011-04-15  Michael Saboff  <msaboff@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        globalObject moved to JSObjectWithGlobalObject.cpp inhibits inlining
     6        https://bugs.webkit.org/show_bug.cgi?id=58677
     7
     8        Moved JSObjectWithGlobalObject::globalObject() to
     9        runtime/JSObjectWithGlobalObject.h to allow the compiler to inline
     10        it for a performance benefit.  An equivalent instance had been in
     11        a header file before r60057.
     12
     13        * JavaScriptCore.exp:
     14        * runtime/JSObjectWithGlobalObject.cpp:
     15        * runtime/JSObjectWithGlobalObject.h:
     16        (JSC::JSObjectWithGlobalObject::globalObject):
     17
    1182011-04-14  Oliver Hunt  <oliver@apple.com>
    219
  • trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig

    r79131 r84030  
    5050OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION));
    5151OTHER_CFLAGS_Production_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION));
    52 OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables;
     52// OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables;
     53OTHER_CFLAGS_normal_GCC_42 = -funwind-tables;
    5354OTHER_CFLAGS_normal_LLVM_GCC_42 = $(OTHER_CFLAGS_normal_GCC_42);
  • trunk/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.cpp

    r83955 r84030  
    4242}
    4343
    44 JSGlobalObject* JSObjectWithGlobalObject::globalObject() const
    45 {
    46     return asGlobalObject((getAnonymousValue(GlobalObjectSlot).asCell()));
    47 }
    48 
    4944} // namespace JSC
  • trunk/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h

    r83955 r84030  
    2727#define JSObjectWithGlobalObject_h
    2828
    29 #include "JSObject.h"
     29#include "JSGlobalObject.h"
    3030
    3131namespace JSC {
     
    4040    }
    4141
    42     JSGlobalObject* globalObject() const;
     42    JSGlobalObject* globalObject() const
     43    {
     44        return asGlobalObject((getAnonymousValue(GlobalObjectSlot).asCell()));
     45    }
    4346
    4447protected:
Note: See TracChangeset for help on using the changeset viewer.