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

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

Issue 403393008: MIPS: Introduce FLAG_vector_ics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/full-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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/hydrogen-osr.h" 7 #include "src/hydrogen-osr.h"
8 #include "src/lithium-allocator-inl.h" 8 #include "src/lithium-allocator-inl.h"
9 #include "src/mips/lithium-codegen-mips.h" 9 #include "src/mips/lithium-codegen-mips.h"
10 #include "src/mips/lithium-mips.h" 10 #include "src/mips/lithium-mips.h"
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 return instr->RequiresHoleCheck() 2026 return instr->RequiresHoleCheck()
2027 ? AssignEnvironment(DefineAsRegister(result)) 2027 ? AssignEnvironment(DefineAsRegister(result))
2028 : DefineAsRegister(result); 2028 : DefineAsRegister(result);
2029 } 2029 }
2030 2030
2031 2031
2032 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2032 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2033 LOperand* context = UseFixed(instr->context(), cp); 2033 LOperand* context = UseFixed(instr->context(), cp);
2034 LOperand* global_object = UseFixed(instr->global_object(), 2034 LOperand* global_object = UseFixed(instr->global_object(),
2035 LoadIC::ReceiverRegister()); 2035 LoadIC::ReceiverRegister());
2036 LOperand* vector = NULL;
2037 if (FLAG_vector_ics) {
2038 vector = FixedTemp(LoadIC::VectorRegister());
2039 }
2036 LLoadGlobalGeneric* result = 2040 LLoadGlobalGeneric* result =
2037 new(zone()) LLoadGlobalGeneric(context, global_object); 2041 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2038 return MarkAsCall(DefineFixed(result, v0), instr); 2042 return MarkAsCall(DefineFixed(result, v0), instr);
2039 } 2043 }
2040 2044
2041 2045
2042 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { 2046 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2043 LOperand* value = UseRegister(instr->value()); 2047 LOperand* value = UseRegister(instr->value());
2044 // Use a temp to check the value in the cell in the case where we perform 2048 // Use a temp to check the value in the cell in the case where we perform
2045 // a hole check. 2049 // a hole check.
2046 return instr->RequiresHoleCheck() 2050 return instr->RequiresHoleCheck()
2047 ? AssignEnvironment(new(zone()) LStoreGlobalCell(value, TempRegister())) 2051 ? AssignEnvironment(new(zone()) LStoreGlobalCell(value, TempRegister()))
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 2084
2081 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 2085 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2082 LOperand* obj = UseRegisterAtStart(instr->object()); 2086 LOperand* obj = UseRegisterAtStart(instr->object());
2083 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2087 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2084 } 2088 }
2085 2089
2086 2090
2087 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2091 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2088 LOperand* context = UseFixed(instr->context(), cp); 2092 LOperand* context = UseFixed(instr->context(), cp);
2089 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister()); 2093 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister());
2094 LOperand* vector = NULL;
2095 if (FLAG_vector_ics) {
2096 vector = FixedTemp(LoadIC::VectorRegister());
2097 }
2098
2090 LInstruction* result = 2099 LInstruction* result =
2091 DefineFixed(new(zone()) LLoadNamedGeneric(context, object), v0); 2100 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), v0);
2092 return MarkAsCall(result, instr); 2101 return MarkAsCall(result, instr);
2093 } 2102 }
2094 2103
2095 2104
2096 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2105 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2097 HLoadFunctionPrototype* instr) { 2106 HLoadFunctionPrototype* instr) {
2098 return AssignEnvironment(DefineAsRegister( 2107 return AssignEnvironment(DefineAsRegister(
2099 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2108 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2100 } 2109 }
2101 2110
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 result = AssignEnvironment(result); 2150 result = AssignEnvironment(result);
2142 } 2151 }
2143 return result; 2152 return result;
2144 } 2153 }
2145 2154
2146 2155
2147 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2156 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2148 LOperand* context = UseFixed(instr->context(), cp); 2157 LOperand* context = UseFixed(instr->context(), cp);
2149 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister()); 2158 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister());
2150 LOperand* key = UseFixed(instr->key(), LoadIC::NameRegister()); 2159 LOperand* key = UseFixed(instr->key(), LoadIC::NameRegister());
2160 LOperand* vector = NULL;
2161 if (FLAG_vector_ics) {
2162 vector = FixedTemp(LoadIC::VectorRegister());
2163 }
2151 2164
2152 LInstruction* result = 2165 LInstruction* result =
2153 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key), v0); 2166 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector),
2167 v0);
2154 return MarkAsCall(result, instr); 2168 return MarkAsCall(result, instr);
2155 } 2169 }
2156 2170
2157 2171
2158 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2172 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2159 if (!instr->is_typed_elements()) { 2173 if (!instr->is_typed_elements()) {
2160 ASSERT(instr->elements()->representation().IsTagged()); 2174 ASSERT(instr->elements()->representation().IsTagged());
2161 bool needs_write_barrier = instr->NeedsWriteBarrier(); 2175 bool needs_write_barrier = instr->NeedsWriteBarrier();
2162 LOperand* object = NULL; 2176 LOperand* object = NULL;
2163 LOperand* val = NULL; 2177 LOperand* val = NULL;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2550 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2537 HAllocateBlockContext* instr) { 2551 HAllocateBlockContext* instr) {
2538 LOperand* context = UseFixed(instr->context(), cp); 2552 LOperand* context = UseFixed(instr->context(), cp);
2539 LOperand* function = UseRegisterAtStart(instr->function()); 2553 LOperand* function = UseRegisterAtStart(instr->function());
2540 LAllocateBlockContext* result = 2554 LAllocateBlockContext* result =
2541 new(zone()) LAllocateBlockContext(context, function); 2555 new(zone()) LAllocateBlockContext(context, function);
2542 return MarkAsCall(DefineFixed(result, cp), instr); 2556 return MarkAsCall(DefineFixed(result, cp), instr);
2543 } 2557 }
2544 2558
2545 } } // namespace v8::internal 2559 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698