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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 5182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5193 // Check for undetectable objects => false. | 5193 // Check for undetectable objects => false. |
5194 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); | 5194 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); |
5195 __ b(ge, if_false); | 5195 __ b(ge, if_false); |
5196 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); | 5196 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
5197 __ tst(r1, Operand(1 << Map::kIsUndetectable)); | 5197 __ tst(r1, Operand(1 << Map::kIsUndetectable)); |
5198 Split(eq, if_true, if_false, fall_through); | 5198 Split(eq, if_true, if_false, fall_through); |
5199 } else if (String::Equals(check, factory->symbol_string())) { | 5199 } else if (String::Equals(check, factory->symbol_string())) { |
5200 __ JumpIfSmi(r0, if_false); | 5200 __ JumpIfSmi(r0, if_false); |
5201 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); | 5201 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); |
5202 Split(eq, if_true, if_false, fall_through); | 5202 Split(eq, if_true, if_false, fall_through); |
| 5203 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5204 __ JumpIfSmi(r0, if_false); |
| 5205 __ CompareObjectType(r0, r0, r1, FLOAT32X4_TYPE); |
| 5206 Split(eq, if_true, if_false, fall_through); |
5203 } else if (String::Equals(check, factory->boolean_string())) { | 5207 } else if (String::Equals(check, factory->boolean_string())) { |
5204 __ CompareRoot(r0, Heap::kTrueValueRootIndex); | 5208 __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
5205 __ b(eq, if_true); | 5209 __ b(eq, if_true); |
5206 __ CompareRoot(r0, Heap::kFalseValueRootIndex); | 5210 __ CompareRoot(r0, Heap::kFalseValueRootIndex); |
5207 Split(eq, if_true, if_false, fall_through); | 5211 Split(eq, if_true, if_false, fall_through); |
5208 } else if (String::Equals(check, factory->undefined_string())) { | 5212 } else if (String::Equals(check, factory->undefined_string())) { |
5209 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); | 5213 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); |
5210 __ b(eq, if_true); | 5214 __ b(eq, if_true); |
5211 __ JumpIfSmi(r0, if_false); | 5215 __ JumpIfSmi(r0, if_false); |
5212 // Check for undetectable objects => true. | 5216 // Check for undetectable objects => true. |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5592 DCHECK(interrupt_address == | 5596 DCHECK(interrupt_address == |
5593 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5597 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5594 return OSR_AFTER_STACK_CHECK; | 5598 return OSR_AFTER_STACK_CHECK; |
5595 } | 5599 } |
5596 | 5600 |
5597 | 5601 |
5598 } // namespace internal | 5602 } // namespace internal |
5599 } // namespace v8 | 5603 } // namespace v8 |
5600 | 5604 |
5601 #endif // V8_TARGET_ARCH_ARM | 5605 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |