v8  3.14.5(node0.10.28)
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))
 
#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:219

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:219

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

Referenced by TEST().

#define CHECK_PARSE_EQ (   input,
  expected 
)    CHECK_EQ(expected, *Parse(input))

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

Referenced by TEST().

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

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

Referenced by TEST().

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

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

Referenced by TEST().

Function Documentation

TEST ( ParserRegression  )

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

References CHECK_PARSE_EQ.

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

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

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