| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 __ pop(rdi); | 1344 __ pop(rdi); |
| 1345 | 1345 |
| 1346 // Tear down temporary frame. | 1346 // Tear down temporary frame. |
| 1347 __ LeaveInternalFrame(); | 1347 __ LeaveInternalFrame(); |
| 1348 | 1348 |
| 1349 // Do a tail-call of the compiled function. | 1349 // Do a tail-call of the compiled function. |
| 1350 __ lea(rcx, FieldOperand(rax, Code::kHeaderSize)); | 1350 __ lea(rcx, FieldOperand(rax, Code::kHeaderSize)); |
| 1351 __ jmp(rcx); | 1351 __ jmp(rcx); |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 |
| 1355 void Builtins::Generate_LazyRecompile(MacroAssembler* masm) { |
| 1356 // Enter an internal frame. |
| 1357 __ EnterInternalFrame(); |
| 1358 |
| 1359 // Push a copy of the function onto the stack. |
| 1360 __ push(rdi); |
| 1361 |
| 1362 __ push(rdi); // Function is also the parameter to the runtime call. |
| 1363 __ CallRuntime(Runtime::kLazyRecompile, 1); |
| 1364 |
| 1365 // Restore function and tear down temporary frame. |
| 1366 __ pop(rdi); |
| 1367 __ LeaveInternalFrame(); |
| 1368 |
| 1369 // Do a tail-call of the compiled function. |
| 1370 __ lea(rcx, FieldOperand(rax, Code::kHeaderSize)); |
| 1371 __ jmp(rcx); |
| 1372 } |
| 1373 |
| 1374 |
| 1375 void Builtins::Generate_NotifyDeoptimized(MacroAssembler* masm) { |
| 1376 __ int3(); |
| 1377 } |
| 1378 |
| 1379 |
| 1380 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) { |
| 1381 __ int3(); |
| 1382 } |
| 1383 |
| 1384 |
| 1385 void Builtins::Generate_NotifyOSR(MacroAssembler* masm) { |
| 1386 __ int3(); |
| 1387 } |
| 1388 |
| 1389 |
| 1390 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
| 1391 __ int3(); |
| 1392 } |
| 1393 |
| 1394 |
| 1354 } } // namespace v8::internal | 1395 } } // namespace v8::internal |
| 1355 | 1396 |
| 1356 #endif // V8_TARGET_ARCH_X64 | 1397 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |