Changeset 26914 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Oct 23, 2007, 12:00:37 AM (18 years ago)
Author:
darin
Message:

Reviewed by Eric.

  • streamline exception handling code for a >1% speed-up of SunSpider
  • kjs/nodes.cpp: Changed macros to use functions for everything that's not part of normal execution. We'll take function call overhead when propagating an exception or out of memory. (KJS::createOutOfMemoryCompletion): Added. (KJS::substitute): Use append instead of the relatively inefficient + operator. (KJS::Node::rethrowException): Added.
  • kjs/nodes.h: Added rethrowException.
File:
1 edited

Legend:

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

    r26811 r26914  
    11// -*- c-basic-offset: 2 -*-
    22/*
    3  *  This file is part of the KDE libraries
    43 *  Copyright (C) 1999-2000 Harri Porten ([email protected])
    54 *  Copyright (C) 2001 Peter Kelly ([email protected])
     
    148147    void handleException(ExecState*, JSValue*) KJS_FAST_CALL;
    149148
     149    Completion rethrowException(ExecState*) KJS_FAST_CALL;
     150
    150151    int m_line : 31;
    151152    bool m_mayHaveDeclarations : 1;
Note: See TracChangeset for help on using the changeset viewer.