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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2585 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2586 __ cmp(eax, isolate()->factory()->true_value()); 2586 __ cmp(eax, isolate()->factory()->true_value());
2587 Split(equal, if_true, if_false, fall_through); 2587 Split(equal, if_true, if_false, fall_through);
2588 break; 2588 break;
2589 2589
2590 case Token::INSTANCEOF: { 2590 case Token::INSTANCEOF: {
2591 VisitForAccumulatorValue(expr->right()); 2591 VisitForAccumulatorValue(expr->right());
2592 SetExpressionPosition(expr); 2592 SetExpressionPosition(expr);
2593 PopOperand(edx); 2593 PopOperand(edx);
2594 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); 2594 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET);
2595 RestoreContext();
2595 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2596 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2596 __ cmp(eax, isolate()->factory()->true_value()); 2597 __ cmp(eax, isolate()->factory()->true_value());
2597 Split(equal, if_true, if_false, fall_through); 2598 Split(equal, if_true, if_false, fall_through);
2598 break; 2599 break;
2599 } 2600 }
2600 2601
2601 default: { 2602 default: {
2602 VisitForAccumulatorValue(expr->right()); 2603 VisitForAccumulatorValue(expr->right());
2603 SetExpressionPosition(expr); 2604 SetExpressionPosition(expr);
2604 Condition cc = CompareIC::ComputeCondition(op); 2605 Condition cc = CompareIC::ComputeCondition(op);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2779 isolate->builtins()->OnStackReplacement()->entry(), 2780 isolate->builtins()->OnStackReplacement()->entry(),
2780 Assembler::target_address_at(call_target_address, unoptimized_code)); 2781 Assembler::target_address_at(call_target_address, unoptimized_code));
2781 return ON_STACK_REPLACEMENT; 2782 return ON_STACK_REPLACEMENT;
2782 } 2783 }
2783 2784
2784 2785
2785 } // namespace internal 2786 } // namespace internal
2786 } // namespace v8 2787 } // namespace v8
2787 2788
2788 #endif // V8_TARGET_ARCH_IA32 2789 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698