OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
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 5250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5261 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE); | 5261 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE); |
5262 __ bge(if_false); | 5262 __ bge(if_false); |
5263 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); | 5263 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); |
5264 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000); | 5264 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000); |
5265 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); | 5265 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); |
5266 Split(eq, if_true, if_false, fall_through, cr0); | 5266 Split(eq, if_true, if_false, fall_through, cr0); |
5267 } else if (String::Equals(check, factory->symbol_string())) { | 5267 } else if (String::Equals(check, factory->symbol_string())) { |
5268 __ JumpIfSmi(r3, if_false); | 5268 __ JumpIfSmi(r3, if_false); |
5269 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); | 5269 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); |
5270 Split(eq, if_true, if_false, fall_through); | 5270 Split(eq, if_true, if_false, fall_through); |
| 5271 } else if (String::Equals(check, factory->float32x4_string())) { |
| 5272 __ JumpIfSmi(r3, if_false); |
| 5273 __ CompareObjectType(r3, r3, r4, FLOAT32X4_TYPE); |
| 5274 Split(eq, if_true, if_false, fall_through); |
5271 } else if (String::Equals(check, factory->boolean_string())) { | 5275 } else if (String::Equals(check, factory->boolean_string())) { |
5272 __ CompareRoot(r3, Heap::kTrueValueRootIndex); | 5276 __ CompareRoot(r3, Heap::kTrueValueRootIndex); |
5273 __ beq(if_true); | 5277 __ beq(if_true); |
5274 __ CompareRoot(r3, Heap::kFalseValueRootIndex); | 5278 __ CompareRoot(r3, Heap::kFalseValueRootIndex); |
5275 Split(eq, if_true, if_false, fall_through); | 5279 Split(eq, if_true, if_false, fall_through); |
5276 } else if (String::Equals(check, factory->undefined_string())) { | 5280 } else if (String::Equals(check, factory->undefined_string())) { |
5277 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); | 5281 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); |
5278 __ beq(if_true); | 5282 __ beq(if_true); |
5279 __ JumpIfSmi(r3, if_false); | 5283 __ JumpIfSmi(r3, if_false); |
5280 // Check for undetectable objects => true. | 5284 // Check for undetectable objects => true. |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5591 return ON_STACK_REPLACEMENT; | 5595 return ON_STACK_REPLACEMENT; |
5592 } | 5596 } |
5593 | 5597 |
5594 DCHECK(interrupt_address == | 5598 DCHECK(interrupt_address == |
5595 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5599 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5596 return OSR_AFTER_STACK_CHECK; | 5600 return OSR_AFTER_STACK_CHECK; |
5597 } | 5601 } |
5598 } // namespace internal | 5602 } // namespace internal |
5599 } // namespace v8 | 5603 } // namespace v8 |
5600 #endif // V8_TARGET_ARCH_PPC | 5604 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |