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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2664 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2665 __ CompareRoot(r3, Heap::kTrueValueRootIndex); 2665 __ CompareRoot(r3, Heap::kTrueValueRootIndex);
2666 Split(eq, if_true, if_false, fall_through); 2666 Split(eq, if_true, if_false, fall_through);
2667 break; 2667 break;
2668 2668
2669 case Token::INSTANCEOF: { 2669 case Token::INSTANCEOF: {
2670 VisitForAccumulatorValue(expr->right()); 2670 VisitForAccumulatorValue(expr->right());
2671 SetExpressionPosition(expr); 2671 SetExpressionPosition(expr);
2672 PopOperand(r4); 2672 PopOperand(r4);
2673 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); 2673 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET);
2674 RestoreContext();
2674 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2675 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2675 __ CompareRoot(r3, Heap::kTrueValueRootIndex); 2676 __ CompareRoot(r3, Heap::kTrueValueRootIndex);
2676 Split(eq, if_true, if_false, fall_through); 2677 Split(eq, if_true, if_false, fall_through);
2677 break; 2678 break;
2678 } 2679 }
2679 2680
2680 default: { 2681 default: {
2681 VisitForAccumulatorValue(expr->right()); 2682 VisitForAccumulatorValue(expr->right());
2682 SetExpressionPosition(expr); 2683 SetExpressionPosition(expr);
2683 Condition cond = CompareIC::ComputeCondition(op); 2684 Condition cond = CompareIC::ComputeCondition(op);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 2847
2847 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2848 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2848 2849
2849 DCHECK(interrupt_address == 2850 DCHECK(interrupt_address ==
2850 isolate->builtins()->OnStackReplacement()->entry()); 2851 isolate->builtins()->OnStackReplacement()->entry());
2851 return ON_STACK_REPLACEMENT; 2852 return ON_STACK_REPLACEMENT;
2852 } 2853 }
2853 } // namespace internal 2854 } // namespace internal
2854 } // namespace v8 2855 } // namespace v8
2855 #endif // V8_TARGET_ARCH_PPC 2856 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698