| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Tear down internal frame. | 109 // Tear down internal frame. |
| 110 } | 110 } |
| 111 | 111 |
| 112 // Do a tail-call of the compiled function. | 112 // Do a tail-call of the compiled function. |
| 113 __ lea(rax, FieldOperand(rax, Code::kHeaderSize)); | 113 __ lea(rax, FieldOperand(rax, Code::kHeaderSize)); |
| 114 __ jmp(rax); | 114 __ jmp(rax); |
| 115 } | 115 } |
| 116 | 116 |
| 117 | 117 |
| 118 void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) { | 118 void Builtins::Generate_ConcurrentRecompile(MacroAssembler* masm) { |
| 119 { | 119 { |
| 120 FrameScope scope(masm, StackFrame::INTERNAL); | 120 FrameScope scope(masm, StackFrame::INTERNAL); |
| 121 | 121 |
| 122 // Push a copy of the function onto the stack. | 122 // Push a copy of the function onto the stack. |
| 123 __ push(rdi); | 123 __ push(rdi); |
| 124 // Push call kind information. | 124 // Push call kind information. |
| 125 __ push(rcx); | 125 __ push(rcx); |
| 126 | 126 |
| 127 __ push(rdi); // Function is also the parameter to the runtime call. | 127 __ push(rdi); // Function is also the parameter to the runtime call. |
| 128 __ CallRuntime(Runtime::kParallelRecompile, 1); | 128 __ CallRuntime(Runtime::kConcurrentRecompile, 1); |
| 129 | 129 |
| 130 // Restore call kind information. | 130 // Restore call kind information. |
| 131 __ pop(rcx); | 131 __ pop(rcx); |
| 132 // Restore receiver. | 132 // Restore receiver. |
| 133 __ pop(rdi); | 133 __ pop(rdi); |
| 134 | 134 |
| 135 // Tear down internal frame. | 135 // Tear down internal frame. |
| 136 } | 136 } |
| 137 | 137 |
| 138 GenerateTailCallToSharedCode(masm); | 138 GenerateTailCallToSharedCode(masm); |
| (...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1434 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
| 1435 generator.Generate(); | 1435 generator.Generate(); |
| 1436 } | 1436 } |
| 1437 | 1437 |
| 1438 | 1438 |
| 1439 #undef __ | 1439 #undef __ |
| 1440 | 1440 |
| 1441 } } // namespace v8::internal | 1441 } } // namespace v8::internal |
| 1442 | 1442 |
| 1443 #endif // V8_TARGET_ARCH_X64 | 1443 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |