Changeset 84030 in webkit
- Timestamp:
- Apr 15, 2011 1:51:24 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r84021 r84030 1 2011-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 1 18 2011-04-14 Oliver Hunt <oliver@apple.com> 2 19 -
trunk/Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig
r79131 r84030 50 50 OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(TARGET_GCC_VERSION)); 51 51 OTHER_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; 53 OTHER_CFLAGS_normal_GCC_42 = -funwind-tables; 53 54 OTHER_CFLAGS_normal_LLVM_GCC_42 = $(OTHER_CFLAGS_normal_GCC_42); -
trunk/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.cpp
r83955 r84030 42 42 } 43 43 44 JSGlobalObject* JSObjectWithGlobalObject::globalObject() const45 {46 return asGlobalObject((getAnonymousValue(GlobalObjectSlot).asCell()));47 }48 49 44 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/JSObjectWithGlobalObject.h
r83955 r84030 27 27 #define JSObjectWithGlobalObject_h 28 28 29 #include "JS Object.h"29 #include "JSGlobalObject.h" 30 30 31 31 namespace JSC { … … 40 40 } 41 41 42 JSGlobalObject* globalObject() const; 42 JSGlobalObject* globalObject() const 43 { 44 return asGlobalObject((getAnonymousValue(GlobalObjectSlot).asCell())); 45 } 43 46 44 47 protected:
Note: See TracChangeset
for help on using the changeset viewer.