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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2569 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2569 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2570 __ CompareRoot(rax, Heap::kTrueValueRootIndex); 2570 __ CompareRoot(rax, Heap::kTrueValueRootIndex);
2571 Split(equal, if_true, if_false, fall_through); 2571 Split(equal, if_true, if_false, fall_through);
2572 break; 2572 break;
2573 2573
2574 case Token::INSTANCEOF: { 2574 case Token::INSTANCEOF: {
2575 VisitForAccumulatorValue(expr->right()); 2575 VisitForAccumulatorValue(expr->right());
2576 SetExpressionPosition(expr); 2576 SetExpressionPosition(expr);
2577 PopOperand(rdx); 2577 PopOperand(rdx);
2578 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); 2578 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET);
2579 RestoreContext();
2579 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2580 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2580 __ CompareRoot(rax, Heap::kTrueValueRootIndex); 2581 __ CompareRoot(rax, Heap::kTrueValueRootIndex);
2581 Split(equal, if_true, if_false, fall_through); 2582 Split(equal, if_true, if_false, fall_through);
2582 break; 2583 break;
2583 } 2584 }
2584 2585
2585 default: { 2586 default: {
2586 VisitForAccumulatorValue(expr->right()); 2587 VisitForAccumulatorValue(expr->right());
2587 SetExpressionPosition(expr); 2588 SetExpressionPosition(expr);
2588 Condition cc = CompareIC::ComputeCondition(op); 2589 Condition cc = CompareIC::ComputeCondition(op);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2760 DCHECK_EQ( 2761 DCHECK_EQ(
2761 isolate->builtins()->OnStackReplacement()->entry(), 2762 isolate->builtins()->OnStackReplacement()->entry(),
2762 Assembler::target_address_at(call_target_address, unoptimized_code)); 2763 Assembler::target_address_at(call_target_address, unoptimized_code));
2763 return ON_STACK_REPLACEMENT; 2764 return ON_STACK_REPLACEMENT;
2764 } 2765 }
2765 2766
2766 } // namespace internal 2767 } // namespace internal
2767 } // namespace v8 2768 } // namespace v8
2768 2769
2769 #endif // V8_TARGET_ARCH_X64 2770 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698