v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-parsing.cc File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "v8.h"
#include "cctest.h"
#include "compiler.h"
#include "execution.h"
#include "isolate.h"
#include "parser.h"
#include "preparser.h"
#include "scanner-character-streams.h"
#include "token.h"
#include "utils.h"
Include dependency graph for test-parsing.cc:

Go to the source code of this file.

Data Structures

class  ScriptResource
 
class  TestExternalResource
 

Macros

#define KEYWORD(t, s, d)   { s, i::Token::t },
 
#define CHECK_EQU(v1, v2)   CHECK_EQ(static_cast<int>(v1), static_cast<int>(v2))
 

Functions

 TEST (ScanKeywords)
 
 TEST (ScanHTMLEndComments)
 
 TEST (Preparsing)
 
 TEST (StandAlonePreParser)
 
 TEST (StandAlonePreParserNoNatives)
 
 TEST (RegressChromium62639)
 
 TEST (Regress928)
 
 TEST (PreParseOverflow)
 
void TestCharacterStream (const char *ascii_source, unsigned length, unsigned start=0, unsigned end=0)
 
 TEST (CharacterStreams)
 
 TEST (Utf8CharacterStream)
 
void TestStreamScanner (i::Utf16CharacterStream *stream, i::Token::Value *expected_tokens, int skip_pos=0, int skip_to=0)
 
 TEST (StreamScanner)
 
void TestScanRegExp (const char *re_source, const char *expected)
 
 TEST (RegExpScanning)
 
 TEST (ScopePositions)
 
void TestParserSync (i::Handle< i::String > source, int flags)
 
void TestParserSyncWithFlags (i::Handle< i::String > source)
 
 TEST (ParserSync)
 

Macro Definition Documentation

#define CHECK_EQU (   v1,
  v2 
)    CHECK_EQ(static_cast<int>(v1), static_cast<int>(v2))

Definition at line 433 of file test-parsing.cc.

Referenced by TEST(), and TestCharacterStream().

#define KEYWORD (   t,
  s,
 
)    { s, i::Token::t },

Referenced by TEST().

Function Documentation

TEST ( ScanHTMLEndComments  )
TEST ( RegressChromium62639  )
TEST ( PreParseOverflow  )
TEST ( CharacterStreams  )

Definition at line 545 of file test-parsing.cc.

References Context::New(), and TestCharacterStream().

TEST ( RegExpScanning  )

Definition at line 717 of file test-parsing.cc.

References V8::Initialize(), and TestScanRegExp().

void TestCharacterStream ( const char *  ascii_source,
unsigned  length,
unsigned  start = 0,
unsigned  end = 0 
)
void TestScanRegExp ( const char *  re_source,
const char *  expected 
)
void TestStreamScanner ( i::Utf16CharacterStream stream,
i::Token::Value expected_tokens,
int  skip_pos = 0,
int  skip_to = 0 
)