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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.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/ia32/lithium-ia32.h" 5 #include "src/crankshaft/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); 959 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value())));
960 } 960 }
961 961
962 962
963 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { 963 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
964 info()->MarkAsRequiresFrame(); 964 info()->MarkAsRequiresFrame();
965 return DefineAsRegister(new(zone()) LArgumentsElements); 965 return DefineAsRegister(new(zone()) LArgumentsElements);
966 } 966 }
967 967
968 968
969 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) {
970 LOperand* left =
971 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister());
972 LOperand* right =
973 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister());
974 LOperand* context = UseFixed(instr->context(), esi);
975 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
976 return MarkAsCall(DefineFixed(result, eax), instr);
977 }
978
979
980 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 969 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
981 HHasInPrototypeChainAndBranch* instr) { 970 HHasInPrototypeChainAndBranch* instr) {
982 LOperand* object = UseRegister(instr->object()); 971 LOperand* object = UseRegister(instr->object());
983 LOperand* prototype = UseRegister(instr->prototype()); 972 LOperand* prototype = UseRegister(instr->prototype());
984 LOperand* temp = TempRegister(); 973 LOperand* temp = TempRegister();
985 LHasInPrototypeChainAndBranch* result = 974 LHasInPrototypeChainAndBranch* result =
986 new (zone()) LHasInPrototypeChainAndBranch(object, prototype, temp); 975 new (zone()) LHasInPrototypeChainAndBranch(object, prototype, temp);
987 return AssignEnvironment(result); 976 return AssignEnvironment(result);
988 } 977 }
989 978
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 LOperand* index = UseTempRegister(instr->index()); 2583 LOperand* index = UseTempRegister(instr->index());
2595 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2584 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2596 LInstruction* result = DefineSameAsFirst(load); 2585 LInstruction* result = DefineSameAsFirst(load);
2597 return AssignPointerMap(result); 2586 return AssignPointerMap(result);
2598 } 2587 }
2599 2588
2600 } // namespace internal 2589 } // namespace internal
2601 } // namespace v8 2590 } // namespace v8
2602 2591
2603 #endif // V8_TARGET_ARCH_IA32 2592 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698