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

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

Issue 19058003: Merged r14614, r15489 into 3.18 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.18
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/version.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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 __ mov(argument, a0); 674 __ mov(argument, a0);
675 __ IncrementCounter(counters->string_ctor_conversions(), 1, a3, t0); 675 __ IncrementCounter(counters->string_ctor_conversions(), 1, a3, t0);
676 __ Branch(&argument_is_string); 676 __ Branch(&argument_is_string);
677 677
678 // Invoke the conversion builtin and put the result into a2. 678 // Invoke the conversion builtin and put the result into a2.
679 __ bind(&convert_argument); 679 __ bind(&convert_argument);
680 __ push(function); // Preserve the function. 680 __ push(function); // Preserve the function.
681 __ IncrementCounter(counters->string_ctor_conversions(), 1, a3, t0); 681 __ IncrementCounter(counters->string_ctor_conversions(), 1, a3, t0);
682 { 682 {
683 FrameScope scope(masm, StackFrame::INTERNAL); 683 FrameScope scope(masm, StackFrame::INTERNAL);
684 __ push(v0); 684 __ push(a0);
685 __ InvokeBuiltin(Builtins::TO_STRING, CALL_FUNCTION); 685 __ InvokeBuiltin(Builtins::TO_STRING, CALL_FUNCTION);
686 } 686 }
687 __ pop(function); 687 __ pop(function);
688 __ mov(argument, v0); 688 __ mov(argument, v0);
689 __ Branch(&argument_is_string); 689 __ Branch(&argument_is_string);
690 690
691 // Load the empty string into a2, remove the receiver from the 691 // Load the empty string into a2, remove the receiver from the
692 // stack, and jump back to the case where the argument is a string. 692 // stack, and jump back to the case where the argument is a string.
693 __ bind(&no_arguments); 693 __ bind(&no_arguments);
694 __ LoadRoot(argument, Heap::kempty_stringRootIndex); 694 __ LoadRoot(argument, Heap::kempty_stringRootIndex);
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 __ bind(&dont_adapt_arguments); 1916 __ bind(&dont_adapt_arguments);
1917 __ Jump(a3); 1917 __ Jump(a3);
1918 } 1918 }
1919 1919
1920 1920
1921 #undef __ 1921 #undef __
1922 1922
1923 } } // namespace v8::internal 1923 } } // namespace v8::internal
1924 1924
1925 #endif // V8_TARGET_ARCH_MIPS 1925 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698