| 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 2861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2872 | 2872 |
| 2873 __ JumpIfSmi(eax, if_false); | 2873 __ JumpIfSmi(eax, if_false); |
| 2874 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, ebx); | 2874 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, ebx); |
| 2875 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2875 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2876 Split(above_equal, if_true, if_false, fall_through); | 2876 Split(above_equal, if_true, if_false, fall_through); |
| 2877 | 2877 |
| 2878 context()->Plug(if_true, if_false); | 2878 context()->Plug(if_true, if_false); |
| 2879 } | 2879 } |
| 2880 | 2880 |
| 2881 | 2881 |
| 2882 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
| 2883 ZoneList<Expression*>* args = expr->arguments(); | |
| 2884 DCHECK(args->length() == 1); | |
| 2885 | |
| 2886 VisitForAccumulatorValue(args->at(0)); | |
| 2887 | |
| 2888 Label materialize_true, materialize_false; | |
| 2889 Label* if_true = NULL; | |
| 2890 Label* if_false = NULL; | |
| 2891 Label* fall_through = NULL; | |
| 2892 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
| 2893 &if_false, &fall_through); | |
| 2894 | |
| 2895 __ JumpIfSmi(eax, if_false); | |
| 2896 __ CmpObjectType(eax, SIMD128_VALUE_TYPE, ebx); | |
| 2897 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
| 2898 Split(equal, if_true, if_false, fall_through); | |
| 2899 | |
| 2900 context()->Plug(if_true, if_false); | |
| 2901 } | |
| 2902 | |
| 2903 | |
| 2904 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 2882 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
| 2905 ZoneList<Expression*>* args = expr->arguments(); | 2883 ZoneList<Expression*>* args = expr->arguments(); |
| 2906 DCHECK(args->length() == 1); | 2884 DCHECK(args->length() == 1); |
| 2907 | 2885 |
| 2908 VisitForAccumulatorValue(args->at(0)); | 2886 VisitForAccumulatorValue(args->at(0)); |
| 2909 | 2887 |
| 2910 Label materialize_true, materialize_false; | 2888 Label materialize_true, materialize_false; |
| 2911 Label* if_true = NULL; | 2889 Label* if_true = NULL; |
| 2912 Label* if_false = NULL; | 2890 Label* if_false = NULL; |
| 2913 Label* fall_through = NULL; | 2891 Label* fall_through = NULL; |
| (...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4447 Assembler::target_address_at(call_target_address, | 4425 Assembler::target_address_at(call_target_address, |
| 4448 unoptimized_code)); | 4426 unoptimized_code)); |
| 4449 return OSR_AFTER_STACK_CHECK; | 4427 return OSR_AFTER_STACK_CHECK; |
| 4450 } | 4428 } |
| 4451 | 4429 |
| 4452 | 4430 |
| 4453 } // namespace internal | 4431 } // namespace internal |
| 4454 } // namespace v8 | 4432 } // namespace v8 |
| 4455 | 4433 |
| 4456 #endif // V8_TARGET_ARCH_IA32 | 4434 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |