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

Side by Side Diff: src/x64/full-codegen-x64.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/ic/ic.cc ('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_X64 7 #if V8_TARGET_ARCH_X64
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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 // variables. 1482 // variables.
1483 switch (var->location()) { 1483 switch (var->location()) {
1484 case Variable::UNALLOCATED: { 1484 case Variable::UNALLOCATED: {
1485 Comment cmnt(masm_, "[ Global variable"); 1485 Comment cmnt(masm_, "[ Global variable");
1486 __ Move(LoadDescriptor::NameRegister(), var->name()); 1486 __ Move(LoadDescriptor::NameRegister(), var->name());
1487 __ movp(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1487 __ movp(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1488 if (FLAG_vector_ics) { 1488 if (FLAG_vector_ics) {
1489 __ Move(VectorLoadICDescriptor::SlotRegister(), 1489 __ Move(VectorLoadICDescriptor::SlotRegister(),
1490 SmiFromSlot(proxy->VariableFeedbackSlot())); 1490 SmiFromSlot(proxy->VariableFeedbackSlot()));
1491 } 1491 }
1492 CallLoadIC(CONTEXTUAL); 1492 CallGlobalLoadIC(var->name());
1493 context()->Plug(rax); 1493 context()->Plug(rax);
1494 break; 1494 break;
1495 } 1495 }
1496 1496
1497 case Variable::PARAMETER: 1497 case Variable::PARAMETER:
1498 case Variable::LOCAL: 1498 case Variable::LOCAL:
1499 case Variable::CONTEXT: { 1499 case Variable::CONTEXT: {
1500 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context slot" 1500 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context slot"
1501 : "[ Stack slot"); 1501 : "[ Stack slot");
1502 if (var->binding_needs_init()) { 1502 if (var->binding_needs_init()) {
(...skipping 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after
5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5387 Assembler::target_address_at(call_target_address, 5387 Assembler::target_address_at(call_target_address,
5388 unoptimized_code)); 5388 unoptimized_code));
5389 return OSR_AFTER_STACK_CHECK; 5389 return OSR_AFTER_STACK_CHECK;
5390 } 5390 }
5391 5391
5392 5392
5393 } } // namespace v8::internal 5393 } } // namespace v8::internal
5394 5394
5395 #endif // V8_TARGET_ARCH_X64 5395 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698