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

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

Issue 9265004: Support inlining at call-sites with mismatched number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: finished implementation, extended tests, ported to x64&arm Created 8 years, 11 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
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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 __ j(less, &fill); 1540 __ j(less, &fill);
1541 1541
1542 // Restore function pointer. 1542 // Restore function pointer.
1543 __ movq(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 1543 __ movq(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
1544 } 1544 }
1545 1545
1546 // Call the entry point. 1546 // Call the entry point.
1547 __ bind(&invoke); 1547 __ bind(&invoke);
1548 __ call(rdx); 1548 __ call(rdx);
1549 1549
1550 masm->isolate()->heap()->SetArgumentsAdaptorDeoptPCOffset(masm->pc_offset());
1550 // Leave frame and return. 1551 // Leave frame and return.
1551 LeaveArgumentsAdaptorFrame(masm); 1552 LeaveArgumentsAdaptorFrame(masm);
1552 __ ret(0); 1553 __ ret(0);
1553 1554
1554 // ------------------------------------------- 1555 // -------------------------------------------
1555 // Dont adapt arguments. 1556 // Dont adapt arguments.
1556 // ------------------------------------------- 1557 // -------------------------------------------
1557 __ bind(&dont_adapt_arguments); 1558 __ bind(&dont_adapt_arguments);
1558 __ jmp(rdx); 1559 __ jmp(rdx);
1559 } 1560 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1617 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1617 generator.Generate(); 1618 generator.Generate();
1618 } 1619 }
1619 1620
1620 1621
1621 #undef __ 1622 #undef __
1622 1623
1623 } } // namespace v8::internal 1624 } } // namespace v8::internal
1624 1625
1625 #endif // V8_TARGET_ARCH_X64 1626 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/frames-ia32.h ('K') | « src/runtime.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698