| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3004 VisitForAccumulatorValue(args->at(0)); | 3004 VisitForAccumulatorValue(args->at(0)); |
| 3005 | 3005 |
| 3006 Label materialize_true, materialize_false; | 3006 Label materialize_true, materialize_false; |
| 3007 Label* if_true = NULL; | 3007 Label* if_true = NULL; |
| 3008 Label* if_false = NULL; | 3008 Label* if_false = NULL; |
| 3009 Label* fall_through = NULL; | 3009 Label* fall_through = NULL; |
| 3010 context()->PrepareTest(&materialize_true, &materialize_false, | 3010 context()->PrepareTest(&materialize_true, &materialize_false, |
| 3011 &if_true, &if_false, &fall_through); | 3011 &if_true, &if_false, &fall_through); |
| 3012 | 3012 |
| 3013 __ JumpIfSmi(eax, if_false); | 3013 __ JumpIfSmi(eax, if_false); |
| 3014 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); | 3014 __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx); |
| 3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3016 Split(equal, if_true, if_false, fall_through); | 3016 Split(above_equal, if_true, if_false, fall_through); |
| 3017 | 3017 |
| 3018 context()->Plug(if_true, if_false); | 3018 context()->Plug(if_true, if_false); |
| 3019 } | 3019 } |
| 3020 | 3020 |
| 3021 | 3021 |
| 3022 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 3022 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
| 3023 ZoneList<Expression*>* args = expr->arguments(); | 3023 ZoneList<Expression*>* args = expr->arguments(); |
| 3024 DCHECK(args->length() == 1); | 3024 DCHECK(args->length() == 1); |
| 3025 | 3025 |
| 3026 VisitForAccumulatorValue(args->at(0)); | 3026 VisitForAccumulatorValue(args->at(0)); |
| (...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4761 Assembler::target_address_at(call_target_address, | 4761 Assembler::target_address_at(call_target_address, |
| 4762 unoptimized_code)); | 4762 unoptimized_code)); |
| 4763 return OSR_AFTER_STACK_CHECK; | 4763 return OSR_AFTER_STACK_CHECK; |
| 4764 } | 4764 } |
| 4765 | 4765 |
| 4766 | 4766 |
| 4767 } // namespace internal | 4767 } // namespace internal |
| 4768 } // namespace v8 | 4768 } // namespace v8 |
| 4769 | 4769 |
| 4770 #endif // V8_TARGET_ARCH_IA32 | 4770 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |