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

Side by Side Diff: src/arm/ic-arm.cc

Issue 6334015: Support StringLength in hydrogen (similar to ArrayLength). (Closed)
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // -- sp[0] : receiver 372 // -- sp[0] : receiver
373 // ----------------------------------- 373 // -----------------------------------
374 Label miss; 374 Label miss;
375 375
376 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss); 376 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss);
377 __ bind(&miss); 377 __ bind(&miss);
378 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 378 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
379 } 379 }
380 380
381 381
382 void LoadIC::GenerateStringLength(MacroAssembler* masm) { 382 void LoadIC::GenerateStringLength(MacroAssembler* masm, bool support_wrappers) {
383 // ----------- S t a t e ------------- 383 // ----------- S t a t e -------------
384 // -- r2 : name 384 // -- r2 : name
385 // -- lr : return address 385 // -- lr : return address
386 // -- r0 : receiver 386 // -- r0 : receiver
387 // -- sp[0] : receiver 387 // -- sp[0] : receiver
388 // ----------------------------------- 388 // -----------------------------------
389 Label miss; 389 Label miss;
390 390
391 StubCompiler::GenerateLoadStringLength(masm, r0, r1, r3, &miss); 391 StubCompiler::GenerateLoadStringLength(masm, r0, r1, r3, &miss,
392 support_wrappers);
392 // Cache miss: Jump to runtime. 393 // Cache miss: Jump to runtime.
393 __ bind(&miss); 394 __ bind(&miss);
394 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 395 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
395 } 396 }
396 397
397 398
398 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 399 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
399 // ----------- S t a t e ------------- 400 // ----------- S t a t e -------------
400 // -- r2 : name 401 // -- r2 : name
401 // -- lr : return address 402 // -- lr : return address
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 1705
1705 1706
1706 void PatchInlinedSmiCode(Address address) { 1707 void PatchInlinedSmiCode(Address address) {
1707 UNIMPLEMENTED(); 1708 UNIMPLEMENTED();
1708 } 1709 }
1709 1710
1710 1711
1711 } } // namespace v8::internal 1712 } } // namespace v8::internal
1712 1713
1713 #endif // V8_TARGET_ARCH_ARM 1714 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698