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

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

Issue 2123983004: [ic] Split megamorphic stub cache in two caches (for loads and for stores). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@flags-fix
Patch Set: Rebasing Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 3573 matching lines...) Expand 10 before | Expand all | Expand 10 after
3584 // Is it a fixed array? 3584 // Is it a fixed array?
3585 __ bind(&try_array); 3585 __ bind(&try_array);
3586 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); 3586 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset));
3587 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); 3587 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex);
3588 __ bne(&not_array, Label::kNear); 3588 __ bne(&not_array, Label::kNear);
3589 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss); 3589 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss);
3590 3590
3591 __ bind(&not_array); 3591 __ bind(&not_array);
3592 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 3592 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
3593 __ bne(&miss); 3593 __ bne(&miss);
3594 Code::Flags code_flags = 3594 masm->isolate()->load_stub_cache()->GenerateProbe(
3595 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); 3595 masm, receiver, name, feedback, receiver_map, scratch1, r9);
3596 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags,
3597 receiver, name, feedback,
3598 receiver_map, scratch1, r9);
3599 3596
3600 __ bind(&miss); 3597 __ bind(&miss);
3601 LoadIC::GenerateMiss(masm); 3598 LoadIC::GenerateMiss(masm);
3602 3599
3603 __ bind(&load_smi_map); 3600 __ bind(&load_smi_map);
3604 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); 3601 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);
3605 __ b(&compare_map); 3602 __ b(&compare_map);
3606 } 3603 }
3607 3604
3608 void KeyedLoadICStub::Generate(MacroAssembler* masm) { 3605 void KeyedLoadICStub::Generate(MacroAssembler* masm) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
3719 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); 3716 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex);
3720 __ bne(&not_array); 3717 __ bne(&not_array);
3721 3718
3722 Register scratch2 = ip; 3719 Register scratch2 = ip;
3723 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, 3720 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true,
3724 &miss); 3721 &miss);
3725 3722
3726 __ bind(&not_array); 3723 __ bind(&not_array);
3727 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 3724 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
3728 __ bne(&miss); 3725 __ bne(&miss);
3729 Code::Flags code_flags = 3726 masm->isolate()->store_stub_cache()->GenerateProbe(
3730 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 3727 masm, receiver, key, feedback, receiver_map, scratch1, scratch2);
3731 masm->isolate()->stub_cache()->GenerateProbe(
3732 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map,
3733 scratch1, scratch2);
3734 3728
3735 __ bind(&miss); 3729 __ bind(&miss);
3736 StoreIC::GenerateMiss(masm); 3730 StoreIC::GenerateMiss(masm);
3737 3731
3738 __ bind(&load_smi_map); 3732 __ bind(&load_smi_map);
3739 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); 3733 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);
3740 __ b(&compare_map); 3734 __ b(&compare_map);
3741 } 3735 }
3742 3736
3743 void VectorKeyedStoreICStub::Generate(MacroAssembler* masm) { 3737 void VectorKeyedStoreICStub::Generate(MacroAssembler* masm) {
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
5399 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5393 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5400 kStackUnwindSpace, NULL, return_value_operand, NULL); 5394 kStackUnwindSpace, NULL, return_value_operand, NULL);
5401 } 5395 }
5402 5396
5403 #undef __ 5397 #undef __
5404 5398
5405 } // namespace internal 5399 } // namespace internal
5406 } // namespace v8 5400 } // namespace v8
5407 5401
5408 #endif // V8_TARGET_ARCH_S390 5402 #endif // V8_TARGET_ARCH_S390
OLDNEW
« src/ic/x64/stub-cache-x64.cc ('K') | « src/ppc/code-stubs-ppc.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698