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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 2684033012: [es2015] Remove the @@hasInstance protector cell. (Closed)
Patch Set: REBASE Created 3 years, 10 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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 __ LoadRoot(a4, Heap::kTrueValueRootIndex); 2679 __ LoadRoot(a4, Heap::kTrueValueRootIndex);
2680 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); 2680 Split(eq, v0, Operand(a4), if_true, if_false, fall_through);
2681 break; 2681 break;
2682 2682
2683 case Token::INSTANCEOF: { 2683 case Token::INSTANCEOF: {
2684 VisitForAccumulatorValue(expr->right()); 2684 VisitForAccumulatorValue(expr->right());
2685 SetExpressionPosition(expr); 2685 SetExpressionPosition(expr);
2686 __ mov(a0, result_register()); 2686 __ mov(a0, result_register());
2687 PopOperand(a1); 2687 PopOperand(a1);
2688 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); 2688 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET);
2689 RestoreContext();
2689 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2690 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2690 __ LoadRoot(a4, Heap::kTrueValueRootIndex); 2691 __ LoadRoot(a4, Heap::kTrueValueRootIndex);
2691 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); 2692 Split(eq, v0, Operand(a4), if_true, if_false, fall_through);
2692 break; 2693 break;
2693 } 2694 }
2694 2695
2695 default: { 2696 default: {
2696 VisitForAccumulatorValue(expr->right()); 2697 VisitForAccumulatorValue(expr->right());
2697 SetExpressionPosition(expr); 2698 SetExpressionPosition(expr);
2698 Condition cc = CompareIC::ComputeCondition(op); 2699 Condition cc = CompareIC::ComputeCondition(op);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2877 reinterpret_cast<uint64_t>( 2878 reinterpret_cast<uint64_t>(
2878 isolate->builtins()->OnStackReplacement()->entry())); 2879 isolate->builtins()->OnStackReplacement()->entry()));
2879 return ON_STACK_REPLACEMENT; 2880 return ON_STACK_REPLACEMENT;
2880 } 2881 }
2881 2882
2882 2883
2883 } // namespace internal 2884 } // namespace internal
2884 } // namespace v8 2885 } // namespace v8
2885 2886
2886 #endif // V8_TARGET_ARCH_MIPS64 2887 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698