Home | History | Annotate | Download | only in src

Lines Matching refs:scope

1554   NoObservableSideEffectsScope scope(this);
2923 new(zone_) HEnvironment(NULL, info->scope(), info->closure(), zone_);
3660 Scope* scope = current_info()->scope();
3661 if (scope->HasIllegalRedeclaration()) {
3665 if (scope->calls_eval()) {
3669 SetUpScope(scope);
3694 if (scope->is_function_scope() && scope->function() != NULL) {
3695 VisitVariableDeclaration(scope->function());
3697 VisitDeclarations(scope->declarations());
3862 void HOptimizedGraphBuilder::SetUpScope(Scope* scope) {
3869 ASSERT_EQ(scope->num_parameters() + 1, environment()->parameter_count());
3890 if (scope->arguments() != NULL) {
3891 if (!scope->arguments()->IsStackAllocated()) {
3895 environment()->Bind(scope->arguments(),
3914 if (stmt->scope() != NULL) {
4680 int length = current_info()->scope()->ContextChainLength(var->scope());
5901 if (current_info()->scope()->arguments() != NULL) {
5905 int count = current_info()->scope()->num_parameters();
5907 if (var == current_info()->scope()->parameter(i)) {
6038 if (current_info()->scope()->arguments() != NULL) {
6041 int count = current_info()->scope()->num_parameters();
6043 if (var == current_info()->scope()->parameter(i)) {
6406 NoObservableSideEffectsScope scope(this);
6412 NoObservableSideEffectsScope scope(this);
7059 if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info)) {
7061 // Parse or scope error, never optimize this function.
7069 if (target_info.scope()->num_heap_slots() > 0) {
7091 if (function->scope()->arguments() != NULL) {
7097 if (!function->scope()->arguments()->IsStackAllocated()) {
7106 ZoneList<Declaration*>* decls = target_info.scope()->declarations();
7126 // The scope info might not have been set if a lazily compiled
7129 ScopeInfo::Create(target_info.scope(), zone());
7172 if (function->scope()->arguments() != NULL) {
7173 ASSERT(function->scope()->arguments()->IsStackAllocated());
7177 inner_env->Bind(function->scope()->arguments(), arguments_object);
7186 function->scope()->arguments(),
7190 VisitDeclarations(target_info.scope()->declarations());
7541 if (current_info()->scope()->arguments() == NULL) return false;
8113 NoObservableSideEffectsScope scope(this);
8136 NoObservableSideEffectsScope scope(this);
8520 if (current_info()->scope()->arguments() != NULL) {
8524 int count = current_info()->scope()->num_parameters();
8526 if (var == current_info()->scope()->parameter(i)) {
10217 Scope* scope,
10232 Initialize(scope->num_parameters() + 1, scope->num_stack_slots(), 0);
10435 int arity = function->scope()->num_parameters();
10462 new(zone()) HEnvironment(outer, function->scope(), target, zone());