#include "top.h"
#include "zone-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
template <class C>
#ifndef V8_ACCESSORS_H_
#define V8_ACCESSORS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The list of accessor descriptors. This is a second-order macro
// taking a macro to be applied to all accessor descriptor names.
#include "v8.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void* Malloced::New(size_t size) {
#ifndef V8_ALLOCATION_H_
#define V8_ALLOCATION_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// A class that controls whether allocation is allowed. This is for
#ifndef V8_ARGUMENTS_H_
#define V8_ARGUMENTS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Arguments provides access to runtime call parameters.
//
#include "cpu.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Condition NegateCondition(Condition cc) {
ASSERT(cc != al);
#include "arm/assembler-arm-inl.h"
#include "serialize.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
// Implementation of Register and CRegister
#include "assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// CPU Registers.
//
#include "debug.h"
#include "runtime.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm)
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm_)
#ifndef V8_ARM_CODEGEN_ARM_H_
#define V8_ARM_CODEGEN_ARM_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declarations
class DeferredCode;
#ifndef V8_ARM_CONSTANTS_ARM_H_
#define V8_ARM_CONSTANTS_ARM_H_
-namespace assembler { namespace arm {
+namespace assembler {
+namespace arm {
// Defines constants and accessor classes to assemble, disassemble and
// simulate ARM instructions.
#include "cpu.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void CPU::Setup() {
// Nothing to do.
#include "codegen-inl.h"
#include "debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_DEBUGGER_SUPPORT
// Currently debug break is not supported in frame exit code on ARM.
#include "platform.h"
-namespace assembler { namespace arm {
+namespace assembler {
+namespace arm {
namespace v8i = v8::internal;
#include "arm/assembler-arm-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
StackFrame::Type StackFrame::ComputeType(State* state) {
#ifndef V8_ARM_FRAMES_ARM_H_
#define V8_ARM_FRAMES_ARM_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The ARM ABI does not specify the usage of register r9, which may be reserved
#include "runtime.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
#include "jump-target-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// JumpTarget implementation.
#include "debug.h"
#include "runtime.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Give alias names to registers
Register cp = { 8 }; // JavaScript context pointer
#include "assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Give alias names to registers
#include "regexp-macro-assembler.h"
#include "arm/regexp-macro-assembler-arm.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
RegExpMacroAssemblerARM::RegExpMacroAssemblerARM() {
UNIMPLEMENTED();
#ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
#define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class RegExpMacroAssemblerARM: public RegExpMacroAssembler {
public:
#include "codegen-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Result implementation.
#if !defined(__arm__)
// Only build the simulator if not compiling for real ARM hardware.
-namespace assembler { namespace arm {
+namespace assembler {
+namespace arm {
using ::v8::internal::Object;
using ::v8::internal::PrintF;
#include "constants-arm.h"
-namespace assembler { namespace arm {
+namespace assembler {
+namespace arm {
class Simulator {
public:
#include "codegen-inl.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm)
#include "register-allocator-inl.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// VirtualFrame implementation.
#include "register-allocator.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Virtual frames
#include "stub-cache.h"
#include "regexp-stack.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
#include "zone-inl.h"
#include "token.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
#include "scopes.h"
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
VariableProxySentinel VariableProxySentinel::this_proxy_(true);
#include "jsregexp.h"
#include "jump-target.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The abstract syntax tree is an intermediate, light-weight
// representation of the parsed JavaScript code suitable for
#include "macro-assembler.h"
#include "natives.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// A SourceCodeCache uses a FixedArray to store pairs of
// (AsciiString*, JSFunction*), mapping names of native code files
#ifndef V8_BOOTSTRAPPER_H_
#define V8_BOOTSTRAPPER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The Boostrapper is the public interface for creating a JavaScript global
// context.
#include "builtins.h"
#include "ic-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// Support macros for defining builtins in C.
#ifndef V8_BUILTINS_H_
#define V8_BUILTINS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Define list of builtins implemented in C.
#define BUILTIN_LIST_C(V) \
#ifndef V8_BYTECODES_IRREGEXP_H_
#define V8_BYTECODES_IRREGEXP_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static const int BYTECODE_MASK = 0xff;
#include "char-predicates.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
inline bool IsCarriageReturn(uc32 c) {
#ifndef V8_CHAR_PREDICATES_H_
#define V8_CHAR_PREDICATES_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Unicode character predicates as defined by ECMA-262, 3rd,
// used for lexical analysis.
#include "factory.h"
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Handle<Code> CodeStub::GetCode() {
uint32_t key = GetKey();
#ifndef V8_CODE_STUBS_H_
#define V8_CODE_STUBS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Stub is base classes of all stubs.
#ifndef V8_CODE_H_
#define V8_CODE_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Wrapper class for passing expected and actual parameter counts as
#include "codegen.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void DeferredCode::SetEntryFrame(Result* arg) {
#include "scopeinfo.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
CodeGenerator* CodeGeneratorScope::top_ = NULL;
#include "register-allocator.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Code generation can be nested. Code generation scopes form a stack
#include "compilation-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
enum {
// The number of script generations tell how many GCs a script can
#ifndef V8_COMPILATION_CACHE_H_
#define V8_COMPILATION_CACHE_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The compilation cache keeps function boilerplates for compiled
#include "scopes.h"
#include "usage-analyzer.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static Handle<Code> MakeCode(FunctionLiteral* literal,
Handle<Script> script,
#include "parser.h"
#include "zone.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The V8 compiler
//
#include "debug.h"
#include "scopeinfo.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
JSBuiltinsObject* Context::builtins() {
GlobalObject* object = global();
#ifndef V8_CONTEXTS_H_
#define V8_CONTEXTS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
enum ContextLookupFlags {
#include "conversions.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The fast double-to-int conversion routine does not guarantee
// rounding towards zero.
#include "factory.h"
#include "scanner.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
int HexValue(uc32 c) {
if ('0' <= c && c <= '9')
#ifndef V8_CONVERSIONS_H_
#define V8_CONVERSIONS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The fast double-to-int conversion routine does not guarantee
// rounding towards zero.
#include "counters.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
CounterLookupCallback StatsTable::lookup_function_ = NULL;
CreateHistogramCallback StatsTable::create_histogram_function_ = NULL;
#ifndef V8_COUNTERS_H_
#define V8_COUNTERS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// StatsCounters is an interface for plugging into external
// counters for monitoring. Counters can be looked up and
#ifndef V8_CPU_H_
#define V8_CPU_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// CPU
#ifndef V8_DATEPARSER_INL_H_
#define V8_DATEPARSER_INL_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
template <typename Char>
bool DateParser::Parse(Vector<Char> str, FixedArray* out) {
#include "dateparser.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
bool DateParser::DayComposer::Write(FixedArray* output) {
int year = 0; // Default year is 0 (=> 2000) for KJS compatibility.
#include "scanner.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class DateParser : public AllStatic {
public:
#include "debug-agent.h"
#ifdef ENABLE_DEBUGGER_SUPPORT
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Public V8 debugger API message handler function. This function just delegates
// to the debugger agent through it's data parameter.
#include "../include/v8-debug.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward decelrations.
class DebuggerAgentSession;
#include "../include/v8-debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_DEBUGGER_SUPPORT
static void PrintLn(v8::Local<v8::Value> value) {
#ifdef ENABLE_DEBUGGER_SUPPORT
#include "../include/v8-debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declarations.
#include "serialize.h"
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_DISASSEMBLER
#ifndef V8_DISASSEMBLER_H_
#define V8_DISASSEMBLER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class Disassembler : public AllStatic {
public:
#include "debug.h"
#include "v8threads.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static Handle<Object> Invoke(bool construct,
#ifndef V8_EXECUTION_H_
#define V8_EXECUTION_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Flag used to set the interrupt causes.
#include "factory.h"
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) {
#include "heap.h"
#include "zone-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Interface for handle based allocation.
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Define all of our flags.
#define FLAG_MODE_DEFINE
#include "checks.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Declare all of our flags.
#define FLAG_MODE_DECLARE
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Virtual frame elements
#include "arm/frames-arm.h"
#endif
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
inline Address StackHandler::address() const {
#include "top.h"
#include "zone-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Iterator that supports traversing the stack handlers of a
// particular frame. Needs to know the top of the handler chain.
#ifndef V8_FRAMES_H_
#define V8_FRAMES_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
typedef uint32_t RegList;
#include "ast.h"
#include "func-name-inferrer.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void FuncNameInferrer::PushEnclosingName(Handle<String> name) {
#ifndef V8_FUNC_NAME_INFERRER_H_
#define V8_FUNC_NAME_INFERRER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// FuncNameInferrer is a stateful class that is used to perform name
// inference for anonymous functions during static analysis of source code.
#include "api.h"
#include "global-handles.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class GlobalHandles::Node : public Malloced {
public:
#include "list-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Structure for tracking global handles.
// A single list keeps all the allocated global handles.
#ifndef V8_GLOBALS_H_
#define V8_GLOBALS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Processor architecture detection. For more info on what's defined, see:
// http://msdn.microsoft.com/en-us/library/b0084kay.aspx
#include "handles.h"
#include "api.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
template<class T>
Handle<T>::Handle(T* obj) {
#include "natives.h"
#include "runtime.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
v8::ImplementationUtilities::HandleScopeData HandleScope::current_ =
#include "apiutils.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// A Handle provides a reference to an object that survives relocation by
#include "hashmap.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Allocator HashMap::DefaultAllocator;
#ifndef V8_HASHMAP_H_
#define V8_HASHMAP_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Allocator defines the memory allocator interface
#include "log.h"
#include "v8-counters.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
int Heap::MaxHeapObjectSize() {
return Page::kMaxHeapObjectSize;
#include "scopeinfo.h"
#include "v8threads.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define ROOT_ALLOCATION(type, name) type* Heap::name##_;
ROOT_LIST(ROOT_ALLOCATION)
#include "zone-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Defines all the roots in Heap.
#define STRONG_ROOT_LIST(V) \
#include "cpu.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Condition NegateCondition(Condition cc) {
return static_cast<Condition>(cc ^ 1);
#include "macro-assembler.h"
#include "serialize.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
// Implementation of Register
#ifndef V8_IA32_ASSEMBLER_IA32_H_
#define V8_IA32_ASSEMBLER_IA32_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// CPU Registers.
//
#include "codegen-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm)
#include "runtime.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm_)
#ifndef V8_IA32_CODEGEN_IA32_H_
#define V8_IA32_CODEGEN_IA32_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declarations
class DeferredCode;
#include "cpu.h"
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void CPU::Setup() {
CpuFeatures::Probe();
#include "debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_DEBUGGER_SUPPORT
#include "frames-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
StackFrame::Type StackFrame::ComputeType(State* state) {
#ifndef V8_IA32_FRAMES_IA32_H_
#define V8_IA32_FRAMES_IA32_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Register lists
#include "runtime.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// Static IC stub generators.
#include "jump-target-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// JumpTarget implementation.
#include "runtime.h"
#include "serialize.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// MacroAssembler implementation.
#include "assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declaration.
class JumpTarget;
#include "ia32/macro-assembler-ia32.h"
#include "ia32/regexp-macro-assembler-ia32.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
/*
* This assembler uses the following register assignment convention
#ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
#define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class RegExpMacroAssemblerIA32: public RegExpMacroAssembler {
public:
#include "codegen-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Result implementation.
#include "codegen-inl.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm)
#include "register-allocator-inl.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define __ ACCESS_MASM(masm())
#include "register-allocator.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Virtual frames
#include "debug.h"
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Address IC::address() {
#include "runtime.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef DEBUG
static char TransitionMarkFromState(IC::State state) {
#include "assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// IC_UTIL_LIST defines all utility functions called from generated
// inline caching code. The argument for the macro, ICU, is the function name.
#include "interpreter-irregexp.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize;
#ifndef V8_INTERPRETER_IRREGEXP_H_
#define V8_INTERPRETER_IRREGEXP_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class IrregexpInterpreter {
#include "regexp-macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
template <typename C>
#include "interpreter-irregexp.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor,
#ifndef V8_JSREGEXP_H_
#define V8_JSREGEXP_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class RegExpMacroAssembler;
#ifndef V8_JUMP_TARGET_INL_H_
#define V8_JUMP_TARGET_INL_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
CodeGenerator* JumpTarget::cgen() {
return CodeGeneratorScope::Current();
#include "jump-target-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// JumpTarget implementation.
#ifndef V8_JUMP_TARGET_H_
#define V8_JUMP_TARGET_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declarations.
class FrameElement;
#include "list.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
template<typename T, class P>
#ifndef V8_LIST_H_
#define V8_LIST_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
#include "serialize.h"
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_LOGGING_AND_PROFILING
#ifndef V8_LOG_H_
#define V8_LOG_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Logger is used for collecting logging information from V8 during
// execution. The result is dumped to a file.
#include "mark-compact.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// MarkCompactCollector
#ifndef V8_MARK_COMPACT_H_
#define V8_MARK_COMPACT_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Callback function, returns whether an object is alive. The heap size
// of the object is returned in size. It optionally updates the offset
#ifndef V8_MEMORY_H_
#define V8_MEMORY_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Memory provides an interface to 'raw' memory. It encapsulates the casts
// that typically are needed when incompatible pointer types are used.
#include "spaces-inl.h"
#include "top.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// If no message listeners have been registered this one is called
#include "handles-inl.h"
// Forward declaration of MessageLocation.
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class MessageLocation;
} } // namespace v8::internal
};
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
struct Language;
class SourceInfo;
#ifndef V8_NATIVES_H_
#define V8_NATIVES_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
typedef bool (*NativeSourceCallback)(Vector<const char> name,
Vector<const char> source,
#include "macro-assembler.h"
#include "jsregexp.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef DEBUG
#include "conversions-inl.h"
#include "property.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
PropertyDetails::PropertyDetails(Smi* smi) {
value_ = smi->value();
#include "disassembler.h"
#endif
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Getters and setters are stored in a fixed array property. These are
// constants for their indices.
// a non-existent property.
};
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// PropertyDetails captures type and attributes for a property.
#include "oprofile-agent.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_OPROFILE_AGENT
op_agent_t OProfileAgent::handle_ = NULL;
#include <opagent.h> // NOLINT
#endif
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class OProfileAgent {
public:
#include "scopes.h"
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class ParserFactory;
class ParserLog;
#include "scanner.h"
#include "allocation.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class ParserMessage : public Malloced {
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// 0 is never a valid thread id on FreeBSD since tids and pids share a
// name space and pid 0 is used to kill the group (see man 2 kill).
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// 0 is never a valid thread id on Linux since tids and pids share a
// name space and pid 0 is reserved (see man 2 kill).
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// 0 is never a valid thread id on MacOSX since a ptread_t is
// a pointer.
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Give V8 the opportunity to override the default ceil behaviour.
double ceiling(double x) {
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
}
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
double ceiling(double x) {
return ceil(x);
#define INFINITY HUGE_VAL
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
int isfinite(double x);
} }
int isnan(double x);
#endif // __GNUC__
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
double ceiling(double x);
#include "scopes.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef DEBUG
#include "ast.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef DEBUG
#include "v8.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void DescriptorWriter::Write(Descriptor* desc) {
#ifndef V8_PROPERTY_H_
#define V8_PROPERTY_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Abstraction for elements in instance-descriptor arrays.
#ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
#define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte,
#include "regexp-macro-assembler-irregexp-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Vector<byte> buffer)
#ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
#define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class RegExpMacroAssemblerIrregexp: public RegExpMacroAssembler {
#include "regexp-macro-assembler.h"
#include "regexp-macro-assembler-tracer.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
RegExpMacroAssemblerTracer::RegExpMacroAssemblerTracer(
RegExpMacroAssembler* assembler) :
#ifndef V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
#define V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Decorator on a RegExpMacroAssembler that write all calls.
class RegExpMacroAssemblerTracer: public RegExpMacroAssembler {
#include "assembler.h"
#include "regexp-macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
RegExpMacroAssembler::RegExpMacroAssembler() {
}
#ifndef V8_REGEXP_MACRO_ASSEMBLER_H_
#define V8_REGEXP_MACRO_ASSEMBLER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
struct DisjunctDecisionRow {
RegExpCharacterClass cc;
#include "top.h"
#include "regexp-stack.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
RegExpStack::RegExpStack() {
// Initialize, if not already initialized.
#ifndef V8_REGEXP_STACK_H_
#define V8_REGEXP_STACK_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Maintains a per-v8thread stack area that can be used by irregexp
// implementation for its backtracking stack.
#include "register-allocator.h"
#include "virtual-frame.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Result::~Result() {
if (is_register()) {
#include "codegen-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Result implementation.
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
#include "scopes.h"
#include "rewriter.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class AstOptimizer: public AstVisitor {
#ifndef V8_REWRITER_H_
#define V8_REWRITER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Currently, the rewriter takes function literals (only top-level)
#include "smart-pointer.h"
#include "parser.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define RUNTIME_ASSERT(value) do { \
#ifndef V8_RUNTIME_H_
#define V8_RUNTIME_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The interface to C++ runtime functions.
#include "ast.h"
#include "scanner.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// Character predicates
#include "token.h"
#include "char-predicates-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class UTF8Buffer {
#include "scopeinfo.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static int CompareLocal(Variable* const* v, Variable* const* w) {
#include "variables.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Scope information represents information about a functions's
// scopes (currently only one, because we don't do any inlining)
#include "scopeinfo.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// A Zone allocator for use with LocalsMap.
#include "ast.h"
#include "hashmap.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// A hash map to support fast local variable declaration and lookup.
#include "stub-cache.h"
#include "v8threads.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Encoding: a RelativeAddress must be able to fit in a pointer:
// it is encoded as an Address with (from MS to LS bits):
#include "hashmap.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// A TypeCode is used to distinguish different kinds of external reference.
// It is a single bit to make testing for types easy.
#include "../public/debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Debug event handler for interactive debugging.
void handle_debug_event(v8::DebugEvent event,
#ifndef V8_SMART_POINTER_H_
#define V8_SMART_POINTER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// A 'scoped array pointer' that calls DeleteArray on its pointer when the
#include "serialize.h"
#include "snapshot.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
bool Snapshot::Deserialize(const byte* content, int len) {
Deserializer des(content, len);
#include "snapshot.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
const byte Snapshot::data_[] = { 0 };
int Snapshot::size_ = 0;
#ifndef V8_SNAPSHOT_H_
#define V8_SNAPSHOT_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class Snapshot {
public:
#include "memory.h"
#include "spaces.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
#include "mark-compact.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// For contiguous spaces, top should be in the space (or at the end) and limit
// should be the end of the space.
#include "list-inl.h"
#include "log.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------------
// Heap structures:
#include "factory.h"
#include "string-stream.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
static const int kMentionedObjectCacheMaxSize = 256;
static List<HeapObject*, PreallocatedStorage>* debug_object_cache = NULL;
#ifndef V8_STRING_STREAM_H_
#define V8_STRING_STREAM_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class StringAllocator {
#include "ic-inl.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -----------------------------------------------------------------------
// StubCache implementation.
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// The stub cache is used for megamorphic calls and property accesses.
#include "token.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef DEBUG
#define T(name, string, precedence) #name,
#ifndef V8_TOKEN_H_
#define V8_TOKEN_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// TOKEN_LIST takes a list of 3 macros M, all of which satisfy the
// same signature M(name, string, precedence), where name is the
#include "string-stream.h"
#include "platform.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
ThreadLocalTop Top::thread_local_;
Mutex* Top::break_access_ = OS::CreateMutex();
#include "frames-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define RETURN_IF_SCHEDULED_EXCEPTION() \
#include "scopes.h"
#include "usage-analyzer.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Weight boundaries
static const int MinWeight = 1;
#ifndef V8_USAGE_ANALYZER_H_
#define V8_USAGE_ANALYZER_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Compute usage counts for all variables.
// Used for variable allocation.
#include "sys/stat.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Implementation is from "Hacker's Delight" by Henry S. Warren, Jr.,
#include <stdlib.h>
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// General helper functions
#include "v8-counters.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define HT(name, caption) \
HistogramTimer Counters::name = { #caption, NULL, false, 0, 0 }; \
#include "counters.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#define HISTOGRAM_TIMER_LIST(HT) \
/* Garbage collection timers. */ \
#include "stub-cache.h"
#include "oprofile-agent.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
bool V8::has_been_setup_ = false;
bool V8::has_been_disposed_ = false;
#include "heap-inl.h"
#include "messages.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class V8 : public AllStatic {
public:
#ifndef V8_V8THREADS_H_
#define V8_V8THREADS_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class ThreadState {
#include "scopes.h"
#include "variables.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// ----------------------------------------------------------------------------
// Implementation UseCount.
#include "zone.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class UseCount BASE_EMBEDDED {
public:
// number. This define is mainly used by the SCons build script.
#define SONAME ""
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
int Version::major_ = MAJOR_VERSION;
int Version::minor_ = MINOR_VERSION;
#ifndef V8_VERSION_H_
#define V8_VERSION_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class Version {
public:
#include "codegen-inl.h"
#include "register-allocator-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// VirtualFrame implementation.
#include "cpu.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Condition NegateCondition(Condition cc) {
return static_cast<Condition>(cc ^ 1);
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Register no_reg = { -1 };
#include "stub-cache.h"
#include "unicode.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void ArgumentsAccessStub::GenerateNewObject(MacroAssembler* a) {
UNIMPLEMENTED();
#ifndef V8_X64_ASSEMBLER_X64_H_
#define V8_X64_ASSEMBLER_X64_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// CPU Registers.
//
#include "v8.h"
#include "codegen-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void Builtins::Generate_Adaptor(MacroAssembler* masm,
Builtins::CFunctionId id) {
#include "register-allocator-inl.h"
#include "codegen.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
CodeGenerator::CodeGenerator(int buffer_size,
Handle<Script> script,
#ifndef V8_X64_CODEGEN_X64_H_
#define V8_X64_CODEGEN_X64_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declarations
class DeferredCode;
#include "cpu.h"
#include "macro-assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void CPU::Setup() {
CpuFeatures::Probe();
#include "debug.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
#ifdef ENABLE_DEBUGGER_SUPPORT
#ifndef V8_X64_FRAMES_X64_H_
#define V8_X64_FRAMES_X64_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// TODO(x64): This is a stub, mostly just a copy of the ia32 bit version.
// This will all need to change to be correct for x64.
#include "runtime.h"
#include "stub-cache.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void KeyedLoadIC::ClearInlinedVersion(Address address) {
#include "bootstrapper.h"
#include "codegen-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
MacroAssembler::MacroAssembler(void* buffer, int size)
: Assembler(buffer, size),
#include "assembler.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Forward declaration.
class JumpTarget;
#include "register-allocator.h"
#include "scopes.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// -------------------------------------------------------------------------
// Virtual frames
#include "zone.h"
#include "v8-counters.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
inline void* Zone::New(int size) {
#include "zone-inl.h"
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
Address Zone::position_ = 0;
#ifndef V8_ZONE_H_
#define V8_ZONE_H_
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
// Zone scopes are in one of two modes. Either they delete the zone
// This function is in namespace v8::internal to be friend with class
// v8::internal::Debug.
-namespace v8 { namespace internal { // NOLINT
+namespace v8 {
+namespace internal {
// Collect the currently debugged functions.
Handle<FixedArray> GetDebuggedFunctions() {
}
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
class CodeGeneratorPatcher {
public:
using namespace v8::internal;
-namespace v8 { namespace internal {
+namespace v8 {
+namespace internal {
void SetVersion(int major, int minor, int build, int patch,
bool candidate, const char* soname) {