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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Label ok; | 140 Label ok; |
141 Label begin; | 141 Label begin; |
142 __ bind(&begin); | 142 __ bind(&begin); |
143 __ testq(rcx, rcx); | 143 __ testq(rcx, rcx); |
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 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); | 147 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); |
148 __ movq(Operand(rsp, receiver_offset), kScratchRegister); | 148 __ movq(Operand(rsp, receiver_offset), kScratchRegister); |
149 __ bind(&ok); | 149 __ bind(&ok); |
150 ASSERT_EQ(kSizeOfFullCodegenStrictModePrologue, ok.pos() - begin.pos()); | 150 ASSERT(!FLAG_age_code || |
| 151 (kSizeOfFullCodegenStrictModePrologue == ok.pos() - begin.pos())); |
151 } | 152 } |
152 | 153 |
153 // Open a frame scope to indicate that there is a frame on the stack. The | 154 // Open a frame scope to indicate that there is a frame on the stack. The |
154 // MANUAL indicates that the scope shouldn't actually generate code to set up | 155 // MANUAL indicates that the scope shouldn't actually generate code to set up |
155 // the frame (that is done below). | 156 // the frame (that is done below). |
156 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 157 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
157 | 158 |
158 __ push(rbp); // Caller's frame pointer. | 159 __ push(rbp); // Caller's frame pointer. |
159 __ movq(rbp, rsp); | 160 __ movq(rbp, rsp); |
160 __ push(rsi); // Callee's context. | 161 __ push(rsi); // Callee's context. |
(...skipping 4356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4517 *context_length = 0; | 4518 *context_length = 0; |
4518 return previous_; | 4519 return previous_; |
4519 } | 4520 } |
4520 | 4521 |
4521 | 4522 |
4522 #undef __ | 4523 #undef __ |
4523 | 4524 |
4524 } } // namespace v8::internal | 4525 } } // namespace v8::internal |
4525 | 4526 |
4526 #endif // V8_TARGET_ARCH_X64 | 4527 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |