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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5172 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); | 5172 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); |
5173 __ j(above_equal, if_false); | 5173 __ j(above_equal, if_false); |
5174 // Check for undetectable objects => false. | 5174 // Check for undetectable objects => false. |
5175 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), | 5175 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), |
5176 1 << Map::kIsUndetectable); | 5176 1 << Map::kIsUndetectable); |
5177 Split(zero, if_true, if_false, fall_through); | 5177 Split(zero, if_true, if_false, fall_through); |
5178 } else if (String::Equals(check, factory->symbol_string())) { | 5178 } else if (String::Equals(check, factory->symbol_string())) { |
5179 __ JumpIfSmi(eax, if_false); | 5179 __ JumpIfSmi(eax, if_false); |
5180 __ CmpObjectType(eax, SYMBOL_TYPE, edx); | 5180 __ CmpObjectType(eax, SYMBOL_TYPE, edx); |
5181 Split(equal, if_true, if_false, fall_through); | 5181 Split(equal, if_true, if_false, fall_through); |
| 5182 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5183 __ JumpIfSmi(eax, if_false); |
| 5184 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx); |
| 5185 Split(equal, if_true, if_false, fall_through); |
5182 } else if (String::Equals(check, factory->boolean_string())) { | 5186 } else if (String::Equals(check, factory->boolean_string())) { |
5183 __ cmp(eax, isolate()->factory()->true_value()); | 5187 __ cmp(eax, isolate()->factory()->true_value()); |
5184 __ j(equal, if_true); | 5188 __ j(equal, if_true); |
5185 __ cmp(eax, isolate()->factory()->false_value()); | 5189 __ cmp(eax, isolate()->factory()->false_value()); |
5186 Split(equal, if_true, if_false, fall_through); | 5190 Split(equal, if_true, if_false, fall_through); |
5187 } else if (String::Equals(check, factory->undefined_string())) { | 5191 } else if (String::Equals(check, factory->undefined_string())) { |
5188 __ cmp(eax, isolate()->factory()->undefined_value()); | 5192 __ cmp(eax, isolate()->factory()->undefined_value()); |
5189 __ j(equal, if_true); | 5193 __ j(equal, if_true); |
5190 __ JumpIfSmi(eax, if_false); | 5194 __ JumpIfSmi(eax, if_false); |
5191 // Check for undetectable objects => true. | 5195 // Check for undetectable objects => true. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5509 Assembler::target_address_at(call_target_address, | 5513 Assembler::target_address_at(call_target_address, |
5510 unoptimized_code)); | 5514 unoptimized_code)); |
5511 return OSR_AFTER_STACK_CHECK; | 5515 return OSR_AFTER_STACK_CHECK; |
5512 } | 5516 } |
5513 | 5517 |
5514 | 5518 |
5515 } // namespace internal | 5519 } // namespace internal |
5516 } // namespace v8 | 5520 } // namespace v8 |
5517 | 5521 |
5518 #endif // V8_TARGET_ARCH_IA32 | 5522 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |