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

Side by Side Diff: src/mips64/code-stubs-mips64.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: Addressed comment Created 4 years, 8 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/objects.h » ('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 // 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after
4048 // Is it a fixed array? 4048 // Is it a fixed array?
4049 __ bind(&try_array); 4049 __ bind(&try_array);
4050 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); 4050 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset));
4051 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); 4051 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex);
4052 __ Branch(&not_array, ne, scratch1, Operand(at)); 4052 __ Branch(&not_array, ne, scratch1, Operand(at));
4053 HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss); 4053 HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss);
4054 4054
4055 __ bind(&not_array); 4055 __ bind(&not_array);
4056 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); 4056 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
4057 __ Branch(&miss, ne, feedback, Operand(at)); 4057 __ Branch(&miss, ne, feedback, Operand(at));
4058 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 4058 Code::Flags code_flags =
4059 Code::ComputeHandlerFlags(Code::LOAD_IC)); 4059 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC));
4060 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, 4060 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags,
4061 receiver, name, feedback, 4061 receiver, name, feedback,
4062 receiver_map, scratch1, a7); 4062 receiver_map, scratch1, a7);
4063 4063
4064 __ bind(&miss); 4064 __ bind(&miss);
4065 LoadIC::GenerateMiss(masm); 4065 LoadIC::GenerateMiss(masm);
4066 4066
4067 __ bind(&load_smi_map); 4067 __ bind(&load_smi_map);
4068 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); 4068 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);
4069 __ Branch(&compare_map); 4069 __ Branch(&compare_map);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
4191 __ bind(&try_array); 4191 __ bind(&try_array);
4192 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); 4192 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset));
4193 __ Branch(&not_array, ne, scratch1, Heap::kFixedArrayMapRootIndex); 4193 __ Branch(&not_array, ne, scratch1, Heap::kFixedArrayMapRootIndex);
4194 4194
4195 Register scratch2 = t0; 4195 Register scratch2 = t0;
4196 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, 4196 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true,
4197 &miss); 4197 &miss);
4198 4198
4199 __ bind(&not_array); 4199 __ bind(&not_array);
4200 __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex); 4200 __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex);
4201 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 4201 Code::Flags code_flags =
4202 Code::ComputeHandlerFlags(Code::STORE_IC)); 4202 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
4203 masm->isolate()->stub_cache()->GenerateProbe( 4203 masm->isolate()->stub_cache()->GenerateProbe(
4204 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, 4204 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map,
4205 scratch1, scratch2); 4205 scratch1, scratch2);
4206 4206
4207 __ bind(&miss); 4207 __ bind(&miss);
4208 StoreIC::GenerateMiss(masm); 4208 StoreIC::GenerateMiss(masm);
4209 4209
4210 __ bind(&load_smi_map); 4210 __ bind(&load_smi_map);
4211 __ Branch(USE_DELAY_SLOT, &compare_map); 4211 __ Branch(USE_DELAY_SLOT, &compare_map);
4212 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. 4212 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot.
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
5755 return_value_operand, NULL); 5755 return_value_operand, NULL);
5756 } 5756 }
5757 5757
5758 5758
5759 #undef __ 5759 #undef __
5760 5760
5761 } // namespace internal 5761 } // namespace internal
5762 } // namespace v8 5762 } // namespace v8
5763 5763
5764 #endif // V8_TARGET_ARCH_MIPS64 5764 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698