| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|