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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 23702039: Use regular map-checks to guard string-length loading. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 } else { 1895 } else {
1896 ASSERT(kind() == Code::LOAD_IC); 1896 ASSERT(kind() == Code::LOAD_IC);
1897 // ----------- S t a t e ------------- 1897 // ----------- S t a t e -------------
1898 // -- rax : receiver 1898 // -- rax : receiver
1899 // -- rcx : name 1899 // -- rcx : name
1900 // -- rsp[0] : return address 1900 // -- rsp[0] : return address
1901 // ----------------------------------- 1901 // -----------------------------------
1902 receiver = rax; 1902 receiver = rax;
1903 } 1903 }
1904 1904
1905 StubCompiler::GenerateLoadStringLength(masm, receiver, r8, r9, &miss, 1905 StubCompiler::GenerateLoadStringLength(masm, receiver, r8, r9, &miss);
1906 support_wrapper_);
1907 __ bind(&miss); 1906 __ bind(&miss);
1908 StubCompiler::TailCallBuiltin( 1907 StubCompiler::TailCallBuiltin(
1909 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 1908 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
1910 } 1909 }
1911 1910
1912 1911
1913 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 1912 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
1914 // ----------- S t a t e ------------- 1913 // ----------- S t a t e -------------
1915 // -- rax : value 1914 // -- rax : value
1916 // -- rcx : key 1915 // -- rcx : key
(...skipping 4724 matching lines...) Expand 10 before | Expand all | Expand 10 after
6641 __ bind(&fast_elements_case); 6640 __ bind(&fast_elements_case);
6642 GenerateCase(masm, FAST_ELEMENTS); 6641 GenerateCase(masm, FAST_ELEMENTS);
6643 } 6642 }
6644 6643
6645 6644
6646 #undef __ 6645 #undef __
6647 6646
6648 } } // namespace v8::internal 6647 } } // namespace v8::internal
6649 6648
6650 #endif // V8_TARGET_ARCH_X64 6649 #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