v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-regexp.cc File Reference
#include <stdlib.h>
#include "v8.h"
#include "ast.h"
#include "char-predicates-inl.h"
#include "cctest.h"
#include "jsregexp.h"
#include "parser.h"
#include "regexp-macro-assembler.h"
#include "regexp-macro-assembler-irregexp.h"
#include "string-stream.h"
#include "zone-inl.h"
#include "macro-assembler.h"
#include "code.h"
Include dependency graph for test-regexp.cc:

Go to the source code of this file.

Data Structures

struct  MinMaxPair
 
class  TestConfig
 
class  ContextInitializer
 

Macros

#define CHECK_PARSE_ERROR(input)   CHECK(!CheckParse(input))
 
#define CHECK_PARSE_EQ(input, expected)   CHECK_EQ(expected, Parse(input).get())
 
#define CHECK_SIMPLE(input, simple)   CHECK_EQ(simple, CheckSimple(input));
 
#define CHECK_MIN_MAX(input, min, max)
 
#define CHECK_MAPS_EQUAL()
 

Functions

 TEST (Parser)
 
 TEST (ParserRegression)
 
 TEST (Errors)
 
 TEST (CharacterClassEscapes)
 
 TEST (SplayTreeSimple)
 
 TEST (DispatchTableConstruction)
 
 TEST (MacroAssemblerNativeSuccess)
 
 TEST (MacroAssemblerNativeSimple)
 
 TEST (MacroAssemblerNativeSimpleUC16)
 
 TEST (MacroAssemblerNativeBacktrack)
 
 TEST (MacroAssemblerNativeBackReferenceASCII)
 
 TEST (MacroAssemblerNativeBackReferenceUC16)
 
 TEST (MacroAssemblernativeAtStart)
 
 TEST (MacroAssemblerNativeBackRefNoCase)
 
 TEST (MacroAssemblerNativeRegisters)
 
 TEST (MacroAssemblerStackOverflow)
 
 TEST (MacroAssemblerNativeLotsOfRegisters)
 
 TEST (AddInverseToTable)
 
 TEST (LatinCanonicalize)
 
 TEST (RangeCanonicalization)
 
 TEST (UncanonicalizeEquivalence)
 
 TEST (CharacterRangeCaseIndependence)
 
 TEST (CharClassDifference)
 
 TEST (CanonicalizeCharacterSets)
 
 TEST (CharacterRangeMerge)
 
 TEST (Graph)
 

Macro Definition Documentation

#define CHECK_MAPS_EQUAL ( )
Value:
do { \
for (unsigned k = 0; k < kLimit; k++) \
CHECK_EQ(seen[k], tree.Find(k, &loc)); \
} while (false)
#define CHECK_EQ(expected, value)
Definition: checks.h:252

Referenced by TEST().

#define CHECK_MIN_MAX (   input,
  min,
  max 
)
Value:
{ MinMaxPair min_max = CheckMinMaxMatch(input); \
CHECK_EQ(min, min_max.min_match); \
CHECK_EQ(max, min_max.max_match); \
}
#define CHECK_EQ(expected, value)
Definition: checks.h:252

Definition at line 142 of file test-regexp.cc.

Referenced by TEST().

#define CHECK_PARSE_EQ (   input,
  expected 
)    CHECK_EQ(expected, Parse(input).get())

Definition at line 140 of file test-regexp.cc.

Referenced by TEST().

#define CHECK_PARSE_ERROR (   input)    CHECK(!CheckParse(input))

Definition at line 139 of file test-regexp.cc.

Referenced by TEST().

#define CHECK_SIMPLE (   input,
  simple 
)    CHECK_EQ(simple, CheckSimple(input));

Definition at line 141 of file test-regexp.cc.

Referenced by TEST().

Function Documentation

TEST ( ParserRegression  )

Definition at line 388 of file test-regexp.cc.

References CHECK_PARSE_EQ.

TEST ( Errors  )

Definition at line 411 of file test-regexp.cc.

References StringStream::Add(), and StringStream::ToCString().

TEST ( CharacterClassEscapes  )
TEST ( LatinCanonicalize  )
TEST ( RangeCanonicalization  )
TEST ( UncanonicalizeEquivalence  )
TEST ( CharacterRangeCaseIndependence  )
TEST ( Graph  )

Definition at line 1809 of file test-regexp.cc.

References V8::Initialize(), and v8::internal::NULL.