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 4629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4640 // of the original receiver from the call site). | 4640 // of the original receiver from the call site). |
4641 __ mov(Operand(esp, (argc_ + 1) * kPointerSize), edi); | 4641 __ mov(Operand(esp, (argc_ + 1) * kPointerSize), edi); |
4642 __ Set(eax, Immediate(argc_)); | 4642 __ Set(eax, Immediate(argc_)); |
4643 __ Set(ebx, Immediate(0)); | 4643 __ Set(ebx, Immediate(0)); |
4644 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); | 4644 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); |
4645 Handle<Code> adaptor(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)); | 4645 Handle<Code> adaptor(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)); |
4646 __ jmp(adaptor, RelocInfo::CODE_TARGET); | 4646 __ jmp(adaptor, RelocInfo::CODE_TARGET); |
4647 } | 4647 } |
4648 | 4648 |
4649 | 4649 |
| 4650 bool CEntryStub::NeedsImmovableCode() { |
| 4651 return false; |
| 4652 } |
| 4653 |
| 4654 |
4650 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { | 4655 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { |
4651 __ Throw(eax); | 4656 __ Throw(eax); |
4652 } | 4657 } |
4653 | 4658 |
4654 | 4659 |
4655 void CEntryStub::GenerateCore(MacroAssembler* masm, | 4660 void CEntryStub::GenerateCore(MacroAssembler* masm, |
4656 Label* throw_normal_exception, | 4661 Label* throw_normal_exception, |
4657 Label* throw_termination_exception, | 4662 Label* throw_termination_exception, |
4658 Label* throw_out_of_memory_exception, | 4663 Label* throw_out_of_memory_exception, |
4659 bool do_gc, | 4664 bool do_gc, |
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6615 __ mov_b(Operand(external_pointer, untagged_key, times_1, 0), untagged_value); | 6620 __ mov_b(Operand(external_pointer, untagged_key, times_1, 0), untagged_value); |
6616 __ ret(0); // Return value in eax. | 6621 __ ret(0); // Return value in eax. |
6617 } | 6622 } |
6618 | 6623 |
6619 | 6624 |
6620 #undef __ | 6625 #undef __ |
6621 | 6626 |
6622 } } // namespace v8::internal | 6627 } } // namespace v8::internal |
6623 | 6628 |
6624 #endif // V8_TARGET_ARCH_IA32 | 6629 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |