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