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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...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) __ Branch(&skip); 796 if (should_normalize) __ Branch(&skip);
797 PrepareForBailout(expr, TOS_REG); 797 PrepareForBailout(expr, TOS_REG);
798 if (should_normalize) { 798 if (should_normalize) {
799 __ LoadRoot(a4, Heap::kTrueValueRootIndex); 799 __ LoadRoot(a4, Heap::kTrueValueRootIndex);
800 Split(eq, a0, Operand(a4), if_true, if_false, NULL); 800 Split(eq, a0, Operand(a4), if_true, if_false, NULL);
801 __ bind(&skip); 801 __ bind(&skip);
802 } 802 }
803 } 803 }
(...skipping 4578 matching lines...) Expand 10 before | Expand all | Expand 10 after
5382 reinterpret_cast<uint64_t>( 5382 reinterpret_cast<uint64_t>(
5383 isolate->builtins()->OsrAfterStackCheck()->entry())); 5383 isolate->builtins()->OsrAfterStackCheck()->entry()));
5384 return OSR_AFTER_STACK_CHECK; 5384 return OSR_AFTER_STACK_CHECK;
5385 } 5385 }
5386 5386
5387 5387
5388 } // namespace internal 5388 } // namespace internal
5389 } // namespace v8 5389 } // namespace v8
5390 5390
5391 #endif // V8_TARGET_ARCH_MIPS64 5391 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698