| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 frame_->Enter(); | 204 frame_->Enter(); |
| 205 // tos: code slot | 205 // tos: code slot |
| 206 | 206 |
| 207 // Allocate space for locals and initialize them. This also checks | 207 // Allocate space for locals and initialize them. This also checks |
| 208 // for stack overflow. | 208 // for stack overflow. |
| 209 frame_->AllocateStackSlots(); | 209 frame_->AllocateStackSlots(); |
| 210 | 210 |
| 211 frame_->AssertIsSpilled(); | 211 frame_->AssertIsSpilled(); |
| 212 int heap_slots = scope()->num_heap_slots(); | 212 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
| 213 if (heap_slots > 0) { | 213 if (heap_slots > 0) { |
| 214 // Allocate local context. | 214 // Allocate local context. |
| 215 // Get outer context and create a new context based on it. | 215 // Get outer context and create a new context based on it. |
| 216 __ ldr(r0, frame_->Function()); | 216 __ ldr(r0, frame_->Function()); |
| 217 frame_->EmitPush(r0); | 217 frame_->EmitPush(r0); |
| 218 if (heap_slots <= FastNewContextStub::kMaximumSlots) { | 218 if (heap_slots <= FastNewContextStub::kMaximumSlots) { |
| 219 FastNewContextStub stub(heap_slots); | 219 FastNewContextStub stub(heap_slots); |
| 220 frame_->CallStub(&stub, 1); | 220 frame_->CallStub(&stub, 1); |
| 221 } else { | 221 } else { |
| 222 frame_->CallRuntime(Runtime::kNewContext, 1); | 222 frame_->CallRuntime(Runtime::kNewContext, 1); |
| (...skipping 7140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7363 BinaryOpIC::GetName(runtime_operands_type_)); | 7363 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7364 return name_; | 7364 return name_; |
| 7365 } | 7365 } |
| 7366 | 7366 |
| 7367 | 7367 |
| 7368 #undef __ | 7368 #undef __ |
| 7369 | 7369 |
| 7370 } } // namespace v8::internal | 7370 } } // namespace v8::internal |
| 7371 | 7371 |
| 7372 #endif // V8_TARGET_ARCH_ARM | 7372 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |