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

Side by Side Diff: src/mips/code-stubs-mips.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/log.h ('k') | src/mips64/code-stubs-mips64.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 // 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 4032 matching lines...) Expand 10 before | Expand all | Expand 10 after
4043 // Is it a fixed array? 4043 // Is it a fixed array?
4044 __ bind(&try_array); 4044 __ bind(&try_array);
4045 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); 4045 __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset));
4046 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); 4046 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex);
4047 __ Branch(&not_array, ne, at, Operand(scratch1)); 4047 __ Branch(&not_array, ne, at, Operand(scratch1));
4048 HandleArrayCases(masm, feedback, receiver_map, scratch1, t5, true, &miss); 4048 HandleArrayCases(masm, feedback, receiver_map, scratch1, t5, true, &miss);
4049 4049
4050 __ bind(&not_array); 4050 __ bind(&not_array);
4051 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); 4051 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
4052 __ Branch(&miss, ne, at, Operand(feedback)); 4052 __ Branch(&miss, ne, at, Operand(feedback));
4053 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 4053 Code::Flags code_flags =
4054 Code::ComputeHandlerFlags(Code::LOAD_IC)); 4054 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC));
4055 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, 4055 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags,
4056 receiver, name, feedback, 4056 receiver, name, feedback,
4057 receiver_map, scratch1, t5); 4057 receiver_map, scratch1, t5);
4058 4058
4059 __ bind(&miss); 4059 __ bind(&miss);
4060 LoadIC::GenerateMiss(masm); 4060 LoadIC::GenerateMiss(masm);
4061 4061
4062 __ bind(&load_smi_map); 4062 __ bind(&load_smi_map);
4063 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); 4063 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);
4064 __ jmp(&compare_map); 4064 __ jmp(&compare_map);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
4185 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); 4185 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex);
4186 __ Branch(&not_array, ne, scratch1, Operand(at)); 4186 __ Branch(&not_array, ne, scratch1, Operand(at));
4187 4187
4188 Register scratch2 = t4; 4188 Register scratch2 = t4;
4189 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, 4189 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true,
4190 &miss); 4190 &miss);
4191 4191
4192 __ bind(&not_array); 4192 __ bind(&not_array);
4193 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); 4193 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
4194 __ Branch(&miss, ne, feedback, Operand(at)); 4194 __ Branch(&miss, ne, feedback, Operand(at));
4195 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( 4195 Code::Flags code_flags =
4196 Code::ComputeHandlerFlags(Code::STORE_IC)); 4196 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
4197 masm->isolate()->stub_cache()->GenerateProbe( 4197 masm->isolate()->stub_cache()->GenerateProbe(
4198 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, 4198 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map,
4199 scratch1, scratch2); 4199 scratch1, scratch2);
4200 4200
4201 __ bind(&miss); 4201 __ bind(&miss);
4202 StoreIC::GenerateMiss(masm); 4202 StoreIC::GenerateMiss(masm);
4203 4203
4204 __ bind(&load_smi_map); 4204 __ bind(&load_smi_map);
4205 __ Branch(USE_DELAY_SLOT, &compare_map); 4205 __ Branch(USE_DELAY_SLOT, &compare_map);
4206 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. 4206 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot.
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5727 return_value_operand, NULL); 5727 return_value_operand, NULL);
5728 } 5728 }
5729 5729
5730 5730
5731 #undef __ 5731 #undef __
5732 5732
5733 } // namespace internal 5733 } // namespace internal
5734 } // namespace v8 5734 } // namespace v8
5735 5735
5736 #endif // V8_TARGET_ARCH_MIPS 5736 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698