| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 3332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3343 | 3343 |
| 3344 __ JumpIfSmi(x0, if_false); | 3344 __ JumpIfSmi(x0, if_false); |
| 3345 __ CompareObjectType(x0, x10, x11, JS_ARRAY_TYPE); | 3345 __ CompareObjectType(x0, x10, x11, JS_ARRAY_TYPE); |
| 3346 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3346 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3347 Split(eq, if_true, if_false, fall_through); | 3347 Split(eq, if_true, if_false, fall_through); |
| 3348 | 3348 |
| 3349 context()->Plug(if_true, if_false); | 3349 context()->Plug(if_true, if_false); |
| 3350 } | 3350 } |
| 3351 | 3351 |
| 3352 | 3352 |
| 3353 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) { |
| 3354 ZoneList<Expression*>* args = expr->arguments(); |
| 3355 DCHECK(args->length() == 1); |
| 3356 |
| 3357 VisitForAccumulatorValue(args->at(0)); |
| 3358 |
| 3359 Label materialize_true, materialize_false; |
| 3360 Label* if_true = NULL; |
| 3361 Label* if_false = NULL; |
| 3362 Label* fall_through = NULL; |
| 3363 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, |
| 3364 &if_false, &fall_through); |
| 3365 |
| 3366 __ JumpIfSmi(x0, if_false); |
| 3367 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE); |
| 3368 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3369 Split(eq, if_true, if_false, fall_through); |
| 3370 |
| 3371 context()->Plug(if_true, if_false); |
| 3372 } |
| 3373 |
| 3374 |
| 3353 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { | 3375 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
| 3354 ZoneList<Expression*>* args = expr->arguments(); | 3376 ZoneList<Expression*>* args = expr->arguments(); |
| 3355 DCHECK(args->length() == 1); | 3377 DCHECK(args->length() == 1); |
| 3356 | 3378 |
| 3357 VisitForAccumulatorValue(args->at(0)); | 3379 VisitForAccumulatorValue(args->at(0)); |
| 3358 | 3380 |
| 3359 Label materialize_true, materialize_false; | 3381 Label materialize_true, materialize_false; |
| 3360 Label* if_true = NULL; | 3382 Label* if_true = NULL; |
| 3361 Label* if_false = NULL; | 3383 Label* if_false = NULL; |
| 3362 Label* fall_through = NULL; | 3384 Label* fall_through = NULL; |
| (...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5563 } | 5585 } |
| 5564 | 5586 |
| 5565 return INTERRUPT; | 5587 return INTERRUPT; |
| 5566 } | 5588 } |
| 5567 | 5589 |
| 5568 | 5590 |
| 5569 } // namespace internal | 5591 } // namespace internal |
| 5570 } // namespace v8 | 5592 } // namespace v8 |
| 5571 | 5593 |
| 5572 #endif // V8_TARGET_ARCH_ARM64 | 5594 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |