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

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

Issue 1014293002: MIPS: 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/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.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 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 return DefineAsRegister(new(zone()) LConstantE); 2080 return DefineAsRegister(new(zone()) LConstantE);
2081 } else if (r.IsTagged()) { 2081 } else if (r.IsTagged()) {
2082 return DefineAsRegister(new(zone()) LConstantT); 2082 return DefineAsRegister(new(zone()) LConstantT);
2083 } else { 2083 } else {
2084 UNREACHABLE(); 2084 UNREACHABLE();
2085 return NULL; 2085 return NULL;
2086 } 2086 }
2087 } 2087 }
2088 2088
2089 2089
2090 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
2091 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell;
2092 return instr->RequiresHoleCheck()
2093 ? AssignEnvironment(DefineAsRegister(result))
2094 : DefineAsRegister(result);
2095 }
2096
2097
2098 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2090 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2099 LOperand* context = UseFixed(instr->context(), cp); 2091 LOperand* context = UseFixed(instr->context(), cp);
2100 LOperand* global_object = 2092 LOperand* global_object =
2101 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2093 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2102 LOperand* vector = NULL; 2094 LOperand* vector = NULL;
2103 if (instr->HasVectorAndSlot()) { 2095 if (instr->HasVectorAndSlot()) {
2104 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2096 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2105 } 2097 }
2106 LLoadGlobalGeneric* result = 2098 LLoadGlobalGeneric* result =
2107 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2099 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2108 return MarkAsCall(DefineFixed(result, v0), instr); 2100 return MarkAsCall(DefineFixed(result, v0), instr);
2109 } 2101 }
2110 2102
2111 2103
2112 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2113 LOperand* value = UseRegister(instr->value());
2114 // Use a temp to check the value in the cell in the case where we perform
2115 // a hole check.
2116 return instr->RequiresHoleCheck()
2117 ? AssignEnvironment(new(zone()) LStoreGlobalCell(value, TempRegister()))
2118 : new(zone()) LStoreGlobalCell(value, NULL);
2119 }
2120
2121
2122 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2104 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2123 LOperand* context = UseRegisterAtStart(instr->value()); 2105 LOperand* context = UseRegisterAtStart(instr->value());
2124 LInstruction* result = 2106 LInstruction* result =
2125 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2107 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2126 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 2108 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
2127 result = AssignEnvironment(result); 2109 result = AssignEnvironment(result);
2128 } 2110 }
2129 return result; 2111 return result;
2130 } 2112 }
2131 2113
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 LOperand* context = UseFixed(instr->context(), cp); 2605 LOperand* context = UseFixed(instr->context(), cp);
2624 LOperand* function = UseRegisterAtStart(instr->function()); 2606 LOperand* function = UseRegisterAtStart(instr->function());
2625 LAllocateBlockContext* result = 2607 LAllocateBlockContext* result =
2626 new(zone()) LAllocateBlockContext(context, function); 2608 new(zone()) LAllocateBlockContext(context, function);
2627 return MarkAsCall(DefineFixed(result, cp), instr); 2609 return MarkAsCall(DefineFixed(result, cp), instr);
2628 } 2610 }
2629 2611
2630 } } // namespace v8::internal 2612 } } // namespace v8::internal
2631 2613
2632 #endif // V8_TARGET_ARCH_MIPS 2614 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698