| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 | 567 |
| 568 // | 568 // |
| 569 // Accessors::FunctionArguments | 569 // Accessors::FunctionArguments |
| 570 // | 570 // |
| 571 | 571 |
| 572 | 572 |
| 573 static MaybeObject* ConstructArgumentsObjectForInlinedFunction( | 573 static MaybeObject* ConstructArgumentsObjectForInlinedFunction( |
| 574 JavaScriptFrame* frame, | 574 JavaScriptFrame* frame, |
| 575 Handle<JSFunction> inlined_function, | 575 Handle<JSFunction> inlined_function, |
| 576 int inlined_frame_index) { | 576 int inlined_frame_index) { |
| 577 UNIMPLEMENTED(); | |
| 578 Factory* factory = Isolate::Current()->factory(); | 577 Factory* factory = Isolate::Current()->factory(); |
| 579 int args_count = inlined_function->shared()->formal_parameter_count(); | 578 int args_count = inlined_function->shared()->formal_parameter_count(); |
| 580 ScopedVector<SlotRef> args_slots(args_count); | 579 ScopedVector<SlotRef> args_slots(args_count); |
| 581 SlotRef::ComputeSlotMappingForArguments(frame, | 580 SlotRef::ComputeSlotMappingForArguments(frame, |
| 582 inlined_frame_index, | 581 inlined_frame_index, |
| 583 &args_slots); | 582 &args_slots); |
| 584 Handle<JSObject> arguments = | 583 Handle<JSObject> arguments = |
| 585 factory->NewArgumentsObject(inlined_function, args_count); | 584 factory->NewArgumentsObject(inlined_function, args_count); |
| 586 Handle<FixedArray> array = factory->NewFixedArray(args_count); | 585 Handle<FixedArray> array = factory->NewFixedArray(args_count); |
| 587 for (int i = 0; i < args_count; ++i) { | 586 for (int i = 0; i < args_count; ++i) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 } | 758 } |
| 760 | 759 |
| 761 | 760 |
| 762 const AccessorDescriptor Accessors::ObjectPrototype = { | 761 const AccessorDescriptor Accessors::ObjectPrototype = { |
| 763 ObjectGetPrototype, | 762 ObjectGetPrototype, |
| 764 ObjectSetPrototype, | 763 ObjectSetPrototype, |
| 765 0 | 764 0 |
| 766 }; | 765 }; |
| 767 | 766 |
| 768 } } // namespace v8::internal | 767 } } // namespace v8::internal |
| OLD | NEW |