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

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

Issue 9372063: MIPS: Enable serialization for MIPS architecture. (Closed)
Patch Set: rebased on r10858. Created 8 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
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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 // Clear the context before we push it when entering the JS frame. 1083 // Clear the context before we push it when entering the JS frame.
1084 __ mov(cp, zero_reg); 1084 __ mov(cp, zero_reg);
1085 1085
1086 // Enter an internal frame. 1086 // Enter an internal frame.
1087 { 1087 {
1088 FrameScope scope(masm, StackFrame::INTERNAL); 1088 FrameScope scope(masm, StackFrame::INTERNAL);
1089 1089
1090 // Set up the context from the function argument. 1090 // Set up the context from the function argument.
1091 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); 1091 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
1092 1092
1093 __ InitializeRootRegister();
1094
1095 // Push the function and the receiver onto the stack. 1093 // Push the function and the receiver onto the stack.
1096 __ Push(a1, a2); 1094 __ Push(a1, a2);
1097 1095
1098 // Copy arguments to the stack in a loop. 1096 // Copy arguments to the stack in a loop.
1099 // a3: argc 1097 // a3: argc
1100 // s0: argv, i.e. points to first arg 1098 // s0: argv, i.e. points to first arg
1101 Label loop, entry; 1099 Label loop, entry;
1102 __ sll(t0, a3, kPointerSizeLog2); 1100 __ sll(t0, a3, kPointerSizeLog2);
1103 __ addu(t2, s0, t0); 1101 __ addu(t2, s0, t0);
1104 __ b(&entry); 1102 __ b(&entry);
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 __ bind(&dont_adapt_arguments); 1787 __ bind(&dont_adapt_arguments);
1790 __ Jump(a3); 1788 __ Jump(a3);
1791 } 1789 }
1792 1790
1793 1791
1794 #undef __ 1792 #undef __
1795 1793
1796 } } // namespace v8::internal 1794 } } // namespace v8::internal
1797 1795
1798 #endif // V8_TARGET_ARCH_MIPS 1796 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698