Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/accessors.cc

Issue 7024047: [Arguments] Port fast arguments creation stubs to X64 and ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Addres comments. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698