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

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

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-allocator-inl.h" 10 #include "src/lithium-allocator-inl.h"
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { 2033 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
2034 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell; 2034 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell;
2035 return instr->RequiresHoleCheck() 2035 return instr->RequiresHoleCheck()
2036 ? AssignEnvironment(DefineAsRegister(result)) 2036 ? AssignEnvironment(DefineAsRegister(result))
2037 : DefineAsRegister(result); 2037 : DefineAsRegister(result);
2038 } 2038 }
2039 2039
2040 2040
2041 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2041 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2042 LOperand* context = UseFixed(instr->context(), rsi); 2042 LOperand* context = UseFixed(instr->context(), rsi);
2043 LOperand* global_object = UseFixed(instr->global_object(), 2043 LOperand* global_object = UseFixed(instr->global_object(), rax);
2044 LoadIC::ReceiverRegister());
2045 LLoadGlobalGeneric* result = 2044 LLoadGlobalGeneric* result =
2046 new(zone()) LLoadGlobalGeneric(context, global_object); 2045 new(zone()) LLoadGlobalGeneric(context, global_object);
2047 return MarkAsCall(DefineFixed(result, rax), instr); 2046 return MarkAsCall(DefineFixed(result, rax), instr);
2048 } 2047 }
2049 2048
2050 2049
2051 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { 2050 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2052 LOperand* value = UseRegister(instr->value()); 2051 LOperand* value = UseRegister(instr->value());
2053 // Use a temp to avoid reloading the cell value address in the case where 2052 // Use a temp to avoid reloading the cell value address in the case where
2054 // we perform a hole check. 2053 // we perform a hole check.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 LOperand* obj = UseRegisterOrConstantAtStart(instr->object()); 2100 LOperand* obj = UseRegisterOrConstantAtStart(instr->object());
2102 return DefineFixed(new(zone()) LLoadNamedField(obj), rax); 2101 return DefineFixed(new(zone()) LLoadNamedField(obj), rax);
2103 } 2102 }
2104 LOperand* obj = UseRegisterAtStart(instr->object()); 2103 LOperand* obj = UseRegisterAtStart(instr->object());
2105 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2104 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2106 } 2105 }
2107 2106
2108 2107
2109 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2108 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2110 LOperand* context = UseFixed(instr->context(), rsi); 2109 LOperand* context = UseFixed(instr->context(), rsi);
2111 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister()); 2110 LOperand* object = UseFixed(instr->object(), rax);
2112 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(context, object); 2111 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(context, object);
2113 return MarkAsCall(DefineFixed(result, rax), instr); 2112 return MarkAsCall(DefineFixed(result, rax), instr);
2114 } 2113 }
2115 2114
2116 2115
2117 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2116 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2118 HLoadFunctionPrototype* instr) { 2117 HLoadFunctionPrototype* instr) {
2119 return AssignEnvironment(DefineAsRegister( 2118 return AssignEnvironment(DefineAsRegister(
2120 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2119 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2121 } 2120 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 // LCodeGen::DoLoadKeyedFixedArray 2186 // LCodeGen::DoLoadKeyedFixedArray
2188 instr->RequiresHoleCheck()) { 2187 instr->RequiresHoleCheck()) {
2189 result = AssignEnvironment(result); 2188 result = AssignEnvironment(result);
2190 } 2189 }
2191 return result; 2190 return result;
2192 } 2191 }
2193 2192
2194 2193
2195 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2194 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2196 LOperand* context = UseFixed(instr->context(), rsi); 2195 LOperand* context = UseFixed(instr->context(), rsi);
2197 LOperand* object = UseFixed(instr->object(), KeyedLoadIC::ReceiverRegister()); 2196 LOperand* object = UseFixed(instr->object(), rdx);
2198 LOperand* key = UseFixed(instr->key(), KeyedLoadIC::NameRegister()); 2197 LOperand* key = UseFixed(instr->key(), rax);
2199 2198
2200 LLoadKeyedGeneric* result = 2199 LLoadKeyedGeneric* result =
2201 new(zone()) LLoadKeyedGeneric(context, object, key); 2200 new(zone()) LLoadKeyedGeneric(context, object, key);
2202 return MarkAsCall(DefineFixed(result, rax), instr); 2201 return MarkAsCall(DefineFixed(result, rax), instr);
2203 } 2202 }
2204 2203
2205 2204
2206 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2205 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2207 ElementsKind elements_kind = instr->elements_kind(); 2206 ElementsKind elements_kind = instr->elements_kind();
2208 2207
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 LOperand* function = UseRegisterAtStart(instr->function()); 2640 LOperand* function = UseRegisterAtStart(instr->function());
2642 LAllocateBlockContext* result = 2641 LAllocateBlockContext* result =
2643 new(zone()) LAllocateBlockContext(context, function); 2642 new(zone()) LAllocateBlockContext(context, function);
2644 return MarkAsCall(DefineFixed(result, rsi), instr); 2643 return MarkAsCall(DefineFixed(result, rsi), instr);
2645 } 2644 }
2646 2645
2647 2646
2648 } } // namespace v8::internal 2647 } } // namespace v8::internal
2649 2648
2650 #endif // V8_TARGET_ARCH_X64 2649 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698