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 5222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5233 // Check for undetectable objects => false. | 5233 // Check for undetectable objects => false. |
5234 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); | 5234 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); |
5235 __ b(ge, if_false); | 5235 __ b(ge, if_false); |
5236 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); | 5236 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
5237 __ tst(r1, Operand(1 << Map::kIsUndetectable)); | 5237 __ tst(r1, Operand(1 << Map::kIsUndetectable)); |
5238 Split(eq, if_true, if_false, fall_through); | 5238 Split(eq, if_true, if_false, fall_through); |
5239 } else if (String::Equals(check, factory->symbol_string())) { | 5239 } else if (String::Equals(check, factory->symbol_string())) { |
5240 __ JumpIfSmi(r0, if_false); | 5240 __ JumpIfSmi(r0, if_false); |
5241 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); | 5241 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); |
5242 Split(eq, if_true, if_false, fall_through); | 5242 Split(eq, if_true, if_false, fall_through); |
| 5243 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5244 __ JumpIfSmi(r0, if_false); |
| 5245 __ CompareObjectType(r0, r0, r1, FLOAT32X4_TYPE); |
| 5246 Split(eq, if_true, if_false, fall_through); |
5243 } else if (String::Equals(check, factory->boolean_string())) { | 5247 } else if (String::Equals(check, factory->boolean_string())) { |
5244 __ CompareRoot(r0, Heap::kTrueValueRootIndex); | 5248 __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
5245 __ b(eq, if_true); | 5249 __ b(eq, if_true); |
5246 __ CompareRoot(r0, Heap::kFalseValueRootIndex); | 5250 __ CompareRoot(r0, Heap::kFalseValueRootIndex); |
5247 Split(eq, if_true, if_false, fall_through); | 5251 Split(eq, if_true, if_false, fall_through); |
5248 } else if (String::Equals(check, factory->undefined_string())) { | 5252 } else if (String::Equals(check, factory->undefined_string())) { |
5249 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); | 5253 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); |
5250 __ b(eq, if_true); | 5254 __ b(eq, if_true); |
5251 __ JumpIfSmi(r0, if_false); | 5255 __ JumpIfSmi(r0, if_false); |
5252 // Check for undetectable objects => true. | 5256 // Check for undetectable objects => true. |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5634 DCHECK(interrupt_address == | 5638 DCHECK(interrupt_address == |
5635 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5639 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5636 return OSR_AFTER_STACK_CHECK; | 5640 return OSR_AFTER_STACK_CHECK; |
5637 } | 5641 } |
5638 | 5642 |
5639 | 5643 |
5640 } // namespace internal | 5644 } // namespace internal |
5641 } // namespace v8 | 5645 } // namespace v8 |
5642 | 5646 |
5643 #endif // V8_TARGET_ARCH_ARM | 5647 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |