| 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 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 VisitForAccumulatorValue(args->at(0)); | 2990 VisitForAccumulatorValue(args->at(0)); |
| 2991 | 2991 |
| 2992 Label materialize_true, materialize_false; | 2992 Label materialize_true, materialize_false; |
| 2993 Label* if_true = NULL; | 2993 Label* if_true = NULL; |
| 2994 Label* if_false = NULL; | 2994 Label* if_false = NULL; |
| 2995 Label* fall_through = NULL; | 2995 Label* fall_through = NULL; |
| 2996 context()->PrepareTest(&materialize_true, &materialize_false, | 2996 context()->PrepareTest(&materialize_true, &materialize_false, |
| 2997 &if_true, &if_false, &fall_through); | 2997 &if_true, &if_false, &fall_through); |
| 2998 | 2998 |
| 2999 __ JumpIfSmi(rax, if_false); | 2999 __ JumpIfSmi(rax, if_false); |
| 3000 __ CmpObjectType(rax, JS_FUNCTION_TYPE, rbx); | 3000 __ CmpObjectType(rax, FIRST_FUNCTION_TYPE, rbx); |
| 3001 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3001 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3002 Split(equal, if_true, if_false, fall_through); | 3002 Split(above_equal, if_true, if_false, fall_through); |
| 3003 | 3003 |
| 3004 context()->Plug(if_true, if_false); | 3004 context()->Plug(if_true, if_false); |
| 3005 } | 3005 } |
| 3006 | 3006 |
| 3007 | 3007 |
| 3008 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 3008 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
| 3009 ZoneList<Expression*>* args = expr->arguments(); | 3009 ZoneList<Expression*>* args = expr->arguments(); |
| 3010 DCHECK(args->length() == 1); | 3010 DCHECK(args->length() == 1); |
| 3011 | 3011 |
| 3012 VisitForAccumulatorValue(args->at(0)); | 3012 VisitForAccumulatorValue(args->at(0)); |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4772 Assembler::target_address_at(call_target_address, | 4772 Assembler::target_address_at(call_target_address, |
| 4773 unoptimized_code)); | 4773 unoptimized_code)); |
| 4774 return OSR_AFTER_STACK_CHECK; | 4774 return OSR_AFTER_STACK_CHECK; |
| 4775 } | 4775 } |
| 4776 | 4776 |
| 4777 | 4777 |
| 4778 } // namespace internal | 4778 } // namespace internal |
| 4779 } // namespace v8 | 4779 } // namespace v8 |
| 4780 | 4780 |
| 4781 #endif // V8_TARGET_ARCH_X64 | 4781 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |