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

Side by Side Diff: src/ia32/code-stubs-ia32.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/hydrogen.cc ('k') | src/ia32/stub-cache-ia32.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 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 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 // -- edx : receiver 2749 // -- edx : receiver
2750 // -- esp[0] : return address 2750 // -- esp[0] : return address
2751 // ----------------------------------- 2751 // -----------------------------------
2752 Label miss; 2752 Label miss;
2753 2753
2754 if (kind() == Code::KEYED_LOAD_IC) { 2754 if (kind() == Code::KEYED_LOAD_IC) {
2755 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_string())); 2755 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_string()));
2756 __ j(not_equal, &miss); 2756 __ j(not_equal, &miss);
2757 } 2757 }
2758 2758
2759 StubCompiler::GenerateLoadStringLength(masm, edx, eax, ebx, &miss, 2759 StubCompiler::GenerateLoadStringLength(masm, edx, eax, ebx, &miss);
2760 support_wrapper_);
2761 __ bind(&miss); 2760 __ bind(&miss);
2762 StubCompiler::TailCallBuiltin( 2761 StubCompiler::TailCallBuiltin(
2763 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 2762 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
2764 } 2763 }
2765 2764
2766 2765
2767 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 2766 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
2768 // ----------- S t a t e ------------- 2767 // ----------- S t a t e -------------
2769 // -- eax : value 2768 // -- eax : value
2770 // -- ecx : name 2769 // -- ecx : name
(...skipping 4775 matching lines...) Expand 10 before | Expand all | Expand 10 after
7546 __ bind(&fast_elements_case); 7545 __ bind(&fast_elements_case);
7547 GenerateCase(masm, FAST_ELEMENTS); 7546 GenerateCase(masm, FAST_ELEMENTS);
7548 } 7547 }
7549 7548
7550 7549
7551 #undef __ 7550 #undef __
7552 7551
7553 } } // namespace v8::internal 7552 } } // namespace v8::internal
7554 7553
7555 #endif // V8_TARGET_ARCH_IA32 7554 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698