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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Tear down internal frame. | 107 // Tear down internal frame. |
108 } | 108 } |
109 | 109 |
110 // Do a tail-call of the compiled function. | 110 // Do a tail-call of the compiled function. |
111 __ lea(eax, FieldOperand(eax, Code::kHeaderSize)); | 111 __ lea(eax, FieldOperand(eax, Code::kHeaderSize)); |
112 __ jmp(eax); | 112 __ jmp(eax); |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) { | 116 void Builtins::Generate_ConcurrentRecompile(MacroAssembler* masm) { |
117 { | 117 { |
118 FrameScope scope(masm, StackFrame::INTERNAL); | 118 FrameScope scope(masm, StackFrame::INTERNAL); |
119 | 119 |
120 // Push a copy of the function onto the stack. | 120 // Push a copy of the function onto the stack. |
121 __ push(edi); | 121 __ push(edi); |
122 // Push call kind information. | 122 // Push call kind information. |
123 __ push(ecx); | 123 __ push(ecx); |
124 | 124 |
125 __ push(edi); // Function is also the parameter to the runtime call. | 125 __ push(edi); // Function is also the parameter to the runtime call. |
126 __ CallRuntime(Runtime::kParallelRecompile, 1); | 126 __ CallRuntime(Runtime::kConcurrentRecompile, 1); |
127 | 127 |
128 // Restore call kind information. | 128 // Restore call kind information. |
129 __ pop(ecx); | 129 __ pop(ecx); |
130 // Restore receiver. | 130 // Restore receiver. |
131 __ pop(edi); | 131 __ pop(edi); |
132 | 132 |
133 // Tear down internal frame. | 133 // Tear down internal frame. |
134 } | 134 } |
135 | 135 |
136 GenerateTailCallToSharedCode(masm); | 136 GenerateTailCallToSharedCode(masm); |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1354 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
1355 generator.Generate(); | 1355 generator.Generate(); |
1356 } | 1356 } |
1357 | 1357 |
1358 | 1358 |
1359 #undef __ | 1359 #undef __ |
1360 } | 1360 } |
1361 } // namespace v8::internal | 1361 } // namespace v8::internal |
1362 | 1362 |
1363 #endif // V8_TARGET_ARCH_IA32 | 1363 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |