OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 3121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3132 | 3132 |
3133 __ JumpIfSmi(x0, if_false); | 3133 __ JumpIfSmi(x0, if_false); |
3134 __ CompareObjectType(x0, x10, x11, SIMD128_VALUE_TYPE); | 3134 __ CompareObjectType(x0, x10, x11, SIMD128_VALUE_TYPE); |
3135 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3135 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3136 Split(eq, if_true, if_false, fall_through); | 3136 Split(eq, if_true, if_false, fall_through); |
3137 | 3137 |
3138 context()->Plug(if_true, if_false); | 3138 context()->Plug(if_true, if_false); |
3139 } | 3139 } |
3140 | 3140 |
3141 | 3141 |
3142 void FullCodeGenerator::EmitIsUndetectableObject(CallRuntime* expr) { | |
3143 ASM_LOCATION("FullCodeGenerator::EmitIsUndetectableObject"); | |
3144 ZoneList<Expression*>* args = expr->arguments(); | |
3145 DCHECK(args->length() == 1); | |
3146 | |
3147 VisitForAccumulatorValue(args->at(0)); | |
3148 | |
3149 Label materialize_true, materialize_false; | |
3150 Label* if_true = NULL; | |
3151 Label* if_false = NULL; | |
3152 Label* fall_through = NULL; | |
3153 context()->PrepareTest(&materialize_true, &materialize_false, | |
3154 &if_true, &if_false, &fall_through); | |
3155 | |
3156 __ JumpIfSmi(x0, if_false); | |
3157 __ Ldr(x10, FieldMemOperand(x0, HeapObject::kMapOffset)); | |
3158 __ Ldrb(x11, FieldMemOperand(x10, Map::kBitFieldOffset)); | |
3159 __ Tst(x11, 1 << Map::kIsUndetectable); | |
3160 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3161 Split(ne, if_true, if_false, fall_through); | |
3162 | |
3163 context()->Plug(if_true, if_false); | |
3164 } | |
3165 | |
3166 | |
3167 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( | 3142 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
3168 CallRuntime* expr) { | 3143 CallRuntime* expr) { |
3169 ZoneList<Expression*>* args = expr->arguments(); | 3144 ZoneList<Expression*>* args = expr->arguments(); |
3170 DCHECK(args->length() == 1); | 3145 DCHECK(args->length() == 1); |
3171 VisitForAccumulatorValue(args->at(0)); | 3146 VisitForAccumulatorValue(args->at(0)); |
3172 | 3147 |
3173 Label materialize_true, materialize_false, skip_lookup; | 3148 Label materialize_true, materialize_false, skip_lookup; |
3174 Label* if_true = NULL; | 3149 Label* if_true = NULL; |
3175 Label* if_false = NULL; | 3150 Label* if_false = NULL; |
3176 Label* fall_through = NULL; | 3151 Label* fall_through = NULL; |
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5425 } | 5400 } |
5426 | 5401 |
5427 return INTERRUPT; | 5402 return INTERRUPT; |
5428 } | 5403 } |
5429 | 5404 |
5430 | 5405 |
5431 } // namespace internal | 5406 } // namespace internal |
5432 } // namespace v8 | 5407 } // namespace v8 |
5433 | 5408 |
5434 #endif // V8_TARGET_ARCH_ARM64 | 5409 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |