| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 Immediate(isolate()->factory()->undefined_value())); | 148 Immediate(isolate()->factory()->undefined_value())); |
| 149 __ bind(&ok); | 149 __ bind(&ok); |
| 150 } | 150 } |
| 151 | 151 |
| 152 __ push(ebp); // Caller's frame pointer. | 152 __ push(ebp); // Caller's frame pointer. |
| 153 __ mov(ebp, esp); | 153 __ mov(ebp, esp); |
| 154 __ push(esi); // Callee's context. | 154 __ push(esi); // Callee's context. |
| 155 __ push(edi); // Callee's JS Function. | 155 __ push(edi); // Callee's JS Function. |
| 156 | 156 |
| 157 { Comment cmnt(masm_, "[ Allocate locals"); | 157 { Comment cmnt(masm_, "[ Allocate locals"); |
| 158 int locals_count = info->scope()->num_stack_slots(); | 158 int locals_count = info->scope()->num_stack_allocs(); |
| 159 if (locals_count == 1) { | 159 if (locals_count == 1) { |
| 160 __ push(Immediate(isolate()->factory()->undefined_value())); | 160 __ push(Immediate(isolate()->factory()->undefined_value())); |
| 161 } else if (locals_count > 1) { | 161 } else if (locals_count > 1) { |
| 162 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); | 162 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); |
| 163 for (int i = 0; i < locals_count; i++) { | 163 for (int i = 0; i < locals_count; i++) { |
| 164 __ push(eax); | 164 __ push(eax); |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| (...skipping 4080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4249 __ add(Operand(edx), Immediate(masm_->CodeObject())); | 4249 __ add(Operand(edx), Immediate(masm_->CodeObject())); |
| 4250 __ jmp(Operand(edx)); | 4250 __ jmp(Operand(edx)); |
| 4251 } | 4251 } |
| 4252 | 4252 |
| 4253 | 4253 |
| 4254 #undef __ | 4254 #undef __ |
| 4255 | 4255 |
| 4256 } } // namespace v8::internal | 4256 } } // namespace v8::internal |
| 4257 | 4257 |
| 4258 #endif // V8_TARGET_ARCH_IA32 | 4258 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |