| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3728 } | 3728 } |
| 3729 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); | 3729 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); |
| 3730 LPointerMap* pointers = instr->pointer_map(); | 3730 LPointerMap* pointers = instr->pointer_map(); |
| 3731 LEnvironment* env = instr->deoptimization_environment(); | 3731 LEnvironment* env = instr->deoptimization_environment(); |
| 3732 RecordPosition(pointers->position()); | 3732 RecordPosition(pointers->position()); |
| 3733 RegisterEnvironmentForDeoptimization(env); | 3733 RegisterEnvironmentForDeoptimization(env); |
| 3734 SafepointGenerator safepoint_generator(this, | 3734 SafepointGenerator safepoint_generator(this, |
| 3735 pointers, | 3735 pointers, |
| 3736 env->deoptimization_index()); | 3736 env->deoptimization_index()); |
| 3737 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 3737 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 3738 __ push(Immediate(Smi::FromInt(strict_mode_flag()))); |
| 3738 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, &safepoint_generator); | 3739 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, &safepoint_generator); |
| 3739 } | 3740 } |
| 3740 | 3741 |
| 3741 | 3742 |
| 3742 void LCodeGen::DoStackCheck(LStackCheck* instr) { | 3743 void LCodeGen::DoStackCheck(LStackCheck* instr) { |
| 3743 // Perform stack overflow check. | 3744 // Perform stack overflow check. |
| 3744 NearLabel done; | 3745 NearLabel done; |
| 3745 ExternalReference stack_limit = ExternalReference::address_of_stack_limit(); | 3746 ExternalReference stack_limit = ExternalReference::address_of_stack_limit(); |
| 3746 __ cmp(esp, Operand::StaticVariable(stack_limit)); | 3747 __ cmp(esp, Operand::StaticVariable(stack_limit)); |
| 3747 __ j(above_equal, &done); | 3748 __ j(above_equal, &done); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3767 ASSERT(osr_pc_offset_ == -1); | 3768 ASSERT(osr_pc_offset_ == -1); |
| 3768 osr_pc_offset_ = masm()->pc_offset(); | 3769 osr_pc_offset_ = masm()->pc_offset(); |
| 3769 } | 3770 } |
| 3770 | 3771 |
| 3771 | 3772 |
| 3772 #undef __ | 3773 #undef __ |
| 3773 | 3774 |
| 3774 } } // namespace v8::internal | 3775 } } // namespace v8::internal |
| 3775 | 3776 |
| 3776 #endif // V8_TARGET_ARCH_IA32 | 3777 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |