| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 __ j(zero, &ok, Label::kNear); | 144 __ j(zero, &ok, Label::kNear); |
| 145 // +1 for return address. | 145 // +1 for return address. |
| 146 int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize; | 146 int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize; |
| 147 __ mov(ecx, Operand(esp, receiver_offset)); | 147 __ mov(ecx, Operand(esp, receiver_offset)); |
| 148 __ JumpIfSmi(ecx, &ok); | 148 __ JumpIfSmi(ecx, &ok); |
| 149 __ CmpObjectType(ecx, JS_GLOBAL_PROXY_TYPE, ecx); | 149 __ CmpObjectType(ecx, JS_GLOBAL_PROXY_TYPE, ecx); |
| 150 __ j(not_equal, &ok, Label::kNear); | 150 __ j(not_equal, &ok, Label::kNear); |
| 151 __ mov(Operand(esp, receiver_offset), | 151 __ mov(Operand(esp, receiver_offset), |
| 152 Immediate(isolate()->factory()->undefined_value())); | 152 Immediate(isolate()->factory()->undefined_value())); |
| 153 __ bind(&ok); | 153 __ bind(&ok); |
| 154 ASSERT_EQ(kSizeOfFullCodegenStrictModePrologue, ok.pos() - start.pos()); | 154 ASSERT(!FLAG_age_code || |
| 155 (kSizeOfFullCodegenStrictModePrologue == ok.pos() - start.pos())); |
| 155 } | 156 } |
| 156 | 157 |
| 157 // Open a frame scope to indicate that there is a frame on the stack. The | 158 // Open a frame scope to indicate that there is a frame on the stack. The |
| 158 // MANUAL indicates that the scope shouldn't actually generate code to set up | 159 // MANUAL indicates that the scope shouldn't actually generate code to set up |
| 159 // the frame (that is done below). | 160 // the frame (that is done below). |
| 160 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 161 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 161 | 162 |
| 162 __ push(ebp); // Caller's frame pointer. | 163 __ push(ebp); // Caller's frame pointer. |
| 163 __ mov(ebp, esp); | 164 __ mov(ebp, esp); |
| 164 __ push(esi); // Callee's context. | 165 __ push(esi); // Callee's context. |
| (...skipping 4353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4518 *stack_depth = 0; | 4519 *stack_depth = 0; |
| 4519 *context_length = 0; | 4520 *context_length = 0; |
| 4520 return previous_; | 4521 return previous_; |
| 4521 } | 4522 } |
| 4522 | 4523 |
| 4523 #undef __ | 4524 #undef __ |
| 4524 | 4525 |
| 4525 } } // namespace v8::internal | 4526 } } // namespace v8::internal |
| 4526 | 4527 |
| 4527 #endif // V8_TARGET_ARCH_IA32 | 4528 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |