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

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

Issue 546733003: MIPS: To aid vector-based load ic work, we need to be able to handle the megamorphic load case in h… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/mips64/lithium-mips64.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); 1097 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1));
1098 ops.Add(op, zone()); 1098 ops.Add(op, zone());
1099 } 1099 }
1100 1100
1101 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( 1101 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(
1102 descriptor, ops, zone()); 1102 descriptor, ops, zone());
1103 return MarkAsCall(DefineFixed(result, v0), instr); 1103 return MarkAsCall(DefineFixed(result, v0), instr);
1104 } 1104 }
1105 1105
1106 1106
1107 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1108 HTailCallThroughMegamorphicCache* instr) {
1109 LOperand* context = UseFixed(instr->context(), cp);
1110 LOperand* receiver_register =
1111 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1112 LOperand* name_register =
1113 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1114 // Not marked as call. It can't deoptimize, and it never returns.
1115 return new (zone()) LTailCallThroughMegamorphicCache(
1116 context, receiver_register, name_register);
1117 }
1118
1119
1107 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1120 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1108 LOperand* context = UseFixed(instr->context(), cp); 1121 LOperand* context = UseFixed(instr->context(), cp);
1109 LOperand* function = UseFixed(instr->function(), a1); 1122 LOperand* function = UseFixed(instr->function(), a1);
1110 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1123 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1111 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1124 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1112 } 1125 }
1113 1126
1114 1127
1115 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1128 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1116 switch (instr->op()) { 1129 switch (instr->op()) {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 LOperand* function = UseRegisterAtStart(instr->function()); 2590 LOperand* function = UseRegisterAtStart(instr->function());
2578 LAllocateBlockContext* result = 2591 LAllocateBlockContext* result =
2579 new(zone()) LAllocateBlockContext(context, function); 2592 new(zone()) LAllocateBlockContext(context, function);
2580 return MarkAsCall(DefineFixed(result, cp), instr); 2593 return MarkAsCall(DefineFixed(result, cp), instr);
2581 } 2594 }
2582 2595
2583 2596
2584 } } // namespace v8::internal 2597 } } // namespace v8::internal
2585 2598
2586 #endif // V8_TARGET_ARCH_MIPS64 2599 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/lithium-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698