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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 } 750 }
751 751
752 752
753 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, 753 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr,
754 bool should_normalize, 754 bool should_normalize,
755 Label* if_true, 755 Label* if_true,
756 Label* if_false) { 756 Label* if_false) {
757 // Only prepare for bailouts before splits if we're in a test 757 // Only prepare for bailouts before splits if we're in a test
758 // context. Otherwise, we let the Visit function deal with the 758 // context. Otherwise, we let the Visit function deal with the
759 // preparation to avoid preparing with the same AST id twice. 759 // preparation to avoid preparing with the same AST id twice.
760 if (!context()->IsTest() || !info_->IsOptimizable()) return; 760 if (!context()->IsTest()) return;
761 761
762 Label skip; 762 Label skip;
763 if (should_normalize) __ b(&skip); 763 if (should_normalize) __ b(&skip);
764 PrepareForBailout(expr, TOS_REG); 764 PrepareForBailout(expr, TOS_REG);
765 if (should_normalize) { 765 if (should_normalize) {
766 __ LoadRoot(ip, Heap::kTrueValueRootIndex); 766 __ LoadRoot(ip, Heap::kTrueValueRootIndex);
767 __ cmp(r3, ip); 767 __ cmp(r3, ip);
768 Split(eq, if_true, if_false, NULL); 768 Split(eq, if_true, if_false, NULL);
769 __ bind(&skip); 769 __ bind(&skip);
770 } 770 }
(...skipping 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after
5389 return ON_STACK_REPLACEMENT; 5389 return ON_STACK_REPLACEMENT;
5390 } 5390 }
5391 5391
5392 DCHECK(interrupt_address == 5392 DCHECK(interrupt_address ==
5393 isolate->builtins()->OsrAfterStackCheck()->entry()); 5393 isolate->builtins()->OsrAfterStackCheck()->entry());
5394 return OSR_AFTER_STACK_CHECK; 5394 return OSR_AFTER_STACK_CHECK;
5395 } 5395 }
5396 } // namespace internal 5396 } // namespace internal
5397 } // namespace v8 5397 } // namespace v8
5398 #endif // V8_TARGET_ARCH_PPC 5398 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698