Lines Matching refs:environment

360 void LCodeGen::WriteTranslation(LEnvironment* environment,
362 if (environment == NULL) return;
364 // The translation includes one command per value in the environment.
365 int translation_size = environment->values()->length();
367 int height = translation_size - environment->parameter_count();
369 WriteTranslation(environment->outer(), translation);
370 int closure_id = DefineDeoptimizationLiteral(environment->closure());
371 switch (environment->frame_type()) {
373 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
385 LOperand* value = environment->values()->at(i);
388 if (environment->spilled_registers() != NULL && value != NULL) {
390 environment->spilled_registers()[value->index()] != NULL) {
393 environment->spilled_registers()[value->index()],
394 environment->HasTaggedValueAt(i));
397 environment->spilled_double_registers()[value->index()] != NULL) {
401 environment->spilled_double_registers()[value->index()],
406 AddToTranslation(translation, value, environment->HasTaggedValueAt(i));
516 LEnvironment* environment, Safepoint::DeoptMode mode) {
517 if (!environment->HasBeenRegistered()) {
522 // Layout of the environment:
533 for (LEnvironment* e = environment; e != NULL; e = e->outer()) {
540 WriteTranslation(environment, &translation);
543 environment->Register(deoptimization_index,
546 deoptimizations_.Add(environment);
551 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) {
552 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
553 ASSERT(environment->HasBeenRegistered());
554 int id = environment->deoptimization_index();
825 DeoptimizeIf(no_condition, instr->environment());
846 DeoptimizeIf(zero, instr->environment());
903 DeoptimizeIf(no_condition, instr->environment());
933 DeoptimizeIf(zero, instr->environment());
942 DeoptimizeIf(sign, instr->environment());
952 DeoptimizeIf(zero, instr->environment());
962 DeoptimizeIf(not_zero, instr->environment());
1023 DeoptimizeIf(overflow, instr->environment());
1033 DeoptimizeIf(no_condition, instr->environment());
1038 DeoptimizeIf(sign, instr->environment());
1102 DeoptimizeIf(not_zero, instr->environment());
1124 DeoptimizeIf(not_zero, instr->environment());
1153 DeoptimizeIf(overflow, instr->environment());
1331 DeoptimizeIf(overflow, instr->environment());
1477 DeoptimizeIf(zero, instr->environment());
1526 DeoptimizeIf(no_condition, instr->environment());
2110 DeoptimizeIf(equal, instr->environment());
2138 DeoptimizeIf(equal, instr->environment());
2168 DeoptimizeIf(equal, instr->environment());
2189 DeoptimizeIf(equal, instr->environment());
2305 DeoptimizeIf(not_equal, instr->environment());
2331 DeoptimizeIf(not_equal, instr->environment());
2345 DeoptimizeIf(equal, instr->environment());
2415 DeoptimizeIf(below_equal, instr->environment());
2435 DeoptimizeIf(equal, instr->environment());
2451 DeoptimizeIf(equal, instr->environment());
2517 DeoptimizeIf(negative, instr->environment());
2621 DeoptimizeIf(equal, instr->environment());
2623 DeoptimizeIf(below, instr->environment());
2651 DeoptimizeIf(above, instr->environment());
2791 DeoptimizeIf(not_equal, instr->environment());
2847 DeoptimizeIf(negative, instr->environment());
2905 DeoptimizeIf(not_zero, instr->environment());
2912 DeoptimizeIf(equal, instr->environment());
2918 DeoptimizeIf(below, instr->environment());
2926 DeoptimizeIf(not_zero, instr->environment());
2937 DeoptimizeIf(equal, instr->environment());
2962 DeoptimizeIf(equal, instr->environment());
2973 DeoptimizeIf(not_zero, instr->environment());
2980 DeoptimizeIf(below, instr->environment());
3043 DeoptimizeIf(not_equal, instr->environment());
3372 DeoptimizeIf(below_equal, instr->environment());
3375 DeoptimizeIf(above_equal, instr->environment());
3713 // the environment's HContext or HInlinedContext value.
3766 // the environment's HContext or HInlinedContext value.
3791 DeoptimizeIf(not_zero, instr->environment());
3863 DeoptimizeIf(not_equal, instr->environment());
3883 DeoptimizeIf(no_condition, instr->environment());
3903 DeoptimizeIf(not_equal, instr->environment());
3904 DeoptimizeIf(parity_even, instr->environment()); // NaN.
3908 DeoptimizeIf(not_equal, instr->environment());
3915 DeoptimizeIf(not_equal, instr->environment());
3916 DeoptimizeIf(parity_even, instr->environment()); // NaN.
3922 DeoptimizeIf(not_zero, instr->environment());
3978 instr->environment());
4011 DeoptimizeIf(no_condition, instr->environment());
4049 DeoptimizeIf(greater, instr->environment());
4080 DeoptimizeIf(not_equal, instr->environment());
4081 DeoptimizeIf(parity_even, instr->environment()); // NaN.
4092 DeoptimizeIf(not_zero, instr->environment());
4102 DeoptimizeIf(not_zero, instr->environment());
4109 DeoptimizeIf(zero, instr->environment());
4129 DeoptimizeIf(not_equal, instr->environment());
4131 DeoptimizeIf(below, instr->environment());
4136 DeoptimizeIf(above, instr->environment());
4147 DeoptimizeIf(tag == 0 ? not_zero : zero, instr->environment());
4152 DeoptimizeIf(not_equal, instr->environment());
4169 DeoptimizeIf(not_equal, instr->environment());
4189 DoCheckMapCommon(reg, map, instr->hydrogen()->mode(), instr->environment());
4222 DeoptimizeIf(not_equal, instr->environment());
4253 ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment());
4263 ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment());
4373 DeoptimizeIf(not_equal, instr->environment());
4534 Handle<FixedArray> literals(instr->environment()->closure()->literals());
4781 LEnvironment* env = instr->environment();
4788 DeoptimizeIf(no_condition, instr->environment());
4817 LEnvironment* env = instr->environment();
4834 LEnvironment* env = instr->environment();
4874 // This is a pseudo-instruction that ensures that the environment here is
4877 LEnvironment* environment = instr->environment();
4878 environment->SetSpilledRegisters(instr->SpilledRegisterArray(),
4881 // If the environment were already registered, we would have no way of
4883 ASSERT(!environment->HasBeenRegistered());
4884 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
4906 DeoptimizeIf(equal, instr->environment());
4909 DeoptimizeIf(equal, instr->environment());
4912 DeoptimizeIf(zero, instr->environment());
4916 DeoptimizeIf(below_equal, instr->environment());
4931 DeoptimizeIf(not_equal, instr->environment());
4945 DeoptimizeIf(equal, instr->environment());
4953 DeoptimizeIf(not_equal, instr->environment());