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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm64/full-codegen-arm64.cc » ('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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 // variables. 1522 // variables.
1523 switch (var->location()) { 1523 switch (var->location()) {
1524 case Variable::UNALLOCATED: { 1524 case Variable::UNALLOCATED: {
1525 Comment cmnt(masm_, "[ Global variable"); 1525 Comment cmnt(masm_, "[ Global variable");
1526 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1526 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1527 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1527 __ mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1528 if (FLAG_vector_ics) { 1528 if (FLAG_vector_ics) {
1529 __ mov(VectorLoadICDescriptor::SlotRegister(), 1529 __ mov(VectorLoadICDescriptor::SlotRegister(),
1530 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1530 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1531 } 1531 }
1532 CallLoadIC(CONTEXTUAL); 1532 CallGlobalLoadIC(var->name());
1533 context()->Plug(r0); 1533 context()->Plug(r0);
1534 break; 1534 break;
1535 } 1535 }
1536 1536
1537 case Variable::PARAMETER: 1537 case Variable::PARAMETER:
1538 case Variable::LOCAL: 1538 case Variable::LOCAL:
1539 case Variable::CONTEXT: { 1539 case Variable::CONTEXT: {
1540 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1540 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1541 : "[ Stack variable"); 1541 : "[ Stack variable");
1542 if (var->binding_needs_init()) { 1542 if (var->binding_needs_init()) {
(...skipping 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after
5502 5502
5503 DCHECK(interrupt_address == 5503 DCHECK(interrupt_address ==
5504 isolate->builtins()->OsrAfterStackCheck()->entry()); 5504 isolate->builtins()->OsrAfterStackCheck()->entry());
5505 return OSR_AFTER_STACK_CHECK; 5505 return OSR_AFTER_STACK_CHECK;
5506 } 5506 }
5507 5507
5508 5508
5509 } } // namespace v8::internal 5509 } } // namespace v8::internal
5510 5510
5511 #endif // V8_TARGET_ARCH_ARM 5511 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698