Changeset 12315 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 23, 2006, 9:10:45 AM (19 years ago)
Author:
darin
Message:

Reviewed by John Sullivan.

  • kxmlcore/PassRefPtr.h: Fix assignment operator from RefPtr of a different type by calling get() instead of going directly at m_ptr.
  • kxmlcore/RefPtr.h: Ditto.
  • other changes
  • JavaScriptCore.xcodeproj/project.pbxproj: Xcode decided to change this file. It's just a resorted list of keys in a dictionary.
  • kjs/fpconst.cpp: Wrap this file in #if APPLE since the alternate version in internal.cpp is in #if __APPLE. This file is to give us the "no init routine" property we want to have on OS X.
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r12309 r12315  
     12006-01-23  Darin Adler  <[email protected]>
     2
     3        Reviewed by John Sullivan.
     4
     5        - change needed for fix to http://bugzilla.opendarwin.org/show_bug.cgi?id=6617
     6          REGRESSION: Crash in cloneChildNodes when clicking element
     7
     8        * kxmlcore/PassRefPtr.h: Fix assignment operator from RefPtr of a different
     9        type by calling get() instead of going directly at m_ptr.
     10        * kxmlcore/RefPtr.h: Ditto.
     11
     12        - other changes
     13
     14        * JavaScriptCore.xcodeproj/project.pbxproj: Xcode decided to change this file.
     15        It's just a resorted list of keys in a dictionary.
     16
     17        * kjs/fpconst.cpp: Wrap this file in #if __APPLE__ since the alternate version
     18        in internal.cpp is in #if !__APPLE__. This file is to give us the "no init
     19        routine" property we want to have on OS X.
     20
    1212006-01-22  Maciej Stachowiak  <[email protected]>
    222
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r12161 r12315  
    381381                933A349A038AE7C6008635CE /* identifier.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = identifier.h; sourceTree = "<group>"; tabWidth = 8; };
    382382                933A349D038AE80F008635CE /* identifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = identifier.cpp; sourceTree = "<group>"; tabWidth = 8; };
    383                 935F69F608244FEA003D1A45 /* dftables */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = dftables; sourceTree = BUILT_PRODUCTS_DIR; };
     383                935F69F608244FEA003D1A45 /* dftables */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = dftables; sourceTree = BUILT_PRODUCTS_DIR; };
    384384                9364B273045B7D6C00A9CAC1 /* fpconst.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = fpconst.cpp; sourceTree = "<group>"; tabWidth = 8; };
    385385                9373524E038DA8C2008635CE /* context.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = context.h; sourceTree = "<group>"; tabWidth = 8; };
  • trunk/JavaScriptCore/kjs/fpconst.cpp

    r12301 r12315  
    11/*
    2  *  Copyright (C) 2003 Apple Computer, Inc.
     2 *  Copyright (C) 2003, 2006 Apple Computer, Inc.
    33 *
    44 *  This library is free software; you can redistribute it and/or
     
    2121#include "config.h"
    2222
     23namespace KJS {
     24
    2325// This file exists because JavaScriptCore needs to define the NaN and Inf globals in a way
    2426// that does not use a static initializer so we don't have a framework initialization routine.
     
    3032// It would be good to figure out a 100% clean way that still avoids code that runs at init time.
    3133
    32 namespace KJS {
     34#if __APPLE__
    3335
    3436#ifdef WORDS_BIGENDIAN
     
    4042#endif
    4143
    42 };
     44#endif
     45
     46}
  • trunk/JavaScriptCore/kxmlcore/PassRefPtr.h

    r12150 r12315  
    7575    template <typename T> template <typename U> inline PassRefPtr<T>& PassRefPtr<T>::operator=(const RefPtr<U>& o)
    7676    {
    77         T* optr = o.m_ptr;
     77        T* optr = o.get();
    7878        if (optr)
    7979            optr->ref();
  • trunk/JavaScriptCore/kxmlcore/RefPtr.h

    r12150 r12315  
    7575    template <typename T> RefPtr<T>& RefPtr<T>::operator=(const RefPtr<T>& o)
    7676    {
    77         T* optr = o.m_ptr;
     77        T* optr = o.get();
    7878        if (optr)
    7979            optr->ref();
     
    8787    template <typename T> template <typename U> RefPtr<T>& RefPtr<T>::operator=(const RefPtr<U>& o)
    8888    {
    89         T *optr = o.m_ptr;
     89        T* optr = o.get();
    9090        if (optr)
    9191            optr->ref();
Note: See TracChangeset for help on using the changeset viewer.