| 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 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 // v0: result parameter for PerformGC, if any | 2788 // v0: result parameter for PerformGC, if any |
| 2789 // s0: number of arguments including receiver (C callee-saved) | 2789 // s0: number of arguments including receiver (C callee-saved) |
| 2790 // s1: pointer to the first argument (C callee-saved) | 2790 // s1: pointer to the first argument (C callee-saved) |
| 2791 // s2: pointer to builtin function (C callee-saved) | 2791 // s2: pointer to builtin function (C callee-saved) |
| 2792 | 2792 |
| 2793 Isolate* isolate = masm->isolate(); | 2793 Isolate* isolate = masm->isolate(); |
| 2794 | 2794 |
| 2795 if (do_gc) { | 2795 if (do_gc) { |
| 2796 // Move result passed in v0 into a0 to call PerformGC. | 2796 // Move result passed in v0 into a0 to call PerformGC. |
| 2797 __ mov(a0, v0); | 2797 __ mov(a0, v0); |
| 2798 __ PrepareCallCFunction(1, 0, a1); | 2798 __ PrepareCallCFunction(2, 0, a1); |
| 2799 __ CallCFunction(ExternalReference::perform_gc_function(isolate), 1, 0); | 2799 __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 2800 __ CallCFunction(ExternalReference::perform_gc_function(isolate), 2, 0); |
| 2800 } | 2801 } |
| 2801 | 2802 |
| 2802 ExternalReference scope_depth = | 2803 ExternalReference scope_depth = |
| 2803 ExternalReference::heap_always_allocate_scope_depth(isolate); | 2804 ExternalReference::heap_always_allocate_scope_depth(isolate); |
| 2804 if (always_allocate) { | 2805 if (always_allocate) { |
| 2805 __ li(a0, Operand(scope_depth)); | 2806 __ li(a0, Operand(scope_depth)); |
| 2806 __ lw(a1, MemOperand(a0)); | 2807 __ lw(a1, MemOperand(a0)); |
| 2807 __ Addu(a1, a1, Operand(1)); | 2808 __ Addu(a1, a1, Operand(1)); |
| 2808 __ sw(a1, MemOperand(a0)); | 2809 __ sw(a1, MemOperand(a0)); |
| 2809 } | 2810 } |
| (...skipping 4470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7280 __ bind(&fast_elements_case); | 7281 __ bind(&fast_elements_case); |
| 7281 GenerateCase(masm, FAST_ELEMENTS); | 7282 GenerateCase(masm, FAST_ELEMENTS); |
| 7282 } | 7283 } |
| 7283 | 7284 |
| 7284 | 7285 |
| 7285 #undef __ | 7286 #undef __ |
| 7286 | 7287 |
| 7287 } } // namespace v8::internal | 7288 } } // namespace v8::internal |
| 7288 | 7289 |
| 7289 #endif // V8_TARGET_ARCH_MIPS | 7290 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |