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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.cc

Issue 2041103007: [es6] Fix prototype chain walk for instanceof. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 __ And(object_instance_type, object_instance_type, 2529 __ And(object_instance_type, object_instance_type,
2530 Operand(1 << Map::kIsAccessCheckNeeded)); 2530 Operand(1 << Map::kIsAccessCheckNeeded));
2531 DeoptimizeIf(ne, instr, Deoptimizer::kAccessCheck, object_instance_type, 2531 DeoptimizeIf(ne, instr, Deoptimizer::kAccessCheck, object_instance_type,
2532 Operand(zero_reg)); 2532 Operand(zero_reg));
2533 __ lbu(object_instance_type, 2533 __ lbu(object_instance_type,
2534 FieldMemOperand(object_map, Map::kInstanceTypeOffset)); 2534 FieldMemOperand(object_map, Map::kInstanceTypeOffset));
2535 DeoptimizeIf(eq, instr, Deoptimizer::kProxy, object_instance_type, 2535 DeoptimizeIf(eq, instr, Deoptimizer::kProxy, object_instance_type,
2536 Operand(JS_PROXY_TYPE)); 2536 Operand(JS_PROXY_TYPE));
2537 2537
2538 __ ld(object_prototype, FieldMemOperand(object_map, Map::kPrototypeOffset)); 2538 __ ld(object_prototype, FieldMemOperand(object_map, Map::kPrototypeOffset));
2539 EmitTrueBranch(instr, eq, object_prototype, Operand(prototype));
2540 __ LoadRoot(at, Heap::kNullValueRootIndex); 2539 __ LoadRoot(at, Heap::kNullValueRootIndex);
2541 EmitFalseBranch(instr, eq, object_prototype, Operand(at)); 2540 EmitFalseBranch(instr, eq, object_prototype, Operand(at));
2541 EmitTrueBranch(instr, eq, object_prototype, Operand(prototype));
2542 __ Branch(&loop, USE_DELAY_SLOT); 2542 __ Branch(&loop, USE_DELAY_SLOT);
2543 __ ld(object_map, FieldMemOperand(object_prototype, 2543 __ ld(object_map, FieldMemOperand(object_prototype,
2544 HeapObject::kMapOffset)); // In delay slot. 2544 HeapObject::kMapOffset)); // In delay slot.
2545 } 2545 }
2546 2546
2547 2547
2548 void LCodeGen::DoCmpT(LCmpT* instr) { 2548 void LCodeGen::DoCmpT(LCmpT* instr) {
2549 DCHECK(ToRegister(instr->context()).is(cp)); 2549 DCHECK(ToRegister(instr->context()).is(cp));
2550 Token::Value op = instr->op(); 2550 Token::Value op = instr->op();
2551 2551
(...skipping 3209 matching lines...) Expand 10 before | Expand all | Expand 10 after
5761 __ ld(result, FieldMemOperand(scratch, 5761 __ ld(result, FieldMemOperand(scratch,
5762 FixedArray::kHeaderSize - kPointerSize)); 5762 FixedArray::kHeaderSize - kPointerSize));
5763 __ bind(deferred->exit()); 5763 __ bind(deferred->exit());
5764 __ bind(&done); 5764 __ bind(&done);
5765 } 5765 }
5766 5766
5767 #undef __ 5767 #undef __
5768 5768
5769 } // namespace internal 5769 } // namespace internal
5770 } // namespace v8 5770 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698