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 5140 matching lines...) Loading... |
5151 // Check for undetectable objects => false. | 5151 // Check for undetectable objects => false. |
5152 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); | 5152 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); |
5153 __ j(above_equal, if_false); | 5153 __ j(above_equal, if_false); |
5154 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), | 5154 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), |
5155 Immediate(1 << Map::kIsUndetectable)); | 5155 Immediate(1 << Map::kIsUndetectable)); |
5156 Split(zero, if_true, if_false, fall_through); | 5156 Split(zero, if_true, if_false, fall_through); |
5157 } else if (String::Equals(check, factory->symbol_string())) { | 5157 } else if (String::Equals(check, factory->symbol_string())) { |
5158 __ JumpIfSmi(rax, if_false); | 5158 __ JumpIfSmi(rax, if_false); |
5159 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); | 5159 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); |
5160 Split(equal, if_true, if_false, fall_through); | 5160 Split(equal, if_true, if_false, fall_through); |
| 5161 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5162 __ JumpIfSmi(rax, if_false); |
| 5163 __ CmpObjectType(rax, FLOAT32X4_TYPE, rdx); |
| 5164 Split(equal, if_true, if_false, fall_through); |
5161 } else if (String::Equals(check, factory->boolean_string())) { | 5165 } else if (String::Equals(check, factory->boolean_string())) { |
5162 __ CompareRoot(rax, Heap::kTrueValueRootIndex); | 5166 __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
5163 __ j(equal, if_true); | 5167 __ j(equal, if_true); |
5164 __ CompareRoot(rax, Heap::kFalseValueRootIndex); | 5168 __ CompareRoot(rax, Heap::kFalseValueRootIndex); |
5165 Split(equal, if_true, if_false, fall_through); | 5169 Split(equal, if_true, if_false, fall_through); |
5166 } else if (String::Equals(check, factory->undefined_string())) { | 5170 } else if (String::Equals(check, factory->undefined_string())) { |
5167 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); | 5171 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); |
5168 __ j(equal, if_true); | 5172 __ j(equal, if_true); |
5169 __ JumpIfSmi(rax, if_false); | 5173 __ JumpIfSmi(rax, if_false); |
5170 // Check for undetectable objects => true. | 5174 // Check for undetectable objects => true. |
(...skipping 316 matching lines...) Loading... |
5487 Assembler::target_address_at(call_target_address, | 5491 Assembler::target_address_at(call_target_address, |
5488 unoptimized_code)); | 5492 unoptimized_code)); |
5489 return OSR_AFTER_STACK_CHECK; | 5493 return OSR_AFTER_STACK_CHECK; |
5490 } | 5494 } |
5491 | 5495 |
5492 | 5496 |
5493 } // namespace internal | 5497 } // namespace internal |
5494 } // namespace v8 | 5498 } // namespace v8 |
5495 | 5499 |
5496 #endif // V8_TARGET_ARCH_X64 | 5500 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |