| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 __ int3(); | 199 __ int3(); |
| 200 } | 200 } |
| 201 #endif | 201 #endif |
| 202 | 202 |
| 203 frame_->Enter(); | 203 frame_->Enter(); |
| 204 | 204 |
| 205 // Allocate space for locals and initialize them. | 205 // Allocate space for locals and initialize them. |
| 206 frame_->AllocateStackSlots(); | 206 frame_->AllocateStackSlots(); |
| 207 | 207 |
| 208 // Allocate the local context if needed. | 208 // Allocate the local context if needed. |
| 209 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; | 209 int heap_slots = scope()->num_heap_slots(); |
| 210 if (heap_slots > 0) { | 210 if (heap_slots > 0) { |
| 211 Comment cmnt(masm_, "[ allocate local context"); | 211 Comment cmnt(masm_, "[ allocate local context"); |
| 212 // Allocate local context. | 212 // Allocate local context. |
| 213 // Get outer context and create a new context based on it. | 213 // Get outer context and create a new context based on it. |
| 214 frame_->PushFunction(); | 214 frame_->PushFunction(); |
| 215 Result context; | 215 Result context; |
| 216 if (heap_slots <= FastNewContextStub::kMaximumSlots) { | 216 if (heap_slots <= FastNewContextStub::kMaximumSlots) { |
| 217 FastNewContextStub stub(heap_slots); | 217 FastNewContextStub stub(heap_slots); |
| 218 context = frame_->CallStub(&stub, 1); | 218 context = frame_->CallStub(&stub, 1); |
| 219 } else { | 219 } else { |
| (...skipping 8584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8804 } | 8804 } |
| 8805 | 8805 |
| 8806 #endif | 8806 #endif |
| 8807 | 8807 |
| 8808 | 8808 |
| 8809 #undef __ | 8809 #undef __ |
| 8810 | 8810 |
| 8811 } } // namespace v8::internal | 8811 } } // namespace v8::internal |
| 8812 | 8812 |
| 8813 #endif // V8_TARGET_ARCH_X64 | 8813 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |