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

Side by Side Diff: src/crankshaft/arm/lithium-arm.cc

Issue 2019313003: IC: Eliminate initialization_state as a factor in IC installation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed compile error. Created 4 years, 6 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/compiler/js-generic-lowering.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.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/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 UNREACHABLE(); 2007 UNREACHABLE();
2008 return NULL; 2008 return NULL;
2009 } 2009 }
2010 } 2010 }
2011 2011
2012 2012
2013 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2013 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2014 LOperand* context = UseFixed(instr->context(), cp); 2014 LOperand* context = UseFixed(instr->context(), cp);
2015 LOperand* global_object = 2015 LOperand* global_object =
2016 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2016 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2017 LOperand* vector = NULL; 2017 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2018 if (instr->HasVectorAndSlot()) {
2019 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2020 }
2021 LLoadGlobalGeneric* result = 2018 LLoadGlobalGeneric* result =
2022 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2019 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2023 return MarkAsCall(DefineFixed(result, r0), instr); 2020 return MarkAsCall(DefineFixed(result, r0), instr);
2024 } 2021 }
2025 2022
2026 2023
2027 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2024 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2028 LOperand* context = UseRegisterAtStart(instr->value()); 2025 LOperand* context = UseRegisterAtStart(instr->value());
2029 LInstruction* result = 2026 LInstruction* result =
2030 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2027 DefineAsRegister(new(zone()) LLoadContextSlot(context));
(...skipping 25 matching lines...) Expand all
2056 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 2053 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2057 LOperand* obj = UseRegisterAtStart(instr->object()); 2054 LOperand* obj = UseRegisterAtStart(instr->object());
2058 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2055 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2059 } 2056 }
2060 2057
2061 2058
2062 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2059 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2063 LOperand* context = UseFixed(instr->context(), cp); 2060 LOperand* context = UseFixed(instr->context(), cp);
2064 LOperand* object = 2061 LOperand* object =
2065 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2062 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2066 LOperand* vector = NULL; 2063 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2067 if (instr->HasVectorAndSlot()) {
2068 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2069 }
2070 2064
2071 LInstruction* result = 2065 LInstruction* result =
2072 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), r0); 2066 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), r0);
2073 return MarkAsCall(result, instr); 2067 return MarkAsCall(result, instr);
2074 } 2068 }
2075 2069
2076 2070
2077 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2071 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2078 HLoadFunctionPrototype* instr) { 2072 HLoadFunctionPrototype* instr) {
2079 return AssignEnvironment(DefineAsRegister( 2073 return AssignEnvironment(DefineAsRegister(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 } 2125 }
2132 return result; 2126 return result;
2133 } 2127 }
2134 2128
2135 2129
2136 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2130 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2137 LOperand* context = UseFixed(instr->context(), cp); 2131 LOperand* context = UseFixed(instr->context(), cp);
2138 LOperand* object = 2132 LOperand* object =
2139 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2133 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2140 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); 2134 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister());
2141 LOperand* vector = NULL; 2135 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2142 if (instr->HasVectorAndSlot()) {
2143 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2144 }
2145 2136
2146 LInstruction* result = 2137 LInstruction* result =
2147 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector), 2138 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector),
2148 r0); 2139 r0);
2149 return MarkAsCall(result, instr); 2140 return MarkAsCall(result, instr);
2150 } 2141 }
2151 2142
2152 2143
2153 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2144 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2154 if (!instr->is_fixed_typed_array()) { 2145 if (!instr->is_fixed_typed_array()) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 LOperand* context = UseFixed(instr->context(), cp); 2187 LOperand* context = UseFixed(instr->context(), cp);
2197 LOperand* obj = 2188 LOperand* obj =
2198 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2189 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2199 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2190 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2200 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2191 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2201 2192
2202 DCHECK(instr->object()->representation().IsTagged()); 2193 DCHECK(instr->object()->representation().IsTagged());
2203 DCHECK(instr->key()->representation().IsTagged()); 2194 DCHECK(instr->key()->representation().IsTagged());
2204 DCHECK(instr->value()->representation().IsTagged()); 2195 DCHECK(instr->value()->representation().IsTagged());
2205 2196
2206 LOperand* slot = NULL; 2197 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2207 LOperand* vector = NULL; 2198 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2208 if (instr->HasVectorAndSlot()) {
2209 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2210 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2211 }
2212 2199
2213 LStoreKeyedGeneric* result = 2200 LStoreKeyedGeneric* result =
2214 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector); 2201 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2215 return MarkAsCall(result, instr); 2202 return MarkAsCall(result, instr);
2216 } 2203 }
2217 2204
2218 2205
2219 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2206 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2220 HTransitionElementsKind* instr) { 2207 HTransitionElementsKind* instr) {
2221 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2208 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 2277
2291 return new(zone()) LStoreNamedField(obj, val, temp); 2278 return new(zone()) LStoreNamedField(obj, val, temp);
2292 } 2279 }
2293 2280
2294 2281
2295 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2282 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2296 LOperand* context = UseFixed(instr->context(), cp); 2283 LOperand* context = UseFixed(instr->context(), cp);
2297 LOperand* obj = 2284 LOperand* obj =
2298 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2285 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2299 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2286 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2300 LOperand* slot = NULL; 2287 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2301 LOperand* vector = NULL; 2288 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2302 if (instr->HasVectorAndSlot()) {
2303 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2304 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2305 }
2306 2289
2307 LStoreNamedGeneric* result = 2290 LStoreNamedGeneric* result =
2308 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector); 2291 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector);
2309 return MarkAsCall(result, instr); 2292 return MarkAsCall(result, instr);
2310 } 2293 }
2311 2294
2312 2295
2313 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2296 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2314 LOperand* context = UseFixed(instr->context(), cp); 2297 LOperand* context = UseFixed(instr->context(), cp);
2315 LOperand* left = UseFixed(instr->left(), r1); 2298 LOperand* left = UseFixed(instr->left(), r1);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2517 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2500 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2518 LOperand* object = UseRegister(instr->object()); 2501 LOperand* object = UseRegister(instr->object());
2519 LOperand* index = UseTempRegister(instr->index()); 2502 LOperand* index = UseTempRegister(instr->index());
2520 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2503 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2521 LInstruction* result = DefineSameAsFirst(load); 2504 LInstruction* result = DefineSameAsFirst(load);
2522 return AssignPointerMap(result); 2505 return AssignPointerMap(result);
2523 } 2506 }
2524 2507
2525 } // namespace internal 2508 } // namespace internal
2526 } // namespace v8 2509 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698