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/arm/full-codegen-arm.cc

Issue 1309813002: Deprecate useless CompilationInfo::IsOptimizable predicate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compilation-info-flags
Patch Set: Created 5 years, 4 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/compiler.h ('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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 } 783 }
784 784
785 785
786 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, 786 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr,
787 bool should_normalize, 787 bool should_normalize,
788 Label* if_true, 788 Label* if_true,
789 Label* if_false) { 789 Label* if_false) {
790 // Only prepare for bailouts before splits if we're in a test 790 // Only prepare for bailouts before splits if we're in a test
791 // context. Otherwise, we let the Visit function deal with the 791 // context. Otherwise, we let the Visit function deal with the
792 // preparation to avoid preparing with the same AST id twice. 792 // preparation to avoid preparing with the same AST id twice.
793 if (!context()->IsTest() || !info_->IsOptimizable()) return; 793 if (!context()->IsTest()) return;
794 794
795 Label skip; 795 Label skip;
796 if (should_normalize) __ b(&skip); 796 if (should_normalize) __ b(&skip);
797 PrepareForBailout(expr, TOS_REG); 797 PrepareForBailout(expr, TOS_REG);
798 if (should_normalize) { 798 if (should_normalize) {
799 __ LoadRoot(ip, Heap::kTrueValueRootIndex); 799 __ LoadRoot(ip, Heap::kTrueValueRootIndex);
800 __ cmp(r0, ip); 800 __ cmp(r0, ip);
801 Split(eq, if_true, if_false, NULL); 801 Split(eq, if_true, if_false, NULL);
802 __ bind(&skip); 802 __ bind(&skip);
803 } 803 }
(...skipping 4610 matching lines...) Expand 10 before | Expand all | Expand 10 after
5414 DCHECK(interrupt_address == 5414 DCHECK(interrupt_address ==
5415 isolate->builtins()->OsrAfterStackCheck()->entry()); 5415 isolate->builtins()->OsrAfterStackCheck()->entry());
5416 return OSR_AFTER_STACK_CHECK; 5416 return OSR_AFTER_STACK_CHECK;
5417 } 5417 }
5418 5418
5419 5419
5420 } // namespace internal 5420 } // namespace internal
5421 } // namespace v8 5421 } // namespace v8
5422 5422
5423 #endif // V8_TARGET_ARCH_ARM 5423 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698