Lines Matching refs:environment
221 void LCodeGen::WriteTranslation(LEnvironment* environment,
223 if (environment == NULL) return;
225 // The translation includes one command per value in the environment.
226 int translation_size = environment->translation_size();
228 WriteTranslation(environment->outer(), translation);
229 WriteTranslationFrame(environment, translation);
234 LOperand* value = environment->values()->at(i);
236 environment, translation, value, environment->HasTaggedValueAt(i),
237 environment->HasUint32ValueAt(i), &object_index, &dematerialized_index);
242 void LCodeGen::AddToTranslation(LEnvironment* environment,
251 if (environment->ObjectIsDuplicateAt(object_index)) {
252 int dupe_of = environment->ObjectDuplicateOfAt(object_index);
256 int object_length = environment->ObjectLengthAt(object_index);
257 if (environment->ObjectIsArgumentsAt(object_index)) {
263 int env_offset = environment->translation_size() + dematerialized_index;
266 LOperand* value = environment->values()->at(env_offset + i);
267 AddToTranslation(environment,
270 environment->HasTaggedValueAt(env_offset + i),
271 environment->HasUint32ValueAt(env_offset + i),
318 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment,
320 environment->set_has_been_used();
321 if (!environment->HasBeenRegistered()) {
324 for (LEnvironment* e = environment; e != NULL; e = e->outer()) {
331 WriteTranslation(environment, &translation);
334 environment->Register(deoptimization_index,
337 deoptimizations_.Add(environment, zone());
890 LEnvironment* environment = instr->environment();
891 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
899 DCHECK(environment->HasBeenRegistered());
900 int id = environment->deoptimization_index();
2513 LEnvironment* env = instr->environment();
4235 // the environment's HContext or HInlinedContext value.
4301 // the environment's HContext or HInlinedContext value.
4405 // This is a pseudo-instruction that ensures that the environment here is
4408 LEnvironment* environment = instr->environment();
4410 // If the environment were already registered, we would have no way of
4412 DCHECK(!environment->HasBeenRegistered());
4413 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
4737 LEnvironment* env = instr->environment();
4754 LEnvironment* env = instr->environment();