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

Side by Side Diff: src/ic/mips64/ic-compiler-mips64.cc

Issue 1248973002: Eliminate redundant descriptor ElementTransitionAndStoreDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 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
« no previous file with comments | « src/ic/mips64/access-compiler-mips64.cc ('k') | src/ic/x64/access-compiler-x64.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 Label number_case; 43 Label number_case;
44 Register match = scratch2(); 44 Register match = scratch2();
45 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; 45 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss;
46 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. 46 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi.
47 47
48 // Polymorphic keyed stores may use the map register 48 // Polymorphic keyed stores may use the map register
49 Register map_reg = scratch1(); 49 Register map_reg = scratch1();
50 DCHECK(kind() != Code::KEYED_STORE_IC || 50 DCHECK(kind() != Code::KEYED_STORE_IC ||
51 map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister())); 51 map_reg.is(StoreTransitionDescriptor::MapRegister()));
52 52
53 int receiver_count = maps->length(); 53 int receiver_count = maps->length();
54 int number_of_handled_maps = 0; 54 int number_of_handled_maps = 0;
55 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); 55 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
56 for (int current = 0; current < receiver_count; ++current) { 56 for (int current = 0; current < receiver_count; ++current) {
57 Handle<Map> map = maps->at(current); 57 Handle<Map> map = maps->at(current);
58 if (!map->is_deprecated()) { 58 if (!map->is_deprecated()) {
59 number_of_handled_maps++; 59 number_of_handled_maps++;
60 // Check map and tail call if there's a match. 60 // Check map and tail call if there's a match.
61 // Separate compare from branch, to provide path for above JumpIfSmi(). 61 // Separate compare from branch, to provide path for above JumpIfSmi().
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Do tail-call to runtime routine. 131 // Do tail-call to runtime routine.
132 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); 132 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
133 } 133 }
134 134
135 135
136 #undef __ 136 #undef __
137 } // namespace internal 137 } // namespace internal
138 } // namespace v8 138 } // namespace v8
139 139
140 #endif // V8_TARGET_ARCH_MIPS64 140 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/access-compiler-mips64.cc ('k') | src/ic/x64/access-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698