Definition at line 23 of file typing.h.
Definition at line 70 of file typing.cc.
74 JavaScriptFrameIterator it(isolate());
75 JavaScriptFrame* frame = it.frame();
81 int params = scope->num_parameters();
82 int locals = scope->StackLocalCount();
87 for (
int i = 0;
i < params;
i++) {
91 for (
int i = 0;
i < locals;
i++) {
96 if (FLAG_trace_osr && FLAG_print_scopes) {
97 PrintObserved(scope->receiver(),
101 for (
int i = 0;
i < params;
i++) {
102 PrintObserved(scope->parameter(
i),
103 frame->GetParameter(
i),
107 ZoneList<Variable*> local_vars(locals, zone());
108 ZoneList<Variable*> context_vars(scope->ContextLocalCount(), zone());
109 scope->CollectStackAndContextLocals(&local_vars, &context_vars);
110 for (
int i = 0;
i < locals;
i++) {
111 PrintObserved(local_vars.at(
i),
112 frame->GetExpression(
i),
int parameter_index(int index)
Effect ObservedOnStack(Object *value)
int stack_local_index(int index)
BailoutId osr_ast_id() const
Handle< JSFunction > closure() const
void Seq(Var var, Effect effect)
Bounds LookupBounds(Var var)
#define DCHECK_EQ(v1, v2)
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
References v8::internal::List< T, AllocationPolicy >::at(), v8::internal::CompilationInfo::closure(), v8::internal::Scope::CollectStackAndContextLocals(), v8::internal::Scope::ContextLocalCount(), DCHECK_EQ, v8::internal::JavaScriptFrame::function(), v8::internal::StandardFrame::GetExpression(), v8::internal::JavaScriptFrame::GetParameter(), info_, v8::internal::EffectsMixin< Var, Base, Effects >::LookupBounds(), v8::internal::Scope::num_parameters(), ObservedOnStack(), v8::internal::CompilationInfo::osr_ast_id(), v8::internal::IterationStatement::OsrEntryId(), v8::internal::Scope::parameter(), parameter_index(), v8::internal::Scope::receiver(), v8::internal::JavaScriptFrame::receiver(), v8::internal::CompilationInfo::scope(), v8::internal::EffectsMixin< Var, Base, Effects >::Seq(), stack_local_index(), v8::internal::Scope::StackLocalCount(), and store_.
Definition at line 36 of file typing.cc.
38 Scope* scope = info->scope();
42 if (scope->is_function_scope() && scope->function() !=
NULL) {
43 RECURSE(visitor->VisitVariableDeclaration(scope->function()));
45 RECURSE(visitor->VisitDeclarations(scope->declarations()));
46 RECURSE(visitor->VisitStatements(info->function()->body()));
AstTyper(CompilationInfo *info)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
References AstTyper(), v8::internal::Scope::declarations(), v8::internal::CompilationInfo::function(), v8::internal::Scope::function(), v8::internal::Scope::is_function_scope(), NULL, RECURSE, v8::internal::CompilationInfo::scope(), VisitDeclarations(), VisitStatements(), and v8::internal::CompilationInfo::zone().
Referenced by v8::internal::OptimizedCompileJob::CreateGraph(), and v8::internal::HOptimizedGraphBuilder::TryInline().