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

Side by Side Diff: src/ia32/lithium-ia32.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, 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/ia32/lithium-ia32.h ('k') | src/ic/ic.h » ('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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 268
269 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 269 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
270 stream->Add(" = "); 270 stream->Add(" = ");
271 base_object()->PrintTo(stream); 271 base_object()->PrintTo(stream);
272 stream->Add(" + "); 272 stream->Add(" + ");
273 offset()->PrintTo(stream); 273 offset()->PrintTo(stream);
274 } 274 }
275 275
276 276
277 void LCallFunction::PrintDataTo(StringStream* stream) {
278 context()->PrintTo(stream);
279 stream->Add(" ");
280 function()->PrintTo(stream);
281 if (hydrogen()->HasVectorAndSlot()) {
282 stream->Add(" (type-feedback-vector ");
283 temp_vector()->PrintTo(stream);
284 stream->Add(" ");
285 temp_slot()->PrintTo(stream);
286 stream->Add(")");
287 }
288 }
289
290
277 void LCallJSFunction::PrintDataTo(StringStream* stream) { 291 void LCallJSFunction::PrintDataTo(StringStream* stream) {
278 stream->Add("= "); 292 stream->Add("= ");
279 function()->PrintTo(stream); 293 function()->PrintTo(stream);
280 stream->Add("#%d / ", arity()); 294 stream->Add("#%d / ", arity());
281 } 295 }
282 296
283 297
284 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 298 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
285 for (int i = 0; i < InputCount(); i++) { 299 for (int i = 0; i < InputCount(); i++) {
286 InputAt(i)->PrintTo(stream); 300 InputAt(i)->PrintTo(stream);
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 LOperand* context = UseFixed(instr->context(), esi); 1288 LOperand* context = UseFixed(instr->context(), esi);
1275 LOperand* constructor = UseFixed(instr->constructor(), edi); 1289 LOperand* constructor = UseFixed(instr->constructor(), edi);
1276 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1290 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1277 return MarkAsCall(DefineFixed(result, eax), instr); 1291 return MarkAsCall(DefineFixed(result, eax), instr);
1278 } 1292 }
1279 1293
1280 1294
1281 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1295 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1282 LOperand* context = UseFixed(instr->context(), esi); 1296 LOperand* context = UseFixed(instr->context(), esi);
1283 LOperand* function = UseFixed(instr->function(), edi); 1297 LOperand* function = UseFixed(instr->function(), edi);
1284 LCallFunction* call = new(zone()) LCallFunction(context, function); 1298 LOperand* slot = NULL;
1299 LOperand* vector = NULL;
1300 if (instr->HasVectorAndSlot()) {
1301 slot = FixedTemp(edx);
1302 vector = FixedTemp(ebx);
1303 }
1304
1305 LCallFunction* call =
1306 new (zone()) LCallFunction(context, function, slot, vector);
1285 return MarkAsCall(DefineFixed(call, eax), instr); 1307 return MarkAsCall(DefineFixed(call, eax), instr);
1286 } 1308 }
1287 1309
1288 1310
1289 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1311 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1290 LOperand* context = UseFixed(instr->context(), esi); 1312 LOperand* context = UseFixed(instr->context(), esi);
1291 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); 1313 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr);
1292 } 1314 }
1293 1315
1294 1316
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 LOperand* function = UseRegisterAtStart(instr->function()); 2735 LOperand* function = UseRegisterAtStart(instr->function());
2714 LAllocateBlockContext* result = 2736 LAllocateBlockContext* result =
2715 new(zone()) LAllocateBlockContext(context, function); 2737 new(zone()) LAllocateBlockContext(context, function);
2716 return MarkAsCall(DefineFixed(result, esi), instr); 2738 return MarkAsCall(DefineFixed(result, esi), instr);
2717 } 2739 }
2718 2740
2719 2741
2720 } } // namespace v8::internal 2742 } } // namespace v8::internal
2721 2743
2722 #endif // V8_TARGET_ARCH_IA32 2744 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698