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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 969733003: Prefill with correct contextual load ICs in fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't prefill if we'll serialize the code Created 5 years, 9 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/full-codegen.cc ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 // variables. 1446 // variables.
1447 switch (var->location()) { 1447 switch (var->location()) {
1448 case Variable::UNALLOCATED: { 1448 case Variable::UNALLOCATED: {
1449 Comment cmnt(masm_, "[ Global variable"); 1449 Comment cmnt(masm_, "[ Global variable");
1450 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1450 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1451 __ mov(LoadDescriptor::NameRegister(), var->name()); 1451 __ mov(LoadDescriptor::NameRegister(), var->name());
1452 if (FLAG_vector_ics) { 1452 if (FLAG_vector_ics) {
1453 __ mov(VectorLoadICDescriptor::SlotRegister(), 1453 __ mov(VectorLoadICDescriptor::SlotRegister(),
1454 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1454 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot())));
1455 } 1455 }
1456 CallLoadIC(CONTEXTUAL); 1456 CallGlobalLoadIC(var->name());
1457 context()->Plug(eax); 1457 context()->Plug(eax);
1458 break; 1458 break;
1459 } 1459 }
1460 1460
1461 case Variable::PARAMETER: 1461 case Variable::PARAMETER:
1462 case Variable::LOCAL: 1462 case Variable::LOCAL:
1463 case Variable::CONTEXT: { 1463 case Variable::CONTEXT: {
1464 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1464 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1465 : "[ Stack variable"); 1465 : "[ Stack variable");
1466 if (var->binding_needs_init()) { 1466 if (var->binding_needs_init()) {
(...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after
5364 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5364 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5365 Assembler::target_address_at(call_target_address, 5365 Assembler::target_address_at(call_target_address,
5366 unoptimized_code)); 5366 unoptimized_code));
5367 return OSR_AFTER_STACK_CHECK; 5367 return OSR_AFTER_STACK_CHECK;
5368 } 5368 }
5369 5369
5370 5370
5371 } } // namespace v8::internal 5371 } } // namespace v8::internal
5372 5372
5373 #endif // V8_TARGET_ARCH_IA32 5373 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698