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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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 | « no previous file | src/crankshaft/arm/lithium-codegen-arm.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/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 LOperand* context = UseFixed(instr->context(), cp); 974 LOperand* context = UseFixed(instr->context(), cp);
975 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); 975 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
976 return MarkAsCall(DefineFixed(result, r0), instr); 976 return MarkAsCall(DefineFixed(result, r0), instr);
977 } 977 }
978 978
979 979
980 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 980 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
981 HHasInPrototypeChainAndBranch* instr) { 981 HHasInPrototypeChainAndBranch* instr) {
982 LOperand* object = UseRegister(instr->object()); 982 LOperand* object = UseRegister(instr->object());
983 LOperand* prototype = UseRegister(instr->prototype()); 983 LOperand* prototype = UseRegister(instr->prototype());
984 return new (zone()) LHasInPrototypeChainAndBranch(object, prototype); 984 LHasInPrototypeChainAndBranch* result =
985 new (zone()) LHasInPrototypeChainAndBranch(object, prototype);
986 return AssignEnvironment(result);
985 } 987 }
986 988
987 989
988 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 990 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
989 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 991 LOperand* receiver = UseRegisterAtStart(instr->receiver());
990 LOperand* function = UseRegisterAtStart(instr->function()); 992 LOperand* function = UseRegisterAtStart(instr->function());
991 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 993 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
992 return AssignEnvironment(DefineAsRegister(result)); 994 return AssignEnvironment(DefineAsRegister(result));
993 } 995 }
994 996
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 HAllocateBlockContext* instr) { 2632 HAllocateBlockContext* instr) {
2631 LOperand* context = UseFixed(instr->context(), cp); 2633 LOperand* context = UseFixed(instr->context(), cp);
2632 LOperand* function = UseRegisterAtStart(instr->function()); 2634 LOperand* function = UseRegisterAtStart(instr->function());
2633 LAllocateBlockContext* result = 2635 LAllocateBlockContext* result =
2634 new(zone()) LAllocateBlockContext(context, function); 2636 new(zone()) LAllocateBlockContext(context, function);
2635 return MarkAsCall(DefineFixed(result, cp), instr); 2637 return MarkAsCall(DefineFixed(result, cp), instr);
2636 } 2638 }
2637 2639
2638 } // namespace internal 2640 } // namespace internal
2639 } // namespace v8 2641 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698