Changeset 9768 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Jul 14, 2005, 11:27:04 AM (20 years ago)
Author:
ggaren
Message:

-rolled in patches for http://bugzilla.opendarwin.org/show_bug.cgi?id=3945
[PATCH] Safe merges of comments and other trivialities from KDE's kjs

-patch by Martijn Klingens <[email protected]>

  • kjs/array_instance.h:
  • kjs/array_object.cpp:
  • kjs/array_object.h:
  • kjs/bool_object.cpp:
  • kjs/bool_object.h:
  • kjs/collector.cpp:
  • kjs/collector.h:
  • kjs/completion.h:
  • kjs/context.h:
  • kjs/date_object.cpp:
  • kjs/date_object.h:
  • kjs/debugger.cpp:
  • kjs/debugger.h:
  • kjs/dtoa.h:
  • kjs/error_object.cpp:
  • kjs/error_object.h:
  • kjs/function.cpp:
  • kjs/function.h:
  • kjs/function_object.cpp:
  • kjs/function_object.h:
  • kjs/grammar.y:
  • kjs/identifier.cpp:
  • kjs/identifier.h:
  • kjs/internal.cpp:
  • kjs/internal.h:
  • kjs/interpreter.cpp:
  • kjs/interpreter.h:
  • kjs/interpreter_map.cpp:
  • kjs/interpreter_map.h:
  • kjs/lexer.cpp:
  • kjs/lexer.h:
  • kjs/list.cpp:
  • kjs/list.h:
  • kjs/lookup.cpp:
  • kjs/lookup.h:
  • kjs/math_object.cpp:
  • kjs/math_object.h:
  • kjs/nodes.cpp:
  • kjs/nodes.h:
  • kjs/nodes2string.cpp:
  • kjs/number_object.cpp:
  • kjs/number_object.h:
  • kjs/object.cpp:
  • kjs/object.h:
  • kjs/object_object.cpp:
  • kjs/object_object.h:
  • kjs/operations.cpp:
  • kjs/operations.h:
  • kjs/property_map.cpp:
  • kjs/property_map.h:
  • kjs/reference.cpp:
  • kjs/reference.h:
  • kjs/reference_list.cpp:
  • kjs/reference_list.h:
  • kjs/regexp.cpp:
  • kjs/regexp.h:
  • kjs/regexp_object.cpp:
  • kjs/regexp_object.h:
  • kjs/scope_chain.cpp:
  • kjs/scope_chain.h:
  • kjs/simple_number.h:
  • kjs/string_object.cpp:
  • kjs/string_object.h:
  • kjs/testkjs.cpp:
  • kjs/types.h:
  • kjs/ustring.cpp:
  • kjs/ustring.h:
  • kjs/value.cpp:
  • kjs/value.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r9582 r9768  
    1818 *  You should have received a copy of the GNU Library General Public License
    1919 *  along with this library; see the file COPYING.LIB.  If not, write to
    20  *  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    21  *  Boston, MA 02111-1307, USA.
     20 *  the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
     21 *  Boston, MA 02110-1301, USA.
    2222 *
    2323 */
     
    102102     * a null object will be returned (i.e. one with it's internal pointer set
    103103     * to 0). If you do not know for sure whether the value is of type
    104      * ObjectType, you should check the @ref isNull() methods afterwards before
     104     * ObjectType, you should check the isValid() methods afterwards before
    105105     * calling any methods on the Object.
    106106     *
     
    246246     *
    247247     * If an error occurs during construction, the execution state's exception
    248      * will be set. This can be tested for with @ref ExecState::hadException().
     248     * will be set. This can be tested for with ExecState::hadException().
    249249     * Under some circumstances, the exception object may also be returned.
    250250     *
     
    301301
    302302    /**
    303      * Checks whether value delegates behaviour to this object. Used by the
     303     * Checks whether value delegates behavior to this object. Used by the
    304304     * instanceof operator.
    305305     *
    306306     * @param exec The current execution state
    307307     * @param value The value to check
    308      * @return true if value delegates behaviour to this object, otherwise
     308     * @return true if value delegates behavior to this object, otherwise
    309309     * false
    310310     */
     
    317317     * inside other functions:
    318318     *
     319     * \code
    319320     * function f() {
    320321     *
     
    327328     * }
    328329     * f.prototype = new String();
     330     * \endcode
    329331     *
    330332     * When the function f.b is executed, its scope will include properties of
     
    407409     * A pointer to a ClassInfo struct for this class. This provides a basic
    408410     * facility for run-time type information, and can be used to check an
    409      * object's class an inheritance (see @ref inherits()). This should
     411     * object's class an inheritance (see inherits()). This should
    410412     * always return a statically declared pointer, or 0 to indicate that
    411413     * there is no class information.
     
    418420     * class declarations:
    419421     *
     422     * \code
    420423     *   class BarImp : public ObjectImp {
    421424     *     virtual const ClassInfo *classInfo() const { return &info; }
     
    429432     *     // ...
    430433     *   };
     434     * \endcode
    431435     *
    432436     * And in your source file:
    433437     *
     438     * \code
    434439     *   const ClassInfo BarImp::info = {0, 0, 0}; // no parent class
    435440     *   const ClassInfo FooImp::info = {&BarImp::info, 0, 0};
     441     * \endcode
    436442     *
    437443     * @see inherits()
     
    453459     *
    454460     * If you have a handle to a statically declared ClassInfo, such as in the
    455      * @ref classInfo() example, you can check for inheritance without needing
     461     * classInfo() example, you can check for inheritance without needing
    456462     * an instance of the other class:
    457463     *
     
    483489     *
    484490     * The default implementation uses classInfo().
    485      * You should either implement @ref classInfo(), or
    486      * if you simply need a classname, you can reimplement @ref className()
     491     * You should either implement classInfo(), or
     492     * if you simply need a classname, you can reimplement className()
    487493     * instead.
    488494     *
     
    661667
    662668    /**
    663      * Array of error names corresponding to @ref ErrorType
     669     * Array of error names corresponding to ErrorType
    664670     */
    665671    static const char * const * const errorNames;
Note: See TracChangeset for help on using the changeset viewer.