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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-codegen-x64.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/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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 new(zone()) LArgumentsLength(UseRegister(length->value()))); 932 new(zone()) LArgumentsLength(UseRegister(length->value())));
933 } 933 }
934 934
935 935
936 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { 936 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
937 info()->MarkAsRequiresFrame(); 937 info()->MarkAsRequiresFrame();
938 return DefineAsRegister(new(zone()) LArgumentsElements); 938 return DefineAsRegister(new(zone()) LArgumentsElements);
939 } 939 }
940 940
941 941
942 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) {
943 LOperand* left =
944 UseFixed(instr->left(), InstanceOfDescriptor::LeftRegister());
945 LOperand* right =
946 UseFixed(instr->right(), InstanceOfDescriptor::RightRegister());
947 LOperand* context = UseFixed(instr->context(), cp);
948 LInstanceOf* result = new (zone()) LInstanceOf(context, left, right);
949 return MarkAsCall(DefineFixed(result, v0), instr);
950 }
951
952
953 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( 942 LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch(
954 HHasInPrototypeChainAndBranch* instr) { 943 HHasInPrototypeChainAndBranch* instr) {
955 LOperand* object = UseRegister(instr->object()); 944 LOperand* object = UseRegister(instr->object());
956 LOperand* prototype = UseRegister(instr->prototype()); 945 LOperand* prototype = UseRegister(instr->prototype());
957 LHasInPrototypeChainAndBranch* result = 946 LHasInPrototypeChainAndBranch* result =
958 new (zone()) LHasInPrototypeChainAndBranch(object, prototype); 947 new (zone()) LHasInPrototypeChainAndBranch(object, prototype);
959 return AssignEnvironment(result); 948 return AssignEnvironment(result);
960 } 949 }
961 950
962 951
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 LOperand* index = UseTempRegister(instr->index()); 2471 LOperand* index = UseTempRegister(instr->index());
2483 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2472 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2484 LInstruction* result = DefineSameAsFirst(load); 2473 LInstruction* result = DefineSameAsFirst(load);
2485 return AssignPointerMap(result); 2474 return AssignPointerMap(result);
2486 } 2475 }
2487 2476
2488 } // namespace internal 2477 } // namespace internal
2489 } // namespace v8 2478 } // namespace v8
2490 2479
2491 #endif // V8_TARGET_ARCH_MIPS64 2480 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698