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

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

Issue 1253573004: X87: Eliminate redundant descriptor ElementTransitionAndStoreDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/access-compiler-x87.cc ('k') | src/x87/interface-descriptors-x87.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 } 63 }
64 64
65 Label number_case; 65 Label number_case;
66 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; 66 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss;
67 __ JumpIfSmi(receiver(), smi_target); 67 __ JumpIfSmi(receiver(), smi_target);
68 68
69 // Polymorphic keyed stores may use the map register 69 // Polymorphic keyed stores may use the map register
70 Register map_reg = scratch1(); 70 Register map_reg = scratch1();
71 DCHECK(kind() != Code::KEYED_STORE_IC || 71 DCHECK(kind() != Code::KEYED_STORE_IC ||
72 map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister())); 72 map_reg.is(StoreTransitionDescriptor::MapRegister()));
73 __ mov(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset)); 73 __ mov(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset));
74 int receiver_count = maps->length(); 74 int receiver_count = maps->length();
75 int number_of_handled_maps = 0; 75 int number_of_handled_maps = 0;
76 for (int current = 0; current < receiver_count; ++current) { 76 for (int current = 0; current < receiver_count; ++current) {
77 Handle<Map> map = maps->at(current); 77 Handle<Map> map = maps->at(current);
78 if (!map->is_deprecated()) { 78 if (!map->is_deprecated()) {
79 number_of_handled_maps++; 79 number_of_handled_maps++;
80 Handle<WeakCell> cell = Map::WeakCellForMap(map); 80 Handle<WeakCell> cell = Map::WeakCellForMap(map);
81 __ CmpWeakValue(map_reg, cell, scratch2()); 81 __ CmpWeakValue(map_reg, cell, scratch2());
82 if (map->instance_type() == HEAP_NUMBER_TYPE) { 82 if (map->instance_type() == HEAP_NUMBER_TYPE) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Return the generated code. 125 // Return the generated code.
126 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 126 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
127 } 127 }
128 128
129 129
130 #undef __ 130 #undef __
131 } // namespace internal 131 } // namespace internal
132 } // namespace v8 132 } // namespace v8
133 133
134 #endif // V8_TARGET_ARCH_X87 134 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/ic/x87/access-compiler-x87.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698