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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm/code-stubs-arm.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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 Register argument = r2; 194 Register argument = r2;
195 Label not_cached, argument_is_string; 195 Label not_cached, argument_is_string;
196 NumberToStringStub::GenerateLookupNumberStringCache( 196 NumberToStringStub::GenerateLookupNumberStringCache(
197 masm, 197 masm,
198 r0, // Input. 198 r0, // Input.
199 argument, // Result. 199 argument, // Result.
200 r3, // Scratch. 200 r3, // Scratch.
201 r4, // Scratch. 201 r4, // Scratch.
202 r5, // Scratch. 202 r5, // Scratch.
203 false, // Is it a Smi?
204 &not_cached); 203 &not_cached);
205 __ IncrementCounter(counters->string_ctor_cached_number(), 1, r3, r4); 204 __ IncrementCounter(counters->string_ctor_cached_number(), 1, r3, r4);
206 __ bind(&argument_is_string); 205 __ bind(&argument_is_string);
207 206
208 // ----------- S t a t e ------------- 207 // ----------- S t a t e -------------
209 // -- r2 : argument converted to string 208 // -- r2 : argument converted to string
210 // -- r1 : constructor function 209 // -- r1 : constructor function
211 // -- lr : return address 210 // -- lr : return address
212 // ----------------------------------- 211 // -----------------------------------
213 212
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 __ bind(&dont_adapt_arguments); 1475 __ bind(&dont_adapt_arguments);
1477 __ Jump(r3); 1476 __ Jump(r3);
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_ARM 1484 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698