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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | no next file » | 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/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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 } 736 }
737 737
738 738
739 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, 739 void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr,
740 bool should_normalize, 740 bool should_normalize,
741 Label* if_true, 741 Label* if_true,
742 Label* if_false) { 742 Label* if_false) {
743 // Only prepare for bailouts before splits if we're in a test 743 // Only prepare for bailouts before splits if we're in a test
744 // context. Otherwise, we let the Visit function deal with the 744 // context. Otherwise, we let the Visit function deal with the
745 // preparation to avoid preparing with the same AST id twice. 745 // preparation to avoid preparing with the same AST id twice.
746 if (!context()->IsTest() || !info_->IsOptimizable()) return; 746 if (!context()->IsTest()) return;
747 747
748 Label skip; 748 Label skip;
749 if (should_normalize) __ jmp(&skip, Label::kNear); 749 if (should_normalize) __ jmp(&skip, Label::kNear);
750 PrepareForBailout(expr, TOS_REG); 750 PrepareForBailout(expr, TOS_REG);
751 if (should_normalize) { 751 if (should_normalize) {
752 __ cmp(eax, isolate()->factory()->true_value()); 752 __ cmp(eax, isolate()->factory()->true_value());
753 Split(equal, if_true, if_false, NULL); 753 Split(equal, if_true, if_false, NULL);
754 __ bind(&skip); 754 __ bind(&skip);
755 } 755 }
756 } 756 }
(...skipping 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after
5282 Assembler::target_address_at(call_target_address, 5282 Assembler::target_address_at(call_target_address,
5283 unoptimized_code)); 5283 unoptimized_code));
5284 return OSR_AFTER_STACK_CHECK; 5284 return OSR_AFTER_STACK_CHECK;
5285 } 5285 }
5286 5286
5287 5287
5288 } // namespace internal 5288 } // namespace internal
5289 } // namespace v8 5289 } // namespace v8
5290 5290
5291 #endif // V8_TARGET_ARCH_X87 5291 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698