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/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 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3017 VisitForAccumulatorValue(args->at(0)); | 3017 VisitForAccumulatorValue(args->at(0)); |
3018 | 3018 |
3019 Label materialize_true, materialize_false; | 3019 Label materialize_true, materialize_false; |
3020 Label* if_true = NULL; | 3020 Label* if_true = NULL; |
3021 Label* if_false = NULL; | 3021 Label* if_false = NULL; |
3022 Label* fall_through = NULL; | 3022 Label* fall_through = NULL; |
3023 context()->PrepareTest(&materialize_true, &materialize_false, | 3023 context()->PrepareTest(&materialize_true, &materialize_false, |
3024 &if_true, &if_false, &fall_through); | 3024 &if_true, &if_false, &fall_through); |
3025 | 3025 |
3026 __ JumpIfSmi(eax, if_false); | 3026 __ JumpIfSmi(eax, if_false); |
3027 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); | 3027 __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx); |
3028 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3028 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3029 Split(equal, if_true, if_false, fall_through); | 3029 Split(above_equal, if_true, if_false, fall_through); |
3030 | 3030 |
3031 context()->Plug(if_true, if_false); | 3031 context()->Plug(if_true, if_false); |
3032 } | 3032 } |
3033 | 3033 |
3034 | 3034 |
3035 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 3035 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
3036 ZoneList<Expression*>* args = expr->arguments(); | 3036 ZoneList<Expression*>* args = expr->arguments(); |
3037 DCHECK(args->length() == 1); | 3037 DCHECK(args->length() == 1); |
3038 | 3038 |
3039 VisitForAccumulatorValue(args->at(0)); | 3039 VisitForAccumulatorValue(args->at(0)); |
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4774 Assembler::target_address_at(call_target_address, | 4774 Assembler::target_address_at(call_target_address, |
4775 unoptimized_code)); | 4775 unoptimized_code)); |
4776 return OSR_AFTER_STACK_CHECK; | 4776 return OSR_AFTER_STACK_CHECK; |
4777 } | 4777 } |
4778 | 4778 |
4779 | 4779 |
4780 } // namespace internal | 4780 } // namespace internal |
4781 } // namespace v8 | 4781 } // namespace v8 |
4782 | 4782 |
4783 #endif // V8_TARGET_ARCH_X87 | 4783 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |