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

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

Issue 868453005: Continue learning for calls in optimized code when we have no type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@navier
Patch Set: Compile error fix. Created 5 years, 11 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/x64/lithium-x64.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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 262
263 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 263 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
264 stream->Add(" = "); 264 stream->Add(" = ");
265 base_object()->PrintTo(stream); 265 base_object()->PrintTo(stream);
266 stream->Add(" + "); 266 stream->Add(" + ");
267 offset()->PrintTo(stream); 267 offset()->PrintTo(stream);
268 } 268 }
269 269
270 270
271 void LCallFunction::PrintDataTo(StringStream* stream) {
272 context()->PrintTo(stream);
273 stream->Add(" ");
274 function()->PrintTo(stream);
275 if (hydrogen()->HasVectorAndSlot()) {
276 stream->Add(" (type-feedback-vector ");
277 temp_vector()->PrintTo(stream);
278 stream->Add(" ");
279 temp_slot()->PrintTo(stream);
280 stream->Add(")");
281 }
282 }
283
284
271 void LCallJSFunction::PrintDataTo(StringStream* stream) { 285 void LCallJSFunction::PrintDataTo(StringStream* stream) {
272 stream->Add("= "); 286 stream->Add("= ");
273 function()->PrintTo(stream); 287 function()->PrintTo(stream);
274 stream->Add("#%d / ", arity()); 288 stream->Add("#%d / ", arity());
275 } 289 }
276 290
277 291
278 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 292 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
279 for (int i = 0; i < InputCount(); i++) { 293 for (int i = 0; i < InputCount(); i++) {
280 InputAt(i)->PrintTo(stream); 294 InputAt(i)->PrintTo(stream);
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 LOperand* context = UseFixed(instr->context(), rsi); 1267 LOperand* context = UseFixed(instr->context(), rsi);
1254 LOperand* constructor = UseFixed(instr->constructor(), rdi); 1268 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1255 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1269 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1256 return MarkAsCall(DefineFixed(result, rax), instr); 1270 return MarkAsCall(DefineFixed(result, rax), instr);
1257 } 1271 }
1258 1272
1259 1273
1260 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1274 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1261 LOperand* context = UseFixed(instr->context(), rsi); 1275 LOperand* context = UseFixed(instr->context(), rsi);
1262 LOperand* function = UseFixed(instr->function(), rdi); 1276 LOperand* function = UseFixed(instr->function(), rdi);
1263 LCallFunction* call = new(zone()) LCallFunction(context, function); 1277 LOperand* slot = NULL;
1278 LOperand* vector = NULL;
1279 if (instr->HasVectorAndSlot()) {
1280 slot = FixedTemp(rdx);
1281 vector = FixedTemp(rbx);
1282 }
1283 LCallFunction* call =
1284 new (zone()) LCallFunction(context, function, slot, vector);
1264 return MarkAsCall(DefineFixed(call, rax), instr); 1285 return MarkAsCall(DefineFixed(call, rax), instr);
1265 } 1286 }
1266 1287
1267 1288
1268 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1289 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1269 LOperand* context = UseFixed(instr->context(), rsi); 1290 LOperand* context = UseFixed(instr->context(), rsi);
1270 LCallRuntime* result = new(zone()) LCallRuntime(context); 1291 LCallRuntime* result = new(zone()) LCallRuntime(context);
1271 return MarkAsCall(DefineFixed(result, rax), instr); 1292 return MarkAsCall(DefineFixed(result, rax), instr);
1272 } 1293 }
1273 1294
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 LOperand* function = UseRegisterAtStart(instr->function()); 2711 LOperand* function = UseRegisterAtStart(instr->function());
2691 LAllocateBlockContext* result = 2712 LAllocateBlockContext* result =
2692 new(zone()) LAllocateBlockContext(context, function); 2713 new(zone()) LAllocateBlockContext(context, function);
2693 return MarkAsCall(DefineFixed(result, rsi), instr); 2714 return MarkAsCall(DefineFixed(result, rsi), instr);
2694 } 2715 }
2695 2716
2696 2717
2697 } } // namespace v8::internal 2718 } } // namespace v8::internal
2698 2719
2699 #endif // V8_TARGET_ARCH_X64 2720 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698