Remove an unnecessary asObject(this) call inside JSObject::fastGetOwnPropertySlot.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jun 2014 21:04:58 +0000 (21:04 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jun 2014 21:04:58 +0000 (21:04 +0000)
Rubber-stamped by Andreas Kling.

* runtime/JSObject.h:
(JSC::JSObject::fastGetOwnPropertySlot):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169831 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSObject.h

index bd886271456384f1e2f748dd97cb5d36e347784c..6f16b0554504f6c1c0dbabdf4d2155a95424a948 100644 (file)
@@ -1,3 +1,12 @@
+2014-06-11  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Remove an unnecessary asObject(this) call inside JSObject::fastGetOwnPropertySlot.
+
+        Rubber-stamped by Andreas Kling.
+
+        * runtime/JSObject.h:
+        (JSC::JSObject::fastGetOwnPropertySlot):
+
 2014-06-11  Ryosuke Niwa  <rniwa@webkit.org>
 
         Turning on DUMP_PROPERTYMAP_STATS causes a build failure
index d2497585c0b5564b0e7aa3dffa2ade691f762d0d..fd44002e1422aa92446af1e084d713a33469d0e9 100644 (file)
@@ -1257,7 +1257,7 @@ ALWAYS_INLINE bool JSObject::getOwnPropertySlot(JSObject* object, ExecState* exe
 ALWAYS_INLINE bool JSObject::fastGetOwnPropertySlot(ExecState* exec, VM& vm, Structure& structure, PropertyName propertyName, PropertySlot& slot)
 {
     if (LIKELY(!TypeInfo::overridesGetOwnPropertySlot(inlineTypeFlags())))
-        return asObject(this)->inlineGetOwnPropertySlot(vm, structure, propertyName, slot);
+        return inlineGetOwnPropertySlot(vm, structure, propertyName, slot);
     return structure.classInfo()->methodTable.getOwnPropertySlot(this, exec, propertyName, slot);
 }