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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2963 &if_true, &if_false, &fall_through); | 2963 &if_true, &if_false, &fall_through); |
2964 | 2964 |
2965 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2965 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2966 __ test(eax, Immediate(kSmiTagMask)); | 2966 __ test(eax, Immediate(kSmiTagMask)); |
2967 Split(zero, if_true, if_false, fall_through); | 2967 Split(zero, if_true, if_false, fall_through); |
2968 | 2968 |
2969 context()->Plug(if_true, if_false); | 2969 context()->Plug(if_true, if_false); |
2970 } | 2970 } |
2971 | 2971 |
2972 | 2972 |
2973 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 2973 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
2974 ZoneList<Expression*>* args = expr->arguments(); | 2974 ZoneList<Expression*>* args = expr->arguments(); |
2975 DCHECK(args->length() == 1); | 2975 DCHECK(args->length() == 1); |
2976 | 2976 |
2977 VisitForAccumulatorValue(args->at(0)); | 2977 VisitForAccumulatorValue(args->at(0)); |
2978 | 2978 |
2979 Label materialize_true, materialize_false; | 2979 Label materialize_true, materialize_false; |
2980 Label* if_true = NULL; | 2980 Label* if_true = NULL; |
2981 Label* if_false = NULL; | 2981 Label* if_false = NULL; |
2982 Label* fall_through = NULL; | 2982 Label* fall_through = NULL; |
2983 context()->PrepareTest(&materialize_true, &materialize_false, | 2983 context()->PrepareTest(&materialize_true, &materialize_false, |
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4866 Assembler::target_address_at(call_target_address, | 4866 Assembler::target_address_at(call_target_address, |
4867 unoptimized_code)); | 4867 unoptimized_code)); |
4868 return OSR_AFTER_STACK_CHECK; | 4868 return OSR_AFTER_STACK_CHECK; |
4869 } | 4869 } |
4870 | 4870 |
4871 | 4871 |
4872 } // namespace internal | 4872 } // namespace internal |
4873 } // namespace v8 | 4873 } // namespace v8 |
4874 | 4874 |
4875 #endif // V8_TARGET_ARCH_X87 | 4875 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |