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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/heap/heap.h » ('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_X87 5 #if V8_TARGET_ARCH_X87
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 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2575 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2576 __ cmp(eax, isolate()->factory()->true_value()); 2576 __ cmp(eax, isolate()->factory()->true_value());
2577 Split(equal, if_true, if_false, fall_through); 2577 Split(equal, if_true, if_false, fall_through);
2578 break; 2578 break;
2579 2579
2580 case Token::INSTANCEOF: { 2580 case Token::INSTANCEOF: {
2581 VisitForAccumulatorValue(expr->right()); 2581 VisitForAccumulatorValue(expr->right());
2582 SetExpressionPosition(expr); 2582 SetExpressionPosition(expr);
2583 PopOperand(edx); 2583 PopOperand(edx);
2584 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); 2584 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET);
2585 RestoreContext();
2585 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 2586 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
2586 __ cmp(eax, isolate()->factory()->true_value()); 2587 __ cmp(eax, isolate()->factory()->true_value());
2587 Split(equal, if_true, if_false, fall_through); 2588 Split(equal, if_true, if_false, fall_through);
2588 break; 2589 break;
2589 } 2590 }
2590 2591
2591 default: { 2592 default: {
2592 VisitForAccumulatorValue(expr->right()); 2593 VisitForAccumulatorValue(expr->right());
2593 SetExpressionPosition(expr); 2594 SetExpressionPosition(expr);
2594 Condition cc = CompareIC::ComputeCondition(op); 2595 Condition cc = CompareIC::ComputeCondition(op);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2769 isolate->builtins()->OnStackReplacement()->entry(), 2770 isolate->builtins()->OnStackReplacement()->entry(),
2770 Assembler::target_address_at(call_target_address, unoptimized_code)); 2771 Assembler::target_address_at(call_target_address, unoptimized_code));
2771 return ON_STACK_REPLACEMENT; 2772 return ON_STACK_REPLACEMENT;
2772 } 2773 }
2773 2774
2774 2775
2775 } // namespace internal 2776 } // namespace internal
2776 } // namespace v8 2777 } // namespace v8
2777 2778
2778 #endif // V8_TARGET_ARCH_X87 2779 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698