Home | History | Annotate | Download | only in crankshaft

Lines Matching refs:environment

19 #include "src/crankshaft/hydrogen-environment-liveness.h"
170 HEnvironment* environment = last_environment();
173 environment->closure()->shared()->VerifyBailoutId(ast_id));
175 int push_count = environment->push_count();
176 int pop_count = environment->pop_count();
181 instr->set_closure(environment->closure());
187 instr->AddPushedValue(environment->ExpressionStackAt(i));
189 for (GrowableBitVector::Iterator it(environment->assigned_variables(),
194 instr->AddAssignedValue(index, environment->Lookup(index));
196 environment->ClearHistory();
338 // values in the environment, these phis may be eliminated later).
603 // unconditional goto and agree on their environment node id.
791 HEnvironment* env = builder->environment();
809 HEnvironment* env = builder()->environment();
1017 // Merge non-deopt blocks first to ensure environment has right size for
1089 HEnvironment* env = builder_->environment();
1128 HEnvironment* env = builder_->environment();
1139 HEnvironment* env = builder_->environment()->Copy();
1172 builder_->environment()->Push(increment_);
1262 HEnvironment* entry_env = environment()->CopyAsLoopHeader(header);
1353 environment()->Push(new_elements);
1355 environment()->Push(elements);
1360 environment()->Push(result);
1372 HValue* checked_elements = environment()->Top();
1382 environment()->Push(elements);
1385 return environment()->Pop();
1405 environment()->Push(new_elements);
1409 environment()->Push(elements);
1413 return environment()->Pop();
1696 probe_loop.BeginBody(2); // Drop entry, count from last environment to
3301 loop.BeginBody(2); // Drop script_context and depth from last environment
4157 DCHECK(owner->environment()->frame_type() == JS_FUNCTION);
4158 original_length_ = owner->environment()->length();
4171 (owner()->environment()->length() == original_length_ &&
4172 owner()->environment()->frame_type() == JS_FUNCTION));
4179 (owner()->environment()->length() == original_length_ + 1 &&
4180 owner()->environment()->frame_type() == JS_FUNCTION));
4190 // The value is tracked in the bailout environment, and communicated
4191 // through the environment as the result of the expression.
4441 // environment will be used by the Lithium translation as the initial
4442 // environment on graph entry, but it has now been mutated by the
4444 // environment uses values which have not been defined yet. These
4446 // translation, so they cannot have an environment effect. The edge to
4451 // TODO(kmillikin): Fix this. Stop mutating the initial environment.
4453 // values (but not instructions), present in the initial environment and
4455 HEnvironment* initial_env = environment()->CopyWithoutHistory();
4640 HEnvironment* prolog_env = environment();
4641 int parameter_count = environment()->parameter_count();
4646 environment()->Bind(i, parameter);
4651 for (int i = parameter_count + 1; i < environment()->length(); ++i) {
4652 environment()->Bind(i, undefined_constant);
4656 HEnvironment* initial_env = environment()->CopyWithoutHistory();
4661 // Initialize context of prolog environment to undefined.
4666 environment()->BindContext(context);
4683 environment()->Bind(scope->arguments(), graph()->GetArgumentsObject());
4728 HValue* outer_context = environment()->context();
4743 environment()->BindContext(inner_context);
4756 HValue* inner_context = environment()->context();
4762 environment()->BindContext(outer_context);
4889 HValue* context = environment()->context();
4903 environment()->BindContext(context);
4921 HValue* context = environment()->context();
4935 environment()->BindContext(context);
4951 HValue* result = environment()->Pop();
4968 HValue* receiver = environment()->arguments_environment()->Lookup(0);
4986 HValue* rhs = environment()->arguments_environment()->Lookup(1);
4992 HValue* rhs = environment()->arguments_environment()->Lookup(1);
5003 // environment in sync with full-codegen since some visitors (e.g.
5363 enumerable = environment()->ExpressionStackAt(4);
5364 HValue* index = environment()->ExpressionStackAt(0);
5365 HValue* limit = environment()->ExpressionStackAt(1);
5386 Add<HLoadKeyed>(environment()->ExpressionStackAt(2), // Enum cache.
5392 Add<HCheckMapValue>(enumerable, environment()->ExpressionStackAt(3));
5597 HValue* context = environment()->context();
5899 // The object is expected in the bailout environment during computation
5995 Handle<LiteralsArray> literals(environment()->closure()->literals(),
6064 // The array is expected in the bailout environment during computation
7075 HValue* old_value = environment()->Lookup(var);
7096 HValue* env_value = environment()->Lookup(var);
7186 HValue* value = environment()->Pop();
7772 if (!environment()->Lookup(proxy->var())->CheckFlag(HValue::kIsArguments)) {
7788 int argument_count = environment()->
7807 int argument_count = environment()->
8130 environment()->SetExpressionStackAt(0, function);
8181 environment()->SetExpressionStackAt(1, function);
8182 environment()->SetExpressionStackAt(0, receiver);
8302 HEnvironment* env = environment();
8460 environment()->CopyForInlining(target,
8724 HValue* receiver = environment()->ExpressionStackAt(args_count_no_receiver);
8795 // an environment simulation here.
9383 DCHECK_EQ(environment()->arguments_environment()->parameter_count(),
9412 environment()->ExpressionStackAt(receiver_index), checked_function);
9413 environment()->SetExpressionStackAt(receiver_index, receiver);
9417 environment()->RemoveExpressionStackAt(call_index);
9682 environment()->SetExpressionStackAt(0, function);
9731 environment()->SetExpressionStackAt(0, function);
9768 environment()->SetExpressionStackAt(receiver_index, receiver);
9815 HValue* constructor = environment()->ExpressionStackAt(argument_count);
9825 HValue* argument = environment()->Top();
9867 // We should have the function plus array arguments on the environment stack.
9868 DCHECK(environment()->length() >= (argument_count + 1));
9976 DCHECK(environment()->ExpressionStackAt(receiver_index) == function);
9977 environment()->SetExpressionStackAt(receiver_index, receiver);
9997 environment()->SetExpressionStackAt(receiver_index, function);
10747 environment()->SetExpressionStackAt(0, input);
10753 environment()->SetExpressionStackAt(0, after);
12081 environment()->Bind(variable, value);
12087 HValue* context = environment()->context();
12126 HValue* context = environment()->context();
12384 int argument_count = environment()->
12407 int argument_count = environment()->
13118 // the new value will not be included in this environment's history.
13200 // Outer environment is a copy of this one without the arguments.
13208 // Create artificial constructor stub environment. The receiver should
13223 // Create artificial arguments adaptation environment.
13229 // Get the argument values from the original environment.