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

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

Issue 1330883002: PPC: Reland Vector ICs: platform support for vector-based stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/ppc/handler-compiler-ppc.cc ('k') | src/ic/ppc/ic-ppc.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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 #include "src/ic/ic-compiler.h" 8 #include "src/ic/ic-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 __ LoadP(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); 105 __ LoadP(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
106 for (int i = 0; i < receiver_count; ++i) { 106 for (int i = 0; i < receiver_count; ++i) {
107 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); 107 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i));
108 __ CmpWeakValue(map_reg, cell, scratch2()); 108 __ CmpWeakValue(map_reg, cell, scratch2());
109 if (transitioned_maps->at(i).is_null()) { 109 if (transitioned_maps->at(i).is_null()) {
110 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq); 110 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq);
111 } else { 111 } else {
112 Label next_map; 112 Label next_map;
113 __ bne(&next_map); 113 __ bne(&next_map);
114 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); 114 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i));
115 __ LoadWeakValue(transition_map(), cell, &miss); 115 Register transition_map = scratch1();
116 DCHECK(!FLAG_vector_stores &&
117 transition_map.is(StoreTransitionDescriptor::MapRegister()));
118 __ LoadWeakValue(transition_map, cell, &miss);
116 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al); 119 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al);
117 __ bind(&next_map); 120 __ bind(&next_map);
118 } 121 }
119 } 122 }
120 123
121 __ bind(&miss); 124 __ bind(&miss);
122 TailCallBuiltin(masm(), MissBuiltin(kind())); 125 TailCallBuiltin(masm(), MissBuiltin(kind()));
123 126
124 // Return the generated code. 127 // Return the generated code.
125 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 128 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
126 } 129 }
127 130
128 131
129 #undef __ 132 #undef __
130 } // namespace internal 133 } // namespace internal
131 } // namespace v8 134 } // namespace v8
132 135
133 #endif // V8_TARGET_ARCH_PPC 136 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/ppc/ic-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698