Ignore:
Timestamp:
Oct 24, 2007, 1:53:45 AM (18 years ago)
Author:
oliver
Message:

Remove old relation method, replace with specialised LessThan and lessThenEq functions for a 0.5-0.6% improvement in SunSpider

Reviewed by Darin

File:
1 edited

Legend:

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

    r26945 r26961  
    4545  bool equal(ExecState *exec, JSValue *v1, JSValue *v2);
    4646  bool strictEqual(ExecState *exec, JSValue *v1, JSValue *v2);
    47   /**
    48    * This operator performs an abstract relational comparison of the two
    49    * arguments that can be of arbitrary type. If possible, conversions to the
    50    * string or number type will take place before the comparison.
    51    *
    52    * @return 1 if v1 is "less-than" v2, 0 if the relation is "greater-than-or-
    53    * equal". -1 if the result is undefined.
    54    */
    55   int relation(ExecState *exec, JSValue *v1, JSValue *v2);
    5647  int maxInt(int d1, int d2);
    5748  int minInt(int d1, int d2);
Note: See TracChangeset for help on using the changeset viewer.