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

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

Issue 23890030: Rollback trunk to 3.21.15. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | « src/isolate.cc ('k') | 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 __ mov(a0, ra); 826 __ mov(a0, ra);
827 // Adjust a0 to point to the head of the PlatformCodeAge sequence 827 // Adjust a0 to point to the head of the PlatformCodeAge sequence
828 __ Subu(a0, a0, 828 __ Subu(a0, a0,
829 Operand((kNoCodeAgeSequenceLength - 1) * Assembler::kInstrSize)); 829 Operand((kNoCodeAgeSequenceLength - 1) * Assembler::kInstrSize));
830 // Restore the original return address of the function 830 // Restore the original return address of the function
831 __ mov(ra, at); 831 __ mov(ra, at);
832 832
833 // The following registers must be saved and restored when calling through to 833 // The following registers must be saved and restored when calling through to
834 // the runtime: 834 // the runtime:
835 // a0 - contains return address (beginning of patch sequence) 835 // a0 - contains return address (beginning of patch sequence)
836 // a1 - isolate 836 // a1 - function object
837 RegList saved_regs = 837 RegList saved_regs =
838 (a0.bit() | a1.bit() | ra.bit() | fp.bit()) & ~sp.bit(); 838 (a0.bit() | a1.bit() | ra.bit() | fp.bit()) & ~sp.bit();
839 FrameScope scope(masm, StackFrame::MANUAL); 839 FrameScope scope(masm, StackFrame::MANUAL);
840 __ MultiPush(saved_regs); 840 __ MultiPush(saved_regs);
841 __ PrepareCallCFunction(1, 0, a2); 841 __ PrepareCallCFunction(1, 0, a1);
842 __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate())));
843 __ CallCFunction( 842 __ CallCFunction(
844 ExternalReference::get_make_code_young_function(masm->isolate()), 2); 843 ExternalReference::get_make_code_young_function(masm->isolate()), 1);
845 __ MultiPop(saved_regs); 844 __ MultiPop(saved_regs);
846 __ Jump(a0); 845 __ Jump(a0);
847 } 846 }
848 847
849 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ 848 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \
850 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ 849 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \
851 MacroAssembler* masm) { \ 850 MacroAssembler* masm) { \
852 GenerateMakeCodeYoungAgainCommon(masm); \ 851 GenerateMakeCodeYoungAgainCommon(masm); \
853 } \ 852 } \
854 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ 853 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 __ bind(&dont_adapt_arguments); 1475 __ bind(&dont_adapt_arguments);
1477 __ Jump(a3); 1476 __ Jump(a3);
1478 } 1477 }
1479 1478
1480 1479
1481 #undef __ 1480 #undef __
1482 1481
1483 } } // namespace v8::internal 1482 } } // namespace v8::internal
1484 1483
1485 #endif // V8_TARGET_ARCH_MIPS 1484 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698