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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3013 VisitForAccumulatorValue(args->at(0)); | 3013 VisitForAccumulatorValue(args->at(0)); |
3014 | 3014 |
3015 Label materialize_true, materialize_false; | 3015 Label materialize_true, materialize_false; |
3016 Label* if_true = NULL; | 3016 Label* if_true = NULL; |
3017 Label* if_false = NULL; | 3017 Label* if_false = NULL; |
3018 Label* fall_through = NULL; | 3018 Label* fall_through = NULL; |
3019 context()->PrepareTest(&materialize_true, &materialize_false, | 3019 context()->PrepareTest(&materialize_true, &materialize_false, |
3020 &if_true, &if_false, &fall_through); | 3020 &if_true, &if_false, &fall_through); |
3021 | 3021 |
3022 __ JumpIfSmi(rax, if_false); | 3022 __ JumpIfSmi(rax, if_false); |
3023 __ CmpObjectType(rax, JS_FUNCTION_TYPE, rbx); | 3023 __ CmpObjectType(rax, FIRST_FUNCTION_TYPE, rbx); |
3024 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3024 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3025 Split(equal, if_true, if_false, fall_through); | 3025 Split(above_equal, if_true, if_false, fall_through); |
3026 | 3026 |
3027 context()->Plug(if_true, if_false); | 3027 context()->Plug(if_true, if_false); |
3028 } | 3028 } |
3029 | 3029 |
3030 | 3030 |
3031 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 3031 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
3032 ZoneList<Expression*>* args = expr->arguments(); | 3032 ZoneList<Expression*>* args = expr->arguments(); |
3033 DCHECK(args->length() == 1); | 3033 DCHECK(args->length() == 1); |
3034 | 3034 |
3035 VisitForAccumulatorValue(args->at(0)); | 3035 VisitForAccumulatorValue(args->at(0)); |
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4795 Assembler::target_address_at(call_target_address, | 4795 Assembler::target_address_at(call_target_address, |
4796 unoptimized_code)); | 4796 unoptimized_code)); |
4797 return OSR_AFTER_STACK_CHECK; | 4797 return OSR_AFTER_STACK_CHECK; |
4798 } | 4798 } |
4799 | 4799 |
4800 | 4800 |
4801 } // namespace internal | 4801 } // namespace internal |
4802 } // namespace v8 | 4802 } // namespace v8 |
4803 | 4803 |
4804 #endif // V8_TARGET_ARCH_X64 | 4804 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |