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

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

Issue 2398683004: [crankshaft] Remove HLoadNamedGeneric and use HCallWithDescriptor to call LoadIC. (Closed)
Patch Set: Created 4 years, 2 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/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.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/crankshaft/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 instr->access().representation().IsHeapObject() || 2025 instr->access().representation().IsHeapObject() ||
2026 instr->access().representation().IsExternal())) { 2026 instr->access().representation().IsExternal())) {
2027 LOperand* obj = UseRegisterOrConstantAtStart(instr->object()); 2027 LOperand* obj = UseRegisterOrConstantAtStart(instr->object());
2028 return DefineFixed(new(zone()) LLoadNamedField(obj), rax); 2028 return DefineFixed(new(zone()) LLoadNamedField(obj), rax);
2029 } 2029 }
2030 LOperand* obj = UseRegisterAtStart(instr->object()); 2030 LOperand* obj = UseRegisterAtStart(instr->object());
2031 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2031 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2032 } 2032 }
2033 2033
2034 2034
2035 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2036 LOperand* context = UseFixed(instr->context(), rsi);
2037 LOperand* object =
2038 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2039 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2040 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(
2041 context, object, vector);
2042 return MarkAsCall(DefineFixed(result, rax), instr);
2043 }
2044
2045
2046 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2035 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2047 HLoadFunctionPrototype* instr) { 2036 HLoadFunctionPrototype* instr) {
2048 return AssignEnvironment(DefineAsRegister( 2037 return AssignEnvironment(DefineAsRegister(
2049 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2038 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2050 } 2039 }
2051 2040
2052 2041
2053 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { 2042 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
2054 return DefineAsRegister(new(zone()) LLoadRoot); 2043 return DefineAsRegister(new(zone()) LLoadRoot);
2055 } 2044 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 LOperand* index = UseTempRegister(instr->index()); 2505 LOperand* index = UseTempRegister(instr->index());
2517 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2506 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2518 LInstruction* result = DefineSameAsFirst(load); 2507 LInstruction* result = DefineSameAsFirst(load);
2519 return AssignPointerMap(result); 2508 return AssignPointerMap(result);
2520 } 2509 }
2521 2510
2522 } // namespace internal 2511 } // namespace internal
2523 } // namespace v8 2512 } // namespace v8
2524 2513
2525 #endif // V8_TARGET_ARCH_X64 2514 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698