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 3926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3937 PrepareCallCFunction(1, a0); | 3937 PrepareCallCFunction(1, a0); |
3938 li(a0, Operand(ExternalReference::isolate_address(isolate()))); | 3938 li(a0, Operand(ExternalReference::isolate_address(isolate()))); |
3939 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 1); | 3939 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 1); |
3940 PopSafepointRegisters(); | 3940 PopSafepointRegisters(); |
3941 } | 3941 } |
3942 | 3942 |
3943 // The O32 ABI requires us to pass a pointer in a0 where the returned struct | 3943 // The O32 ABI requires us to pass a pointer in a0 where the returned struct |
3944 // (4 bytes) will be placed. This is also built into the Simulator. | 3944 // (4 bytes) will be placed. This is also built into the Simulator. |
3945 // Set up the pointer to the returned value (a0). It was allocated in | 3945 // Set up the pointer to the returned value (a0). It was allocated in |
3946 // EnterExitFrame. | 3946 // EnterExitFrame. |
3947 addiu(a0, fp, ExitFrameConstants::kStackSpaceOffset); | 3947 if (returns_handle) { |
| 3948 addiu(a0, fp, ExitFrameConstants::kStackSpaceOffset); |
| 3949 } |
3948 | 3950 |
3949 // Native call returns to the DirectCEntry stub which redirects to the | 3951 // Native call returns to the DirectCEntry stub which redirects to the |
3950 // return address pushed on stack (could have moved after GC). | 3952 // return address pushed on stack (could have moved after GC). |
3951 // DirectCEntry stub itself is generated early and never moves. | 3953 // DirectCEntry stub itself is generated early and never moves. |
3952 DirectCEntryStub stub; | 3954 DirectCEntryStub stub; |
3953 stub.GenerateCall(this, function); | 3955 stub.GenerateCall(this, function); |
3954 | 3956 |
3955 if (FLAG_log_timer_events) { | 3957 if (FLAG_log_timer_events) { |
3956 FrameScope frame(this, StackFrame::MANUAL); | 3958 FrameScope frame(this, StackFrame::MANUAL); |
3957 PushSafepointRegisters(); | 3959 PushSafepointRegisters(); |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5525 opcode == BGTZL); | 5527 opcode == BGTZL); |
5526 opcode = (cond == eq) ? BEQ : BNE; | 5528 opcode = (cond == eq) ? BEQ : BNE; |
5527 instr = (instr & ~kOpcodeMask) | opcode; | 5529 instr = (instr & ~kOpcodeMask) | opcode; |
5528 masm_.emit(instr); | 5530 masm_.emit(instr); |
5529 } | 5531 } |
5530 | 5532 |
5531 | 5533 |
5532 } } // namespace v8::internal | 5534 } } // namespace v8::internal |
5533 | 5535 |
5534 #endif // V8_TARGET_ARCH_MIPS | 5536 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |