Lines Matching refs:scope
676 new(zone()) HEnvironment(NULL, info->scope(), info->closure());
2452 Scope* scope = info()->scope();
2453 if (scope->HasIllegalRedeclaration()) {
2457 if (scope->calls_eval()) {
2461 SetUpScope(scope);
2486 if (scope->is_function_scope() && scope->function() != NULL) {
2487 HandleDeclaration(scope->function(), CONST, NULL, NULL);
2489 VisitDeclarations(scope->declarations());
2634 void HGraphBuilder::SetUpScope(Scope* scope) {
2646 ASSERT_EQ(scope->num_parameters() + 1, environment()->parameter_count());
2666 if (scope->arguments() != NULL) {
2667 if (!scope->arguments()->IsStackAllocated()) {
2671 environment()->Bind(scope->arguments(),
3562 int length = info()->scope()->ContextChainLength(var->scope());
4237 if (info()->scope()->arguments() != NULL) {
4241 int count = info()->scope()->num_parameters();
4243 if (var == info()->scope()->parameter(i)) {
4431 if (info()->scope()->arguments() != NULL) {
4434 int count = info()->scope()->num_parameters();
4436 if (var == info()->scope()->parameter(i)) {
5219 outer_info->scope()->contains_with() ||
5220 outer_info->scope()->num_heap_slots() > 0) {
5261 !Scope::Analyze(&target_info)) {
5263 // Parse or scope error, never optimize this function.
5271 if (target_info.scope()->num_heap_slots() > 0) {
5294 if (function->scope()->arguments() != NULL) {
5300 if (!function->scope()->arguments()->IsStackAllocated()) {
5309 ZoneList<Declaration*>* decls = target_info.scope()->declarations();
5329 // The scope info might not have been set if a lazily compiled
5332 ScopeInfo::Create(target_info.scope());
5383 function->scope()->arguments()));
5385 if (function->scope()->arguments() != NULL) {
5386 ASSERT(function->scope()->arguments()->IsStackAllocated());
5387 environment()->Bind(function->scope()->arguments(),
5390 VisitDeclarations(target_info.scope()->declarations());
5738 if (info()->scope()->arguments() == NULL) return false;
6364 if (info()->scope()->arguments() != NULL) {
6368 int count = info()->scope()->num_parameters();
6370 if (var == info()->scope()->parameter(i)) {
7602 Scope* scope,
7615 Initialize(scope->num_parameters() + 1, scope->num_stack_slots(), 0);
7801 int arity = function->scope()->num_parameters();
7820 new(zone) HEnvironment(outer, function->scope(), target);