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

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

Issue 1016803002: Remove PropertyCell space (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/arm/lithium-arm.h ('k') | src/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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2133 return DefineAsRegister(new(zone()) LConstantE); 2133 return DefineAsRegister(new(zone()) LConstantE);
2134 } else if (r.IsTagged()) { 2134 } else if (r.IsTagged()) {
2135 return DefineAsRegister(new(zone()) LConstantT); 2135 return DefineAsRegister(new(zone()) LConstantT);
2136 } else { 2136 } else {
2137 UNREACHABLE(); 2137 UNREACHABLE();
2138 return NULL; 2138 return NULL;
2139 } 2139 }
2140 } 2140 }
2141 2141
2142 2142
2143 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
2144 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell;
2145 return instr->RequiresHoleCheck()
2146 ? AssignEnvironment(DefineAsRegister(result))
2147 : DefineAsRegister(result);
2148 }
2149
2150
2151 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2143 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2152 LOperand* context = UseFixed(instr->context(), cp); 2144 LOperand* context = UseFixed(instr->context(), cp);
2153 LOperand* global_object = 2145 LOperand* global_object =
2154 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2146 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2155 LOperand* vector = NULL; 2147 LOperand* vector = NULL;
2156 if (instr->HasVectorAndSlot()) { 2148 if (instr->HasVectorAndSlot()) {
2157 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2149 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2158 } 2150 }
2159 LLoadGlobalGeneric* result = 2151 LLoadGlobalGeneric* result =
2160 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2152 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2161 return MarkAsCall(DefineFixed(result, r0), instr); 2153 return MarkAsCall(DefineFixed(result, r0), instr);
2162 } 2154 }
2163 2155
2164 2156
2165 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2166 LOperand* value = UseRegister(instr->value());
2167 // Use a temp to check the value in the cell in the case where we perform
2168 // a hole check.
2169 return instr->RequiresHoleCheck()
2170 ? AssignEnvironment(new(zone()) LStoreGlobalCell(value, TempRegister()))
2171 : new(zone()) LStoreGlobalCell(value, NULL);
2172 }
2173
2174
2175 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2157 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2176 LOperand* context = UseRegisterAtStart(instr->value()); 2158 LOperand* context = UseRegisterAtStart(instr->value());
2177 LInstruction* result = 2159 LInstruction* result =
2178 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2160 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2179 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 2161 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
2180 result = AssignEnvironment(result); 2162 result = AssignEnvironment(result);
2181 } 2163 }
2182 return result; 2164 return result;
2183 } 2165 }
2184 2166
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2655 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2674 HAllocateBlockContext* instr) { 2656 HAllocateBlockContext* instr) {
2675 LOperand* context = UseFixed(instr->context(), cp); 2657 LOperand* context = UseFixed(instr->context(), cp);
2676 LOperand* function = UseRegisterAtStart(instr->function()); 2658 LOperand* function = UseRegisterAtStart(instr->function());
2677 LAllocateBlockContext* result = 2659 LAllocateBlockContext* result =
2678 new(zone()) LAllocateBlockContext(context, function); 2660 new(zone()) LAllocateBlockContext(context, function);
2679 return MarkAsCall(DefineFixed(result, cp), instr); 2661 return MarkAsCall(DefineFixed(result, cp), instr);
2680 } 2662 }
2681 2663
2682 } } // namespace v8::internal 2664 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698