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 5116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5127 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); | 5127 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); |
5128 __ j(above_equal, if_false); | 5128 __ j(above_equal, if_false); |
5129 // Check for undetectable objects => false. | 5129 // Check for undetectable objects => false. |
5130 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), | 5130 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), |
5131 1 << Map::kIsUndetectable); | 5131 1 << Map::kIsUndetectable); |
5132 Split(zero, if_true, if_false, fall_through); | 5132 Split(zero, if_true, if_false, fall_through); |
5133 } else if (String::Equals(check, factory->symbol_string())) { | 5133 } else if (String::Equals(check, factory->symbol_string())) { |
5134 __ JumpIfSmi(eax, if_false); | 5134 __ JumpIfSmi(eax, if_false); |
5135 __ CmpObjectType(eax, SYMBOL_TYPE, edx); | 5135 __ CmpObjectType(eax, SYMBOL_TYPE, edx); |
5136 Split(equal, if_true, if_false, fall_through); | 5136 Split(equal, if_true, if_false, fall_through); |
| 5137 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5138 __ JumpIfSmi(eax, if_false); |
| 5139 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx); |
| 5140 Split(equal, if_true, if_false, fall_through); |
5137 } else if (String::Equals(check, factory->boolean_string())) { | 5141 } else if (String::Equals(check, factory->boolean_string())) { |
5138 __ cmp(eax, isolate()->factory()->true_value()); | 5142 __ cmp(eax, isolate()->factory()->true_value()); |
5139 __ j(equal, if_true); | 5143 __ j(equal, if_true); |
5140 __ cmp(eax, isolate()->factory()->false_value()); | 5144 __ cmp(eax, isolate()->factory()->false_value()); |
5141 Split(equal, if_true, if_false, fall_through); | 5145 Split(equal, if_true, if_false, fall_through); |
5142 } else if (String::Equals(check, factory->undefined_string())) { | 5146 } else if (String::Equals(check, factory->undefined_string())) { |
5143 __ cmp(eax, isolate()->factory()->undefined_value()); | 5147 __ cmp(eax, isolate()->factory()->undefined_value()); |
5144 __ j(equal, if_true); | 5148 __ j(equal, if_true); |
5145 __ JumpIfSmi(eax, if_false); | 5149 __ JumpIfSmi(eax, if_false); |
5146 // Check for undetectable objects => true. | 5150 // Check for undetectable objects => true. |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5462 Assembler::target_address_at(call_target_address, | 5466 Assembler::target_address_at(call_target_address, |
5463 unoptimized_code)); | 5467 unoptimized_code)); |
5464 return OSR_AFTER_STACK_CHECK; | 5468 return OSR_AFTER_STACK_CHECK; |
5465 } | 5469 } |
5466 | 5470 |
5467 | 5471 |
5468 } // namespace internal | 5472 } // namespace internal |
5469 } // namespace v8 | 5473 } // namespace v8 |
5470 | 5474 |
5471 #endif // V8_TARGET_ARCH_IA32 | 5475 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |