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 5212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5223 // Check for undetectable objects => false. | 5223 // Check for undetectable objects => false. |
5224 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); | 5224 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); |
5225 __ b(ge, if_false); | 5225 __ b(ge, if_false); |
5226 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); | 5226 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
5227 __ tst(r1, Operand(1 << Map::kIsUndetectable)); | 5227 __ tst(r1, Operand(1 << Map::kIsUndetectable)); |
5228 Split(eq, if_true, if_false, fall_through); | 5228 Split(eq, if_true, if_false, fall_through); |
5229 } else if (String::Equals(check, factory->symbol_string())) { | 5229 } else if (String::Equals(check, factory->symbol_string())) { |
5230 __ JumpIfSmi(r0, if_false); | 5230 __ JumpIfSmi(r0, if_false); |
5231 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); | 5231 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); |
5232 Split(eq, if_true, if_false, fall_through); | 5232 Split(eq, if_true, if_false, fall_through); |
| 5233 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5234 __ JumpIfSmi(r0, if_false); |
| 5235 __ CompareObjectType(r0, r0, r1, FLOAT32X4_TYPE); |
| 5236 Split(eq, if_true, if_false, fall_through); |
5233 } else if (String::Equals(check, factory->boolean_string())) { | 5237 } else if (String::Equals(check, factory->boolean_string())) { |
5234 __ CompareRoot(r0, Heap::kTrueValueRootIndex); | 5238 __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
5235 __ b(eq, if_true); | 5239 __ b(eq, if_true); |
5236 __ CompareRoot(r0, Heap::kFalseValueRootIndex); | 5240 __ CompareRoot(r0, Heap::kFalseValueRootIndex); |
5237 Split(eq, if_true, if_false, fall_through); | 5241 Split(eq, if_true, if_false, fall_through); |
5238 } else if (String::Equals(check, factory->undefined_string())) { | 5242 } else if (String::Equals(check, factory->undefined_string())) { |
5239 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); | 5243 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); |
5240 __ b(eq, if_true); | 5244 __ b(eq, if_true); |
5241 __ JumpIfSmi(r0, if_false); | 5245 __ JumpIfSmi(r0, if_false); |
5242 // Check for undetectable objects => true. | 5246 // Check for undetectable objects => true. |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5622 DCHECK(interrupt_address == | 5626 DCHECK(interrupt_address == |
5623 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5627 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5624 return OSR_AFTER_STACK_CHECK; | 5628 return OSR_AFTER_STACK_CHECK; |
5625 } | 5629 } |
5626 | 5630 |
5627 | 5631 |
5628 } // namespace internal | 5632 } // namespace internal |
5629 } // namespace v8 | 5633 } // namespace v8 |
5630 | 5634 |
5631 #endif // V8_TARGET_ARCH_ARM | 5635 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |