Chromium Code Reviews

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

Issue 14142005: Implement Polymorphic Store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | src/arm/stub-cache-arm.cc » ('J')
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 3374 matching lines...)
3385 // -- r2 : name 3385 // -- r2 : name
3386 // -- lr : return address 3386 // -- lr : return address
3387 // -- r0 : receiver 3387 // -- r0 : receiver
3388 // -- sp[0] : receiver 3388 // -- sp[0] : receiver
3389 // ----------------------------------- 3389 // -----------------------------------
3390 receiver = r0; 3390 receiver = r0;
3391 } 3391 }
3392 3392
3393 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss); 3393 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss);
3394 __ bind(&miss); 3394 __ bind(&miss);
3395 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3395 StubCompiler::TailCallBuiltin(
3396 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3396 } 3397 }
3397 3398
3398 3399
3399 void StringLengthStub::Generate(MacroAssembler* masm) { 3400 void StringLengthStub::Generate(MacroAssembler* masm) {
3400 Label miss; 3401 Label miss;
3401 Register receiver; 3402 Register receiver;
3402 if (kind() == Code::KEYED_LOAD_IC) { 3403 if (kind() == Code::KEYED_LOAD_IC) {
3403 // ----------- S t a t e ------------- 3404 // ----------- S t a t e -------------
3404 // -- lr : return address 3405 // -- lr : return address
3405 // -- r0 : key 3406 // -- r0 : key
(...skipping 10 matching lines...)
3416 // -- r0 : receiver 3417 // -- r0 : receiver
3417 // -- sp[0] : receiver 3418 // -- sp[0] : receiver
3418 // ----------------------------------- 3419 // -----------------------------------
3419 receiver = r0; 3420 receiver = r0;
3420 } 3421 }
3421 3422
3422 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss, 3423 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss,
3423 support_wrapper_); 3424 support_wrapper_);
3424 3425
3425 __ bind(&miss); 3426 __ bind(&miss);
3426 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3427 StubCompiler::TailCallBuiltin(
3428 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3427 } 3429 }
3428 3430
3429 3431
3430 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 3432 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
3431 // This accepts as a receiver anything JSArray::SetElementsLength accepts 3433 // This accepts as a receiver anything JSArray::SetElementsLength accepts
3432 // (currently anything except for external arrays which means anything with 3434 // (currently anything except for external arrays which means anything with
3433 // elements of FixedArray type). Value must be a number, but only smis are 3435 // elements of FixedArray type). Value must be a number, but only smis are
3434 // accepted as the most common case. 3436 // accepted as the most common case.
3435 Label miss; 3437 Label miss;
3436 3438
(...skipping 49 matching lines...)
3486 3488
3487 // Prepare tail call to StoreIC_ArrayLength. 3489 // Prepare tail call to StoreIC_ArrayLength.
3488 __ Push(receiver, value); 3490 __ Push(receiver, value);
3489 3491
3490 ExternalReference ref = 3492 ExternalReference ref =
3491 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); 3493 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate());
3492 __ TailCallExternalReference(ref, 2, 1); 3494 __ TailCallExternalReference(ref, 2, 1);
3493 3495
3494 __ bind(&miss); 3496 __ bind(&miss);
3495 3497
3496 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3498 StubCompiler::TailCallBuiltin(
3499 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3497 } 3500 }
3498 3501
3499 3502
3500 Register InstanceofStub::left() { return r0; } 3503 Register InstanceofStub::left() { return r0; }
3501 3504
3502 3505
3503 Register InstanceofStub::right() { return r1; } 3506 Register InstanceofStub::right() { return r1; }
3504 3507
3505 3508
3506 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 3509 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
(...skipping 3670 matching lines...)
7177 __ bind(&fast_elements_case); 7180 __ bind(&fast_elements_case);
7178 GenerateCase(masm, FAST_ELEMENTS); 7181 GenerateCase(masm, FAST_ELEMENTS);
7179 } 7182 }
7180 7183
7181 7184
7182 #undef __ 7185 #undef __
7183 7186
7184 } } // namespace v8::internal 7187 } } // namespace v8::internal
7185 7188
7186 #endif // V8_TARGET_ARCH_ARM 7189 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | src/arm/stub-cache-arm.cc » ('J')

Powered by Google App Engine