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 5160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5171 // Check for undetectable objects => false. | 5171 // Check for undetectable objects => false. |
5172 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); | 5172 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); |
5173 __ j(above_equal, if_false); | 5173 __ j(above_equal, if_false); |
5174 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), | 5174 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), |
5175 Immediate(1 << Map::kIsUndetectable)); | 5175 Immediate(1 << Map::kIsUndetectable)); |
5176 Split(zero, if_true, if_false, fall_through); | 5176 Split(zero, if_true, if_false, fall_through); |
5177 } else if (String::Equals(check, factory->symbol_string())) { | 5177 } else if (String::Equals(check, factory->symbol_string())) { |
5178 __ JumpIfSmi(rax, if_false); | 5178 __ JumpIfSmi(rax, if_false); |
5179 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); | 5179 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); |
5180 Split(equal, if_true, if_false, fall_through); | 5180 Split(equal, if_true, if_false, fall_through); |
| 5181 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5182 __ JumpIfSmi(rax, if_false); |
| 5183 __ CmpObjectType(rax, FLOAT32X4_TYPE, rdx); |
| 5184 Split(equal, if_true, if_false, fall_through); |
5181 } else if (String::Equals(check, factory->boolean_string())) { | 5185 } else if (String::Equals(check, factory->boolean_string())) { |
5182 __ CompareRoot(rax, Heap::kTrueValueRootIndex); | 5186 __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
5183 __ j(equal, if_true); | 5187 __ j(equal, if_true); |
5184 __ CompareRoot(rax, Heap::kFalseValueRootIndex); | 5188 __ CompareRoot(rax, Heap::kFalseValueRootIndex); |
5185 Split(equal, if_true, if_false, fall_through); | 5189 Split(equal, if_true, if_false, fall_through); |
5186 } else if (String::Equals(check, factory->undefined_string())) { | 5190 } else if (String::Equals(check, factory->undefined_string())) { |
5187 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); | 5191 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); |
5188 __ j(equal, if_true); | 5192 __ j(equal, if_true); |
5189 __ JumpIfSmi(rax, if_false); | 5193 __ JumpIfSmi(rax, if_false); |
5190 // Check for undetectable objects => true. | 5194 // Check for undetectable objects => true. |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5507 Assembler::target_address_at(call_target_address, | 5511 Assembler::target_address_at(call_target_address, |
5508 unoptimized_code)); | 5512 unoptimized_code)); |
5509 return OSR_AFTER_STACK_CHECK; | 5513 return OSR_AFTER_STACK_CHECK; |
5510 } | 5514 } |
5511 | 5515 |
5512 | 5516 |
5513 } // namespace internal | 5517 } // namespace internal |
5514 } // namespace v8 | 5518 } // namespace v8 |
5515 | 5519 |
5516 #endif // V8_TARGET_ARCH_X64 | 5520 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |