Chromium Code Reviews

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

Issue 1846963002: Use a dictionary-mode code cache on the map rather than a dual system. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« src/heap/incremental-marking.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | no next file » | 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 // 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_X87 5 #if V8_TARGET_ARCH_X87
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 3531 matching lines...)
3542 __ bind(&try_array); 3542 __ bind(&try_array);
3543 __ CompareRoot(FieldOperand(scratch, 0), Heap::kFixedArrayMapRootIndex); 3543 __ CompareRoot(FieldOperand(scratch, 0), Heap::kFixedArrayMapRootIndex);
3544 __ j(not_equal, &not_array); 3544 __ j(not_equal, &not_array);
3545 HandleArrayCases(masm, receiver, name, vector, slot, scratch, true, &miss); 3545 HandleArrayCases(masm, receiver, name, vector, slot, scratch, true, &miss);
3546 3546
3547 __ bind(&not_array); 3547 __ bind(&not_array);
3548 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); 3548 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex);
3549 __ j(not_equal, &miss); 3549 __ j(not_equal, &miss);
3550 __ push(slot); 3550 __ push(slot);
3551 __ push(vector); 3551 __ push(vector);
3552 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 3552 Code::Flags code_flags =
3553 Code::ComputeHandlerFlags(Code::LOAD_IC)); 3553 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC));
3554 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, 3554 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags,
3555 receiver, name, vector, scratch); 3555 receiver, name, vector, scratch);
3556 __ pop(vector); 3556 __ pop(vector);
3557 __ pop(slot); 3557 __ pop(slot);
3558 3558
3559 __ bind(&miss); 3559 __ bind(&miss);
3560 LoadIC::GenerateMiss(masm); 3560 LoadIC::GenerateMiss(masm);
3561 } 3561 }
3562 3562
3563 3563
(...skipping 239 matching lines...)
3803 HandlePolymorphicStoreCase(masm, receiver, key, vector, slot, scratch, true, 3803 HandlePolymorphicStoreCase(masm, receiver, key, vector, slot, scratch, true,
3804 &miss); 3804 &miss);
3805 3805
3806 __ bind(&not_array); 3806 __ bind(&not_array);
3807 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); 3807 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex);
3808 __ j(not_equal, &miss); 3808 __ j(not_equal, &miss);
3809 3809
3810 __ pop(value); 3810 __ pop(value);
3811 __ push(slot); 3811 __ push(slot);
3812 __ push(vector); 3812 __ push(vector);
3813 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 3813 Code::Flags code_flags =
3814 Code::ComputeHandlerFlags(Code::STORE_IC)); 3814 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
3815 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, 3815 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags,
3816 receiver, key, slot, no_reg); 3816 receiver, key, slot, no_reg);
3817 __ pop(vector); 3817 __ pop(vector);
3818 __ pop(slot); 3818 __ pop(slot);
3819 Label no_pop_miss; 3819 Label no_pop_miss;
3820 __ jmp(&no_pop_miss); 3820 __ jmp(&no_pop_miss);
3821 3821
3822 __ bind(&miss); 3822 __ bind(&miss);
3823 __ pop(value); 3823 __ pop(value);
3824 __ bind(&no_pop_miss); 3824 __ bind(&no_pop_miss);
(...skipping 1682 matching lines...)
5507 return_value_operand, NULL); 5507 return_value_operand, NULL);
5508 } 5508 }
5509 5509
5510 5510
5511 #undef __ 5511 #undef __
5512 5512
5513 } // namespace internal 5513 } // namespace internal
5514 } // namespace v8 5514 } // namespace v8
5515 5515
5516 #endif // V8_TARGET_ARCH_X87 5516 #endif // V8_TARGET_ARCH_X87
OLDNEW
« src/heap/incremental-marking.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine