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

Side by Side Diff: src/arm/code-stubs-arm.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 | « 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 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 3357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3368 ASSERT(kind() == Code::LOAD_IC); 3368 ASSERT(kind() == Code::LOAD_IC);
3369 // ----------- S t a t e ------------- 3369 // ----------- S t a t e -------------
3370 // -- r2 : name 3370 // -- r2 : name
3371 // -- lr : return address 3371 // -- lr : return address
3372 // -- r0 : receiver 3372 // -- r0 : receiver
3373 // -- sp[0] : receiver 3373 // -- sp[0] : receiver
3374 // ----------------------------------- 3374 // -----------------------------------
3375 receiver = r0; 3375 receiver = r0;
3376 } 3376 }
3377 3377
3378 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss, 3378 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss);
3379 support_wrapper_);
3380 3379
3381 __ bind(&miss); 3380 __ bind(&miss);
3382 StubCompiler::TailCallBuiltin( 3381 StubCompiler::TailCallBuiltin(
3383 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 3382 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3384 } 3383 }
3385 3384
3386 3385
3387 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 3386 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
3388 // This accepts as a receiver anything JSArray::SetElementsLength accepts 3387 // This accepts as a receiver anything JSArray::SetElementsLength accepts
3389 // (currently anything except for external arrays which means anything with 3388 // (currently anything except for external arrays which means anything with
(...skipping 3764 matching lines...) Expand 10 before | Expand all | Expand 10 after
7154 __ bind(&fast_elements_case); 7153 __ bind(&fast_elements_case);
7155 GenerateCase(masm, FAST_ELEMENTS); 7154 GenerateCase(masm, FAST_ELEMENTS);
7156 } 7155 }
7157 7156
7158 7157
7159 #undef __ 7158 #undef __
7160 7159
7161 } } // namespace v8::internal 7160 } } // namespace v8::internal
7162 7161
7163 #endif // V8_TARGET_ARCH_ARM 7162 #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