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/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 2785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 context()->PrepareTest(&materialize_true, &materialize_false, | 2796 context()->PrepareTest(&materialize_true, &materialize_false, |
2797 &if_true, &if_false, &fall_through); | 2797 &if_true, &if_false, &fall_through); |
2798 | 2798 |
2799 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2799 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2800 __ TestAndSplit(x0, kSmiTagMask, if_true, if_false, fall_through); | 2800 __ TestAndSplit(x0, kSmiTagMask, if_true, if_false, fall_through); |
2801 | 2801 |
2802 context()->Plug(if_true, if_false); | 2802 context()->Plug(if_true, if_false); |
2803 } | 2803 } |
2804 | 2804 |
2805 | 2805 |
2806 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 2806 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
2807 ZoneList<Expression*>* args = expr->arguments(); | 2807 ZoneList<Expression*>* args = expr->arguments(); |
2808 DCHECK(args->length() == 1); | 2808 DCHECK(args->length() == 1); |
2809 | 2809 |
2810 VisitForAccumulatorValue(args->at(0)); | 2810 VisitForAccumulatorValue(args->at(0)); |
2811 | 2811 |
2812 Label materialize_true, materialize_false; | 2812 Label materialize_true, materialize_false; |
2813 Label* if_true = NULL; | 2813 Label* if_true = NULL; |
2814 Label* if_false = NULL; | 2814 Label* if_false = NULL; |
2815 Label* fall_through = NULL; | 2815 Label* fall_through = NULL; |
2816 context()->PrepareTest(&materialize_true, &materialize_false, | 2816 context()->PrepareTest(&materialize_true, &materialize_false, |
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4982 } | 4982 } |
4983 | 4983 |
4984 return INTERRUPT; | 4984 return INTERRUPT; |
4985 } | 4985 } |
4986 | 4986 |
4987 | 4987 |
4988 } // namespace internal | 4988 } // namespace internal |
4989 } // namespace v8 | 4989 } // namespace v8 |
4990 | 4990 |
4991 #endif // V8_TARGET_ARCH_ARM64 | 4991 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |