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 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2864 | 2864 |
2865 __ JumpIfSmi(eax, if_false); | 2865 __ JumpIfSmi(eax, if_false); |
2866 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, ebx); | 2866 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, ebx); |
2867 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2867 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2868 Split(above_equal, if_true, if_false, fall_through); | 2868 Split(above_equal, if_true, if_false, fall_through); |
2869 | 2869 |
2870 context()->Plug(if_true, if_false); | 2870 context()->Plug(if_true, if_false); |
2871 } | 2871 } |
2872 | 2872 |
2873 | 2873 |
2874 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
2875 ZoneList<Expression*>* args = expr->arguments(); | |
2876 DCHECK(args->length() == 1); | |
2877 | |
2878 VisitForAccumulatorValue(args->at(0)); | |
2879 | |
2880 Label materialize_true, materialize_false; | |
2881 Label* if_true = NULL; | |
2882 Label* if_false = NULL; | |
2883 Label* fall_through = NULL; | |
2884 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
2885 &if_false, &fall_through); | |
2886 | |
2887 __ JumpIfSmi(eax, if_false); | |
2888 __ CmpObjectType(eax, SIMD128_VALUE_TYPE, ebx); | |
2889 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
2890 Split(equal, if_true, if_false, fall_through); | |
2891 | |
2892 context()->Plug(if_true, if_false); | |
2893 } | |
2894 | |
2895 | |
2896 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 2874 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
2897 ZoneList<Expression*>* args = expr->arguments(); | 2875 ZoneList<Expression*>* args = expr->arguments(); |
2898 DCHECK(args->length() == 1); | 2876 DCHECK(args->length() == 1); |
2899 | 2877 |
2900 VisitForAccumulatorValue(args->at(0)); | 2878 VisitForAccumulatorValue(args->at(0)); |
2901 | 2879 |
2902 Label materialize_true, materialize_false; | 2880 Label materialize_true, materialize_false; |
2903 Label* if_true = NULL; | 2881 Label* if_true = NULL; |
2904 Label* if_false = NULL; | 2882 Label* if_false = NULL; |
2905 Label* fall_through = NULL; | 2883 Label* fall_through = NULL; |
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4439 Assembler::target_address_at(call_target_address, | 4417 Assembler::target_address_at(call_target_address, |
4440 unoptimized_code)); | 4418 unoptimized_code)); |
4441 return OSR_AFTER_STACK_CHECK; | 4419 return OSR_AFTER_STACK_CHECK; |
4442 } | 4420 } |
4443 | 4421 |
4444 | 4422 |
4445 } // namespace internal | 4423 } // namespace internal |
4446 } // namespace v8 | 4424 } // namespace v8 |
4447 | 4425 |
4448 #endif // V8_TARGET_ARCH_X87 | 4426 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |