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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.cc

Issue 1492983002: [crankshaft] Deoptimize if HHasInPrototypeChainAndBranch hits a proxy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-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 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/crankshaft/arm64/lithium-arm64.h" 5 #include "src/crankshaft/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 LOperand* context = UseFixed(instr->context(), cp); 1550 LOperand* context = UseFixed(instr->context(), cp);
1551 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); 1551 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
1552 return MarkAsCall(DefineFixed(result, x0), instr); 1552 return MarkAsCall(DefineFixed(result, x0), instr);
1553 } 1553 }
1554 1554
1555 1555
1556 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 1556 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
1557 HHasInPrototypeChainAndBranch* instr) { 1557 HHasInPrototypeChainAndBranch* instr) {
1558 LOperand* object = UseRegister(instr->object()); 1558 LOperand* object = UseRegister(instr->object());
1559 LOperand* prototype = UseRegister(instr->prototype()); 1559 LOperand* prototype = UseRegister(instr->prototype());
1560 LOperand* scratch = TempRegister(); 1560 LOperand* scratch1 = TempRegister();
1561 return new (zone()) LHasInPrototypeChainAndBranch(object, prototype, scratch); 1561 LOperand* scratch2 = TempRegister();
1562 LHasInPrototypeChainAndBranch* result = new (zone())
1563 LHasInPrototypeChainAndBranch(object, prototype, scratch1, scratch2);
1564 return AssignEnvironment(result);
1562 } 1565 }
1563 1566
1564 1567
1565 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1568 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1566 LOperand* context = UseFixed(instr->context(), cp); 1569 LOperand* context = UseFixed(instr->context(), cp);
1567 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. 1570 // The function is required (by MacroAssembler::InvokeFunction) to be in x1.
1568 LOperand* function = UseFixed(instr->function(), x1); 1571 LOperand* function = UseFixed(instr->function(), x1);
1569 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1572 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1570 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1573 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1571 } 1574 }
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 LOperand* context = UseFixed(instr->context(), cp); 2728 LOperand* context = UseFixed(instr->context(), cp);
2726 LOperand* function = UseRegisterAtStart(instr->function()); 2729 LOperand* function = UseRegisterAtStart(instr->function());
2727 LAllocateBlockContext* result = 2730 LAllocateBlockContext* result =
2728 new(zone()) LAllocateBlockContext(context, function); 2731 new(zone()) LAllocateBlockContext(context, function);
2729 return MarkAsCall(DefineFixed(result, cp), instr); 2732 return MarkAsCall(DefineFixed(result, cp), instr);
2730 } 2733 }
2731 2734
2732 2735
2733 } // namespace internal 2736 } // namespace internal
2734 } // namespace v8 2737 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698