![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <compiler.h>
Static Public Member Functions | |
static Handle< SharedFunctionInfo > | Compile (Handle< String > source, Handle< Object > script_name, int line_offset, int column_offset, v8::Extension *extension, ScriptDataImpl *pre_data, Handle< Object > script_data, NativesFlag is_natives_code) |
static Handle< SharedFunctionInfo > | CompileEval (Handle< String > source, Handle< Context > context, bool is_global, LanguageMode language_mode, int scope_position) |
static bool | CompileLazy (CompilationInfo *info) |
static Handle< SharedFunctionInfo > | BuildFunctionInfo (FunctionLiteral *node, Handle< Script > script) |
static void | SetFunctionInfo (Handle< SharedFunctionInfo > function_info, FunctionLiteral *lit, bool is_toplevel, Handle< Script > script) |
static void | RecordFunctionCompilation (Logger::LogEventsAndTags tag, CompilationInfo *info, Handle< SharedFunctionInfo > shared) |
Static Public Attributes | |
static const int | kDefaultMaxOptCount = 10 |
static const int | kMaxInliningLevels = 3 |
static const int | kCallsUntilPrimitiveOpt = 200 |
Definition at line 272 of file compiler.h.
|
static |
Definition at line 708 of file compiler.cc.
References FunctionLiteral::AllowsLazyCompilation(), ASSERT, ScopeInfo::Create(), ScopeInfo::Empty(), FunctionLiteral::expected_property_count(), FACTORY, LiveEditFunctionTracker::IsActive(), Scope::language_mode(), FullCodeGenerator::MakeCode(), FunctionLiteral::materialized_literal_count(), FunctionLiteral::name(), Handle< T >::null(), Compiler::RecordFunctionCompilation(), FunctionLiteral::scope(), v8::internal::SetExpectedNofPropertiesFromEstimate(), Compiler::SetFunctionInfo(), and V8::UseCrankshaft().
|
static |
Definition at line 473 of file compiler.cc.
References Isolate::compilation_cache(), Isolate::counters(), v8::internal::EXTENDED_MODE, FACTORY, Smi::FromInt(), HEAP, Handle< T >::is_null(), CompilationCache::LookupScript(), v8::internal::NATIVES_CODE, v8::internal::NULL, CompilationCache::PutScript(), Isolate::ReportPendingMessages(), v8::internal::STRICT_MODE, and Script::TYPE_NATIVE.
Referenced by Script::New().
|
static |
Definition at line 547 of file compiler.cc.
References ASSERT, Isolate::compilation_cache(), Isolate::counters(), v8::internal::EXTENDED_MODE, Isolate::factory(), HEAP, Handle< T >::is_null(), CompilationCache::LookupEval(), Factory::NewScript(), CompilationCache::PutEval(), and v8::internal::STRICT_MODE.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 605 of file compiler.cc.
References ASSERT, FunctionLiteral::ast_node_count(), Isolate::counters(), ScopeInfo::Create(), v8::internal::DELETE_ON_EXIT, ScopeInfo::Empty(), FunctionLiteral::expected_property_count(), FunctionLiteral::flags(), FunctionLiteral::has_only_simple_this_property_assignments(), Isolate::has_pending_exception(), v8::internal::kDontInline, v8::internal::kDontOptimize, AstNode::kNoNumber, v8::internal::kNoParsingFlags, ParserApi::Parse(), Compiler::RecordFunctionCompilation(), v8::internal::SetExpectedNofPropertiesFromEstimate(), Isolate::StackOverflow(), FunctionLiteral::this_property_assignments(), and V8::UseCrankshaft().
|
static |
Definition at line 790 of file compiler.cc.
References String::cast(), GDBJIT, v8::internal::GetScriptLineNumber(), PROFILE, and v8::internal::USE().
Referenced by Compiler::BuildFunctionInfo(), and Compiler::CompileLazy().
|
static |
Definition at line 762 of file compiler.cc.
References FunctionLiteral::AllowsLazyCompilation(), Scope::arguments(), FunctionLiteral::ast_node_count(), FunctionLiteral::end_position(), FunctionLiteral::flags(), FunctionLiteral::function_token_position(), FunctionLiteral::has_duplicate_parameters(), FunctionLiteral::has_only_simple_this_property_assignments(), FunctionLiteral::inferred_name(), FunctionLiteral::is_anonymous(), FunctionLiteral::is_expression(), FunctionLiteral::is_function(), v8::internal::kDontInline, v8::internal::kDontOptimize, FunctionLiteral::language_mode(), v8::internal::NULL, FunctionLiteral::parameter_count(), FunctionLiteral::scope(), FunctionLiteral::start_position(), and FunctionLiteral::this_property_assignments().
Referenced by Compiler::BuildFunctionInfo().
|
static |
Definition at line 281 of file compiler.h.
|
static |
Definition at line 276 of file compiler.h.
Referenced by RuntimeProfiler::OptimizeNow(), and SharedFunctionInfo::ResetForNewContext().
|
static |
Definition at line 278 of file compiler.h.
Referenced by Isolate::CaptureCurrentStackTrace(), and v8::internal::RUNTIME_FUNCTION().