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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 5136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5147 // Check for undetectable objects => false. | 5147 // Check for undetectable objects => false. |
5148 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); | 5148 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); |
5149 __ j(above_equal, if_false); | 5149 __ j(above_equal, if_false); |
5150 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), | 5150 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), |
5151 Immediate(1 << Map::kIsUndetectable)); | 5151 Immediate(1 << Map::kIsUndetectable)); |
5152 Split(zero, if_true, if_false, fall_through); | 5152 Split(zero, if_true, if_false, fall_through); |
5153 } else if (String::Equals(check, factory->symbol_string())) { | 5153 } else if (String::Equals(check, factory->symbol_string())) { |
5154 __ JumpIfSmi(rax, if_false); | 5154 __ JumpIfSmi(rax, if_false); |
5155 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); | 5155 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); |
5156 Split(equal, if_true, if_false, fall_through); | 5156 Split(equal, if_true, if_false, fall_through); |
| 5157 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5158 __ JumpIfSmi(rax, if_false); |
| 5159 __ CmpObjectType(rax, FLOAT32X4_TYPE, rdx); |
| 5160 Split(equal, if_true, if_false, fall_through); |
5157 } else if (String::Equals(check, factory->boolean_string())) { | 5161 } else if (String::Equals(check, factory->boolean_string())) { |
5158 __ CompareRoot(rax, Heap::kTrueValueRootIndex); | 5162 __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
5159 __ j(equal, if_true); | 5163 __ j(equal, if_true); |
5160 __ CompareRoot(rax, Heap::kFalseValueRootIndex); | 5164 __ CompareRoot(rax, Heap::kFalseValueRootIndex); |
5161 Split(equal, if_true, if_false, fall_through); | 5165 Split(equal, if_true, if_false, fall_through); |
5162 } else if (String::Equals(check, factory->undefined_string())) { | 5166 } else if (String::Equals(check, factory->undefined_string())) { |
5163 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); | 5167 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); |
5164 __ j(equal, if_true); | 5168 __ j(equal, if_true); |
5165 __ JumpIfSmi(rax, if_false); | 5169 __ JumpIfSmi(rax, if_false); |
5166 // Check for undetectable objects => true. | 5170 // Check for undetectable objects => true. |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5483 Assembler::target_address_at(call_target_address, | 5487 Assembler::target_address_at(call_target_address, |
5484 unoptimized_code)); | 5488 unoptimized_code)); |
5485 return OSR_AFTER_STACK_CHECK; | 5489 return OSR_AFTER_STACK_CHECK; |
5486 } | 5490 } |
5487 | 5491 |
5488 | 5492 |
5489 } // namespace internal | 5493 } // namespace internal |
5490 } // namespace v8 | 5494 } // namespace v8 |
5491 | 5495 |
5492 #endif // V8_TARGET_ARCH_X64 | 5496 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |