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

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

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/crankshaft/x64/lithium-x64.h ('k') | src/flag-definitions.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 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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); 950 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value())));
951 } 951 }
952 952
953 953
954 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { 954 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
955 info()->MarkAsRequiresFrame(); 955 info()->MarkAsRequiresFrame();
956 return DefineAsRegister(new(zone()) LArgumentsElements); 956 return DefineAsRegister(new(zone()) LArgumentsElements);
957 } 957 }
958 958
959 959
960 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) {
961 LOperand* left =
962 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister());
963 LOperand* right =
964 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister());
965 LOperand* context = UseFixed(instr->context(), rsi);
966 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
967 return MarkAsCall(DefineFixed(result, rax), instr);
968 }
969
970
971 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 960 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
972 HHasInPrototypeChainAndBranch* instr) { 961 HHasInPrototypeChainAndBranch* instr) {
973 LOperand* object = UseRegister(instr->object()); 962 LOperand* object = UseRegister(instr->object());
974 LOperand* prototype = UseRegister(instr->prototype()); 963 LOperand* prototype = UseRegister(instr->prototype());
975 LHasInPrototypeChainAndBranch* result = 964 LHasInPrototypeChainAndBranch* result =
976 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); 965 new (zone()) LHasInPrototypeChainAndBranch(object, prototype);
977 return AssignEnvironment(result); 966 return AssignEnvironment(result);
978 } 967 }
979 968
980 969
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 LOperand* index = UseTempRegister(instr->index()); 2586 LOperand* index = UseTempRegister(instr->index());
2598 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2587 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2599 LInstruction* result = DefineSameAsFirst(load); 2588 LInstruction* result = DefineSameAsFirst(load);
2600 return AssignPointerMap(result); 2589 return AssignPointerMap(result);
2601 } 2590 }
2602 2591
2603 } // namespace internal 2592 } // namespace internal
2604 } // namespace v8 2593 } // namespace v8
2605 2594
2606 #endif // V8_TARGET_ARCH_X64 2595 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698