| 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 10763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10774 | 10774 |
| 10775 if (sinfo->number_of_context_slots() > Context::MIN_CONTEXT_SLOTS) { | 10775 if (sinfo->number_of_context_slots() > Context::MIN_CONTEXT_SLOTS) { |
| 10776 index = scope_info->ContextSlotIndex(isolate->heap()->arguments_symbol(), | 10776 index = scope_info->ContextSlotIndex(isolate->heap()->arguments_symbol(), |
| 10777 NULL); | 10777 NULL); |
| 10778 if (index != -1) { | 10778 if (index != -1) { |
| 10779 return Handle<Object>(function_context->get(index), isolate); | 10779 return Handle<Object>(function_context->get(index), isolate); |
| 10780 } | 10780 } |
| 10781 } | 10781 } |
| 10782 | 10782 |
| 10783 const int length = frame->ComputeParametersCount(); | 10783 const int length = frame->ComputeParametersCount(); |
| 10784 UNIMPLEMENTED(); | |
| 10785 Handle<JSObject> arguments = | 10784 Handle<JSObject> arguments = |
| 10786 isolate->factory()->NewArgumentsObject(function, length); | 10785 isolate->factory()->NewArgumentsObject(function, length); |
| 10787 Handle<FixedArray> array = isolate->factory()->NewFixedArray(length); | 10786 Handle<FixedArray> array = isolate->factory()->NewFixedArray(length); |
| 10788 | 10787 |
| 10789 AssertNoAllocation no_gc; | 10788 AssertNoAllocation no_gc; |
| 10790 WriteBarrierMode mode = array->GetWriteBarrierMode(no_gc); | 10789 WriteBarrierMode mode = array->GetWriteBarrierMode(no_gc); |
| 10791 for (int i = 0; i < length; i++) { | 10790 for (int i = 0; i < length; i++) { |
| 10792 array->set(i, frame->GetParameter(i), mode); | 10791 array->set(i, frame->GetParameter(i), mode); |
| 10793 } | 10792 } |
| 10794 arguments->set_elements(*array); | 10793 arguments->set_elements(*array); |
| (...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12298 } else { | 12297 } else { |
| 12299 // Handle last resort GC and make sure to allow future allocations | 12298 // Handle last resort GC and make sure to allow future allocations |
| 12300 // to grow the heap without causing GCs (if possible). | 12299 // to grow the heap without causing GCs (if possible). |
| 12301 COUNTERS->gc_last_resort_from_js()->Increment(); | 12300 COUNTERS->gc_last_resort_from_js()->Increment(); |
| 12302 HEAP->CollectAllGarbage(false); | 12301 HEAP->CollectAllGarbage(false); |
| 12303 } | 12302 } |
| 12304 } | 12303 } |
| 12305 | 12304 |
| 12306 | 12305 |
| 12307 } } // namespace v8::internal | 12306 } } // namespace v8::internal |
| OLD | NEW |