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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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
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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 LOperand* context = UseFixed(instr->context(), cp); 979 LOperand* context = UseFixed(instr->context(), cp);
980 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right); 980 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
981 return MarkAsCall(DefineFixed(result, v0), instr); 981 return MarkAsCall(DefineFixed(result, v0), instr);
982 } 982 }
983 983
984 984
985 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 985 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
986 HHasInPrototypeChainAndBranch* instr) { 986 HHasInPrototypeChainAndBranch* instr) {
987 LOperand* object = UseRegister(instr->object()); 987 LOperand* object = UseRegister(instr->object());
988 LOperand* prototype = UseRegister(instr->prototype()); 988 LOperand* prototype = UseRegister(instr->prototype());
989 return new (zone()) LHasInPrototypeChainAndBranch(object, prototype); 989 LHasInPrototypeChainAndBranch* result =
990 new (zone()) LHasInPrototypeChainAndBranch(object, prototype);
991 return AssignEnvironment(result);
990 } 992 }
991 993
992 994
993 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 995 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
994 LOperand* receiver = UseRegisterAtStart(instr->receiver()); 996 LOperand* receiver = UseRegisterAtStart(instr->receiver());
995 LOperand* function = UseRegisterAtStart(instr->function()); 997 LOperand* function = UseRegisterAtStart(instr->function());
996 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 998 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
997 return AssignEnvironment(DefineAsRegister(result)); 999 return AssignEnvironment(DefineAsRegister(result));
998 } 1000 }
999 1001
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 LAllocateBlockContext* result = 2587 LAllocateBlockContext* result =
2586 new(zone()) LAllocateBlockContext(context, function); 2588 new(zone()) LAllocateBlockContext(context, function);
2587 return MarkAsCall(DefineFixed(result, cp), instr); 2589 return MarkAsCall(DefineFixed(result, cp), instr);
2588 } 2590 }
2589 2591
2590 2592
2591 } // namespace internal 2593 } // namespace internal
2592 } // namespace v8 2594 } // namespace v8
2593 2595
2594 #endif // V8_TARGET_ARCH_MIPS64 2596 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698