Changeset 34773 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jun 24, 2008, 1:00:48 PM (17 years ago)
Author:
Darin Adler
Message:

2008-06-24 Darin Adler <Darin Adler>

Reviewed by Cameron.

  • kjs/JSObject.cpp: (KJS::JSObject::put): Remove an untested optimization I checked in by accident. The two loops up the prototype chain both need to start from this; instead the second loop was starting where the first loop left off.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r34770 r34773  
     12008-06-24  Darin Adler  <[email protected]>
     2
     3        Reviewed by Cameron.
     4
     5        - fix https://bugs.webkit.org/show_bug.cgi?id=19739
     6          REGRESSION: fast/js/property-getters-and-setters.html fails
     7
     8        * kjs/JSObject.cpp:
     9        (KJS::JSObject::put): Remove an untested optimization I checked in by accident.
     10        The two loops up the prototype chain both need to start from this; instead the
     11        second loop was starting where the first loop left off.
     12
    1132008-06-24  Steve Falkenburg  <[email protected]>
    214
  • trunk/JavaScriptCore/kjs/JSObject.cpp

    r34754 r34773  
    114114
    115115  // Check if there are any setters or getters in the prototype chain
    116   JSObject* obj;
    117116  JSValue* prototype;
    118   for (obj = this; !obj->_prop.hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) {
     117  for (JSObject* obj = this; !obj->_prop.hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) {
    119118    prototype = obj->_proto;
    120119    if (prototype == jsNull()) {
     
    128127    return;
    129128
    130   for (; ; obj = static_cast<JSObject*>(prototype)) {
     129  for (JSObject* obj = this; ; obj = static_cast<JSObject*>(prototype)) {
    131130    if (JSValue* gs = obj->_prop.get(propertyName, attributes)) {
    132131      if (attributes & IsGetterSetter) {
Note: See TracChangeset for help on using the changeset viewer.