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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2955 &if_true, &if_false, &fall_through); | 2955 &if_true, &if_false, &fall_through); |
2956 | 2956 |
2957 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2957 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2958 __ JumpIfSmi(rax, if_true); | 2958 __ JumpIfSmi(rax, if_true); |
2959 __ jmp(if_false); | 2959 __ jmp(if_false); |
2960 | 2960 |
2961 context()->Plug(if_true, if_false); | 2961 context()->Plug(if_true, if_false); |
2962 } | 2962 } |
2963 | 2963 |
2964 | 2964 |
2965 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 2965 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
2966 ZoneList<Expression*>* args = expr->arguments(); | 2966 ZoneList<Expression*>* args = expr->arguments(); |
2967 DCHECK(args->length() == 1); | 2967 DCHECK(args->length() == 1); |
2968 | 2968 |
2969 VisitForAccumulatorValue(args->at(0)); | 2969 VisitForAccumulatorValue(args->at(0)); |
2970 | 2970 |
2971 Label materialize_true, materialize_false; | 2971 Label materialize_true, materialize_false; |
2972 Label* if_true = NULL; | 2972 Label* if_true = NULL; |
2973 Label* if_false = NULL; | 2973 Label* if_false = NULL; |
2974 Label* fall_through = NULL; | 2974 Label* fall_through = NULL; |
2975 context()->PrepareTest(&materialize_true, &materialize_false, | 2975 context()->PrepareTest(&materialize_true, &materialize_false, |
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4881 Assembler::target_address_at(call_target_address, | 4881 Assembler::target_address_at(call_target_address, |
4882 unoptimized_code)); | 4882 unoptimized_code)); |
4883 return OSR_AFTER_STACK_CHECK; | 4883 return OSR_AFTER_STACK_CHECK; |
4884 } | 4884 } |
4885 | 4885 |
4886 | 4886 |
4887 } // namespace internal | 4887 } // namespace internal |
4888 } // namespace v8 | 4888 } // namespace v8 |
4889 | 4889 |
4890 #endif // V8_TARGET_ARCH_X64 | 4890 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |