| 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |