| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 property->key()->AsLiteral()->value(), | 2812 property->key()->AsLiteral()->value(), |
| 2813 RelocInfo::CODE_TARGET); | 2813 RelocInfo::CODE_TARGET); |
| 2814 } else { | 2814 } else { |
| 2815 EmitKeyedCallWithIC(expr, property->key()); | 2815 EmitKeyedCallWithIC(expr, property->key()); |
| 2816 } | 2816 } |
| 2817 } else { | 2817 } else { |
| 2818 // Call to an arbitrary expression not handled specially above. | 2818 // Call to an arbitrary expression not handled specially above. |
| 2819 { PreservePositionScope scope(masm()->positions_recorder()); | 2819 { PreservePositionScope scope(masm()->positions_recorder()); |
| 2820 VisitForStackValue(callee); | 2820 VisitForStackValue(callee); |
| 2821 } | 2821 } |
| 2822 // Load global receiver object. | 2822 // Push the hole as receiver. |
| 2823 __ ldr(r1, GlobalObjectOperand()); | 2823 // It will be correctly replaced in the call stub. |
| 2824 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); | 2824 __ LoadRoot(r1, Heap::kTheHoleValueRootIndex); |
| 2825 __ push(r1); | 2825 __ push(r1); |
| 2826 // Emit function call. | 2826 // Emit function call. |
| 2827 EmitCallWithStub(expr, NO_CALL_FUNCTION_FLAGS); | 2827 EmitCallWithStub(expr, RECEIVER_IS_IMPLICIT); |
| 2828 } | 2828 } |
| 2829 | 2829 |
| 2830 #ifdef DEBUG | 2830 #ifdef DEBUG |
| 2831 // RecordJSReturnSite should have been called. | 2831 // RecordJSReturnSite should have been called. |
| 2832 ASSERT(expr->return_is_recorded_); | 2832 ASSERT(expr->return_is_recorded_); |
| 2833 #endif | 2833 #endif |
| 2834 } | 2834 } |
| 2835 | 2835 |
| 2836 | 2836 |
| 2837 void FullCodeGenerator::VisitCallNew(CallNew* expr) { | 2837 void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
| (...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4921 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4921 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
| 4922 reinterpret_cast<uint32_t>( | 4922 reinterpret_cast<uint32_t>( |
| 4923 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4923 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4924 return OSR_AFTER_STACK_CHECK; | 4924 return OSR_AFTER_STACK_CHECK; |
| 4925 } | 4925 } |
| 4926 | 4926 |
| 4927 | 4927 |
| 4928 } } // namespace v8::internal | 4928 } } // namespace v8::internal |
| 4929 | 4929 |
| 4930 #endif // V8_TARGET_ARCH_ARM | 4930 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |