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

Side by Side Diff: src/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/code-factory.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 // variables. 1501 // variables.
1502 switch (var->location()) { 1502 switch (var->location()) {
1503 case Variable::UNALLOCATED: { 1503 case Variable::UNALLOCATED: {
1504 Comment cmnt(masm_, "Global variable"); 1504 Comment cmnt(masm_, "Global variable");
1505 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); 1505 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand());
1506 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1506 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1507 if (FLAG_vector_ics) { 1507 if (FLAG_vector_ics) {
1508 __ Mov(VectorLoadICDescriptor::SlotRegister(), 1508 __ Mov(VectorLoadICDescriptor::SlotRegister(),
1509 SmiFromSlot(proxy->VariableFeedbackSlot())); 1509 SmiFromSlot(proxy->VariableFeedbackSlot()));
1510 } 1510 }
1511 CallLoadIC(CONTEXTUAL); 1511 CallGlobalLoadIC(var->name());
1512 context()->Plug(x0); 1512 context()->Plug(x0);
1513 break; 1513 break;
1514 } 1514 }
1515 1515
1516 case Variable::PARAMETER: 1516 case Variable::PARAMETER:
1517 case Variable::LOCAL: 1517 case Variable::LOCAL:
1518 case Variable::CONTEXT: { 1518 case Variable::CONTEXT: {
1519 Comment cmnt(masm_, var->IsContextSlot() 1519 Comment cmnt(masm_, var->IsContextSlot()
1520 ? "Context variable" 1520 ? "Context variable"
1521 : "Stack variable"); 1521 : "Stack variable");
(...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after
5480 return previous_; 5480 return previous_;
5481 } 5481 }
5482 5482
5483 5483
5484 #undef __ 5484 #undef __
5485 5485
5486 5486
5487 } } // namespace v8::internal 5487 } } // namespace v8::internal
5488 5488
5489 #endif // V8_TARGET_ARCH_ARM64 5489 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698