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

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

Issue 1013543004: X87: 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/x87/lithium-x87.h ('k') | no next file » | 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 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 return DefineAsRegister(new(zone()) LConstantE); 2123 return DefineAsRegister(new(zone()) LConstantE);
2124 } else if (r.IsTagged()) { 2124 } else if (r.IsTagged()) {
2125 return DefineAsRegister(new(zone()) LConstantT); 2125 return DefineAsRegister(new(zone()) LConstantT);
2126 } else { 2126 } else {
2127 UNREACHABLE(); 2127 UNREACHABLE();
2128 return NULL; 2128 return NULL;
2129 } 2129 }
2130 } 2130 }
2131 2131
2132 2132
2133 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
2134 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell;
2135 return instr->RequiresHoleCheck()
2136 ? AssignEnvironment(DefineAsRegister(result))
2137 : DefineAsRegister(result);
2138 }
2139
2140
2141 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2133 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2142 LOperand* context = UseFixed(instr->context(), esi); 2134 LOperand* context = UseFixed(instr->context(), esi);
2143 LOperand* global_object = 2135 LOperand* global_object =
2144 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2136 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2145 LOperand* vector = NULL; 2137 LOperand* vector = NULL;
2146 if (instr->HasVectorAndSlot()) { 2138 if (instr->HasVectorAndSlot()) {
2147 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2139 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2148 } 2140 }
2149 2141
2150 LLoadGlobalGeneric* result = 2142 LLoadGlobalGeneric* result =
2151 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2143 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2152 return MarkAsCall(DefineFixed(result, eax), instr); 2144 return MarkAsCall(DefineFixed(result, eax), instr);
2153 } 2145 }
2154 2146
2155 2147
2156 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2157 LStoreGlobalCell* result =
2158 new(zone()) LStoreGlobalCell(UseRegister(instr->value()));
2159 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
2160 }
2161
2162
2163 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2148 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2164 LOperand* context = UseRegisterAtStart(instr->value()); 2149 LOperand* context = UseRegisterAtStart(instr->value());
2165 LInstruction* result = 2150 LInstruction* result =
2166 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2151 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2167 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 2152 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
2168 result = AssignEnvironment(result); 2153 result = AssignEnvironment(result);
2169 } 2154 }
2170 return result; 2155 return result;
2171 } 2156 }
2172 2157
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 LOperand* function = UseRegisterAtStart(instr->function()); 2724 LOperand* function = UseRegisterAtStart(instr->function());
2740 LAllocateBlockContext* result = 2725 LAllocateBlockContext* result =
2741 new(zone()) LAllocateBlockContext(context, function); 2726 new(zone()) LAllocateBlockContext(context, function);
2742 return MarkAsCall(DefineFixed(result, esi), instr); 2727 return MarkAsCall(DefineFixed(result, esi), instr);
2743 } 2728 }
2744 2729
2745 2730
2746 } } // namespace v8::internal 2731 } } // namespace v8::internal
2747 2732
2748 #endif // V8_TARGET_ARCH_X87 2733 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698