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

Side by Side Diff: src/x64/ic-x64.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 | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // -- rsp[0] : return address 390 // -- rsp[0] : return address
391 // ----------------------------------- 391 // -----------------------------------
392 Label miss; 392 Label miss;
393 393
394 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss); 394 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss);
395 __ bind(&miss); 395 __ bind(&miss);
396 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 396 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
397 } 397 }
398 398
399 399
400 void LoadIC::GenerateStringLength(MacroAssembler* masm) { 400 void LoadIC::GenerateStringLength(MacroAssembler* masm, bool support_wrappers) {
401 // ----------- S t a t e ------------- 401 // ----------- S t a t e -------------
402 // -- rax : receiver 402 // -- rax : receiver
403 // -- rcx : name 403 // -- rcx : name
404 // -- rsp[0] : return address 404 // -- rsp[0] : return address
405 // ----------------------------------- 405 // -----------------------------------
406 Label miss; 406 Label miss;
407 407
408 StubCompiler::GenerateLoadStringLength(masm, rax, rdx, rbx, &miss); 408 StubCompiler::GenerateLoadStringLength(masm, rax, rdx, rbx, &miss,
409 support_wrappers);
409 __ bind(&miss); 410 __ bind(&miss);
410 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 411 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
411 } 412 }
412 413
413 414
414 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 415 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
415 // ----------- S t a t e ------------- 416 // ----------- S t a t e -------------
416 // -- rax : receiver 417 // -- rax : receiver
417 // -- rcx : name 418 // -- rcx : name
418 // -- rsp[0] : return address 419 // -- rsp[0] : return address
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 } 1703 }
1703 1704
1704 void PatchInlinedSmiCode(Address address) { 1705 void PatchInlinedSmiCode(Address address) {
1705 UNIMPLEMENTED(); 1706 UNIMPLEMENTED();
1706 } 1707 }
1707 1708
1708 1709
1709 } } // namespace v8::internal 1710 } } // namespace v8::internal
1710 1711
1711 #endif // V8_TARGET_ARCH_X64 1712 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698