Ignore:
Timestamp:
Oct 16, 2007, 4:25:33 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Darin Adler.


Global replace of assert with ASSERT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r26682 r26688  
    2626#include "function.h"
    2727
     28#include "context.h"
     29#include "debugger.h"
    2830#include "dtoa.h"
     31#include "function_object.h"
    2932#include "internal.h"
    30 #include "function_object.h"
    3133#include "lexer.h"
    3234#include "nodes.h"
    3335#include "operations.h"
    34 #include "debugger.h"
    35 #include "context.h"
    36 
     36#include <errno.h>
    3737#include <stdio.h>
    38 #include <errno.h>
    3938#include <stdlib.h>
    40 #include <assert.h>
    4139#include <string.h>
    42 
    4340#include <wtf/ASCIICType.h>
     41#include <wtf/Assertions.h>
    4442#include <wtf/unicode/Unicode.h>
    4543
     
    376374  int indexAsNumber = index.toUInt32(&indexIsNumber);
    377375
    378   assert(indexIsNumber && indexAsNumber < size);
     376  ASSERT(indexIsNumber && indexAsNumber < size);
    379377 
    380378  _map[indexAsNumber] = CommonIdentifiers::shared()->nullIdentifier;
     
    391389  int indexAsNumber = index.toUInt32(&indexIsNumber);
    392390
    393   assert(indexIsNumber && indexAsNumber < size);
     391  ASSERT(indexIsNumber && indexAsNumber < size);
    394392 
    395393  return (*this)[indexAsNumber];
     
    516514{
    517515  // There's no way that an activation object can have a prototype or getter/setter properties
    518   assert(!_prop.hasGetterSetterProperties());
    519   assert(prototype() == jsNull());
     516  ASSERT(!_prop.hasGetterSetterProperties());
     517  ASSERT(prototype() == jsNull());
    520518
    521519  _prop.put(propertyName, value, attr, (attr == None || attr == DontDelete));
Note: See TracChangeset for help on using the changeset viewer.