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

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

Issue 18184011: MIPS: Improved function entry hook coverage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | src/mips/code-stubs-mips.cc » ('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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 bool is_construct) { 733 bool is_construct) {
734 // Called from JSEntryStub::GenerateBody 734 // Called from JSEntryStub::GenerateBody
735 735
736 // ----------- S t a t e ------------- 736 // ----------- S t a t e -------------
737 // -- a0: code entry 737 // -- a0: code entry
738 // -- a1: function 738 // -- a1: function
739 // -- a2: receiver_pointer 739 // -- a2: receiver_pointer
740 // -- a3: argc 740 // -- a3: argc
741 // -- s0: argv 741 // -- s0: argv
742 // ----------------------------------- 742 // -----------------------------------
743 ProfileEntryHookStub::MaybeCallEntryHook(masm);
743 744
744 // Clear the context before we push it when entering the JS frame. 745 // Clear the context before we push it when entering the JS frame.
745 __ mov(cp, zero_reg); 746 __ mov(cp, zero_reg);
746 747
747 // Enter an internal frame. 748 // Enter an internal frame.
748 { 749 {
749 FrameScope scope(masm, StackFrame::INTERNAL); 750 FrameScope scope(masm, StackFrame::INTERNAL);
750 751
751 // Set up the context from the function argument. 752 // Set up the context from the function argument.
752 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); 753 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 __ bind(&dont_adapt_arguments); 1516 __ bind(&dont_adapt_arguments);
1516 __ Jump(a3); 1517 __ Jump(a3);
1517 } 1518 }
1518 1519
1519 1520
1520 #undef __ 1521 #undef __
1521 1522
1522 } } // namespace v8::internal 1523 } } // namespace v8::internal
1523 1524
1524 #endif // V8_TARGET_ARCH_MIPS 1525 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698