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

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

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Created 4 years, 2 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/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3431 EmitHasProperty(); 3431 EmitHasProperty();
3432 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 3432 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
3433 __ CompareRoot(r0, Heap::kTrueValueRootIndex); 3433 __ CompareRoot(r0, Heap::kTrueValueRootIndex);
3434 Split(eq, if_true, if_false, fall_through); 3434 Split(eq, if_true, if_false, fall_through);
3435 break; 3435 break;
3436 3436
3437 case Token::INSTANCEOF: { 3437 case Token::INSTANCEOF: {
3438 VisitForAccumulatorValue(expr->right()); 3438 VisitForAccumulatorValue(expr->right());
3439 SetExpressionPosition(expr); 3439 SetExpressionPosition(expr);
3440 PopOperand(r1); 3440 PopOperand(r1);
3441 __ EmitLoadTypeFeedbackVector(r3); 3441 InstanceOfStub stub(isolate());
3442 __ mov(r4, Operand(SlotToIndex(expr->CompareOperationFeedbackSlot())));
3443 InstanceOfWithFeedbackStub stub(isolate());
3444 __ CallStub(&stub); 3442 __ CallStub(&stub);
3445 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 3443 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
3446 __ CompareRoot(r0, Heap::kTrueValueRootIndex); 3444 __ CompareRoot(r0, Heap::kTrueValueRootIndex);
3447 Split(eq, if_true, if_false, fall_through); 3445 Split(eq, if_true, if_false, fall_through);
3448 break; 3446 break;
3449 } 3447 }
3450 3448
3451 default: { 3449 default: {
3452 VisitForAccumulatorValue(expr->right()); 3450 VisitForAccumulatorValue(expr->right());
3453 SetExpressionPosition(expr); 3451 SetExpressionPosition(expr);
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
3756 DCHECK(interrupt_address == 3754 DCHECK(interrupt_address ==
3757 isolate->builtins()->OnStackReplacement()->entry()); 3755 isolate->builtins()->OnStackReplacement()->entry());
3758 return ON_STACK_REPLACEMENT; 3756 return ON_STACK_REPLACEMENT;
3759 } 3757 }
3760 3758
3761 3759
3762 } // namespace internal 3760 } // namespace internal
3763 } // namespace v8 3761 } // namespace v8
3764 3762
3765 #endif // V8_TARGET_ARCH_ARM 3763 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698