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

Side by Side Diff: src/ia32/codegen-ia32.cc

Issue 6824081: Add a stub for allocating parameter maps. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/arguments/
Patch Set: '' Created 9 years, 7 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 | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.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 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 746
747 Comment cmnt(masm_, "[ store arguments object"); 747 Comment cmnt(masm_, "[ store arguments object");
748 if (mode == LAZY_ARGUMENTS_ALLOCATION && initial) { 748 if (mode == LAZY_ARGUMENTS_ALLOCATION && initial) {
749 // When using lazy arguments allocation, we store the arguments marker value 749 // When using lazy arguments allocation, we store the arguments marker value
750 // as a sentinel indicating that the arguments object hasn't been 750 // as a sentinel indicating that the arguments object hasn't been
751 // allocated yet. 751 // allocated yet.
752 frame_->Push(FACTORY->arguments_marker()); 752 frame_->Push(FACTORY->arguments_marker());
753 } else { 753 } else {
754 ArgumentsAccessStub stub(is_strict_mode() 754 ArgumentsAccessStub stub(is_strict_mode()
755 ? ArgumentsAccessStub::NEW_STRICT 755 ? ArgumentsAccessStub::NEW_STRICT
756 : ArgumentsAccessStub::NEW_NON_STRICT); 756 : ArgumentsAccessStub::NEW_NON_STRICT_SLOW);
757 frame_->PushFunction(); 757 frame_->PushFunction();
758 frame_->PushReceiverSlotAddress(); 758 frame_->PushReceiverSlotAddress();
759 frame_->Push(Smi::FromInt(scope()->num_parameters())); 759 frame_->Push(Smi::FromInt(scope()->num_parameters()));
760 Result result = frame_->CallStub(&stub, 3); 760 Result result = frame_->CallStub(&stub, 3);
761 frame_->Push(&result); 761 frame_->Push(&result);
762 } 762 }
763 763
764 Variable* arguments = scope()->arguments(); 764 Variable* arguments = scope()->arguments();
765 ASSERT(arguments != NULL && arguments->AsSlot() != NULL); 765 ASSERT(arguments != NULL && arguments->AsSlot() != NULL);
766 766
(...skipping 9589 matching lines...) Expand 10 before | Expand all | Expand 10 after
10356 10356
10357 CPU::FlushICache(buffer, actual_size); 10357 CPU::FlushICache(buffer, actual_size);
10358 return FUNCTION_CAST<OS::MemCopyFunction>(buffer); 10358 return FUNCTION_CAST<OS::MemCopyFunction>(buffer);
10359 } 10359 }
10360 10360
10361 #undef __ 10361 #undef __
10362 10362
10363 } } // namespace v8::internal 10363 } } // namespace v8::internal
10364 10364
10365 #endif // V8_TARGET_ARCH_IA32 10365 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698