Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: src/x64/builtins-x64.cc

Issue 12488006: Parallel recompilation: remove interrupt for code generation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime-profiler.cc ('k') | test/mjsunit/compiler/parallel-proto-change.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 __ lea(kScratchRegister, FieldOperand(kScratchRegister, Code::kHeaderSize)); 81 __ lea(kScratchRegister, FieldOperand(kScratchRegister, Code::kHeaderSize));
82 __ jmp(kScratchRegister); 82 __ jmp(kScratchRegister);
83 } 83 }
84 84
85 85
86 void Builtins::Generate_InRecompileQueue(MacroAssembler* masm) { 86 void Builtins::Generate_InRecompileQueue(MacroAssembler* masm) {
87 GenerateTailCallToSharedCode(masm); 87 GenerateTailCallToSharedCode(masm);
88 } 88 }
89 89
90 90
91 void Builtins::Generate_InstallRecompiledCode(MacroAssembler* masm) {
92 // Enter an internal frame.
93 {
94 FrameScope scope(masm, StackFrame::INTERNAL);
95
96 // Push a copy of the function onto the stack.
97 __ push(rdi);
98 // Push call kind information.
99 __ push(rcx);
100
101 __ push(rdi); // Function is also the parameter to the runtime call.
102 __ CallRuntime(Runtime::kInstallRecompiledCode, 1);
103
104 // Restore call kind information.
105 __ pop(rcx);
106 // Restore function.
107 __ pop(rdi);
108
109 // Tear down internal frame.
110 }
111
112 // Do a tail-call of the compiled function.
113 __ lea(rax, FieldOperand(rax, Code::kHeaderSize));
114 __ jmp(rax);
115 }
116
117
91 void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) { 118 void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) {
92 { 119 {
93 FrameScope scope(masm, StackFrame::INTERNAL); 120 FrameScope scope(masm, StackFrame::INTERNAL);
94 121
95 // Push a copy of the function onto the stack. 122 // Push a copy of the function onto the stack.
96 __ push(rdi); 123 __ push(rdi);
97 // Push call kind information. 124 // Push call kind information.
98 __ push(rcx); 125 __ push(rcx);
99 126
100 __ push(rdi); // Function is also the parameter to the runtime call. 127 __ push(rdi); // Function is also the parameter to the runtime call.
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1902 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1876 generator.Generate(); 1903 generator.Generate();
1877 } 1904 }
1878 1905
1879 1906
1880 #undef __ 1907 #undef __
1881 1908
1882 } } // namespace v8::internal 1909 } } // namespace v8::internal
1883 1910
1884 #endif // V8_TARGET_ARCH_X64 1911 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | test/mjsunit/compiler/parallel-proto-change.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698