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

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

Issue 19541007: Cleanup useless parameter object_is_smi for NumberToStringStub::GenerateLookupNumberStringCache(). (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 | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.h » ('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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 Register argument = a2; 202 Register argument = a2;
203 Label not_cached, argument_is_string; 203 Label not_cached, argument_is_string;
204 NumberToStringStub::GenerateLookupNumberStringCache( 204 NumberToStringStub::GenerateLookupNumberStringCache(
205 masm, 205 masm,
206 a0, // Input. 206 a0, // Input.
207 argument, // Result. 207 argument, // Result.
208 a3, // Scratch. 208 a3, // Scratch.
209 t0, // Scratch. 209 t0, // Scratch.
210 t1, // Scratch. 210 t1, // Scratch.
211 false, // Is it a Smi?
212 &not_cached); 211 &not_cached);
213 __ IncrementCounter(counters->string_ctor_cached_number(), 1, a3, t0); 212 __ IncrementCounter(counters->string_ctor_cached_number(), 1, a3, t0);
214 __ bind(&argument_is_string); 213 __ bind(&argument_is_string);
215 214
216 // ----------- S t a t e ------------- 215 // ----------- S t a t e -------------
217 // -- a2 : argument converted to string 216 // -- a2 : argument converted to string
218 // -- a1 : constructor function 217 // -- a1 : constructor function
219 // -- ra : return address 218 // -- ra : return address
220 // ----------------------------------- 219 // -----------------------------------
221 220
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 __ bind(&dont_adapt_arguments); 1515 __ bind(&dont_adapt_arguments);
1517 __ Jump(a3); 1516 __ Jump(a3);
1518 } 1517 }
1519 1518
1520 1519
1521 #undef __ 1520 #undef __
1522 1521
1523 } } // namespace v8::internal 1522 } } // namespace v8::internal
1524 1523
1525 #endif // V8_TARGET_ARCH_MIPS 1524 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698