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

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

Issue 878103002: Revert of 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: Created 5 years, 10 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
285 void LCallJSFunction::PrintDataTo(StringStream* stream) { 271 void LCallJSFunction::PrintDataTo(StringStream* stream) {
286 stream->Add("= "); 272 stream->Add("= ");
287 function()->PrintTo(stream); 273 function()->PrintTo(stream);
288 stream->Add("#%d / ", arity()); 274 stream->Add("#%d / ", arity());
289 } 275 }
290 276
291 277
292 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 278 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
293 for (int i = 0; i < InputCount(); i++) { 279 for (int i = 0; i < InputCount(); i++) {
294 InputAt(i)->PrintTo(stream); 280 InputAt(i)->PrintTo(stream);
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 LOperand* context = UseFixed(instr->context(), rsi); 1253 LOperand* context = UseFixed(instr->context(), rsi);
1268 LOperand* constructor = UseFixed(instr->constructor(), rdi); 1254 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1269 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1255 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1270 return MarkAsCall(DefineFixed(result, rax), instr); 1256 return MarkAsCall(DefineFixed(result, rax), instr);
1271 } 1257 }
1272 1258
1273 1259
1274 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1260 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1275 LOperand* context = UseFixed(instr->context(), rsi); 1261 LOperand* context = UseFixed(instr->context(), rsi);
1276 LOperand* function = UseFixed(instr->function(), rdi); 1262 LOperand* function = UseFixed(instr->function(), rdi);
1277 LOperand* slot = NULL; 1263 LCallFunction* call = new(zone()) LCallFunction(context, function);
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);
1285 return MarkAsCall(DefineFixed(call, rax), instr); 1264 return MarkAsCall(DefineFixed(call, rax), instr);
1286 } 1265 }
1287 1266
1288 1267
1289 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1268 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1290 LOperand* context = UseFixed(instr->context(), rsi); 1269 LOperand* context = UseFixed(instr->context(), rsi);
1291 LCallRuntime* result = new(zone()) LCallRuntime(context); 1270 LCallRuntime* result = new(zone()) LCallRuntime(context);
1292 return MarkAsCall(DefineFixed(result, rax), instr); 1271 return MarkAsCall(DefineFixed(result, rax), instr);
1293 } 1272 }
1294 1273
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 LOperand* function = UseRegisterAtStart(instr->function()); 2690 LOperand* function = UseRegisterAtStart(instr->function());
2712 LAllocateBlockContext* result = 2691 LAllocateBlockContext* result =
2713 new(zone()) LAllocateBlockContext(context, function); 2692 new(zone()) LAllocateBlockContext(context, function);
2714 return MarkAsCall(DefineFixed(result, rsi), instr); 2693 return MarkAsCall(DefineFixed(result, rsi), instr);
2715 } 2694 }
2716 2695
2717 2696
2718 } } // namespace v8::internal 2697 } } // namespace v8::internal
2719 2698
2720 #endif // V8_TARGET_ARCH_X64 2699 #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