| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3612 // Check stack alignment. | 3612 // Check stack alignment. |
| 3613 if (FLAG_debug_code) { | 3613 if (FLAG_debug_code) { |
| 3614 __ CheckStackAlignment(); | 3614 __ CheckStackAlignment(); |
| 3615 } | 3615 } |
| 3616 | 3616 |
| 3617 if (do_gc) { | 3617 if (do_gc) { |
| 3618 // Pass failure code returned from last attempt as first argument to | 3618 // Pass failure code returned from last attempt as first argument to |
| 3619 // PerformGC. No need to use PrepareCallCFunction/CallCFunction here as the | 3619 // PerformGC. No need to use PrepareCallCFunction/CallCFunction here as the |
| 3620 // stack is known to be aligned. This function takes one argument which is | 3620 // stack is known to be aligned. This function takes one argument which is |
| 3621 // passed in register. | 3621 // passed in register. |
| 3622 __ movq(arg_reg_2, ExternalReference::isolate_address(masm->isolate())); |
| 3622 __ movq(arg_reg_1, rax); | 3623 __ movq(arg_reg_1, rax); |
| 3623 __ movq(kScratchRegister, | 3624 __ movq(kScratchRegister, |
| 3624 ExternalReference::perform_gc_function(masm->isolate())); | 3625 ExternalReference::perform_gc_function(masm->isolate())); |
| 3625 __ call(kScratchRegister); | 3626 __ call(kScratchRegister); |
| 3626 } | 3627 } |
| 3627 | 3628 |
| 3628 ExternalReference scope_depth = | 3629 ExternalReference scope_depth = |
| 3629 ExternalReference::heap_always_allocate_scope_depth(masm->isolate()); | 3630 ExternalReference::heap_always_allocate_scope_depth(masm->isolate()); |
| 3630 if (always_allocate_scope) { | 3631 if (always_allocate_scope) { |
| 3631 Operand scope_depth_operand = masm->ExternalOperand(scope_depth); | 3632 Operand scope_depth_operand = masm->ExternalOperand(scope_depth); |
| (...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6641 __ bind(&fast_elements_case); | 6642 __ bind(&fast_elements_case); |
| 6642 GenerateCase(masm, FAST_ELEMENTS); | 6643 GenerateCase(masm, FAST_ELEMENTS); |
| 6643 } | 6644 } |
| 6644 | 6645 |
| 6645 | 6646 |
| 6646 #undef __ | 6647 #undef __ |
| 6647 | 6648 |
| 6648 } } // namespace v8::internal | 6649 } } // namespace v8::internal |
| 6649 | 6650 |
| 6650 #endif // V8_TARGET_ARCH_X64 | 6651 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |