| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 Register const null = scratch; | 1462 Register const null = scratch; |
| 1463 Register const result = r3; | 1463 Register const result = r3; |
| 1464 | 1464 |
| 1465 Label done, loop, fast_runtime_fallback; | 1465 Label done, loop, fast_runtime_fallback; |
| 1466 __ LoadRoot(result, Heap::kTrueValueRootIndex); | 1466 __ LoadRoot(result, Heap::kTrueValueRootIndex); |
| 1467 __ LoadRoot(null, Heap::kNullValueRootIndex); | 1467 __ LoadRoot(null, Heap::kNullValueRootIndex); |
| 1468 __ bind(&loop); | 1468 __ bind(&loop); |
| 1469 | 1469 |
| 1470 // Check if the object needs to be access checked. | 1470 // Check if the object needs to be access checked. |
| 1471 __ lbz(map_bit_field, FieldMemOperand(object_map, Map::kBitFieldOffset)); | 1471 __ lbz(map_bit_field, FieldMemOperand(object_map, Map::kBitFieldOffset)); |
| 1472 __ TestBit(map_bit_field, Map::kIsCallable, r0); | 1472 __ TestBit(map_bit_field, Map::kIsAccessCheckNeeded, r0); |
| 1473 __ bne(&fast_runtime_fallback, cr0); | 1473 __ bne(&fast_runtime_fallback, cr0); |
| 1474 // Check if the current object is a Proxy. | 1474 // Check if the current object is a Proxy. |
| 1475 __ CompareInstanceType(object_map, object_instance_type, JS_PROXY_TYPE); | 1475 __ CompareInstanceType(object_map, object_instance_type, JS_PROXY_TYPE); |
| 1476 __ beq(&fast_runtime_fallback); | 1476 __ beq(&fast_runtime_fallback); |
| 1477 | 1477 |
| 1478 __ LoadP(object, FieldMemOperand(object_map, Map::kPrototypeOffset)); | 1478 __ LoadP(object, FieldMemOperand(object_map, Map::kPrototypeOffset)); |
| 1479 __ cmp(object, function_prototype); | 1479 __ cmp(object, function_prototype); |
| 1480 __ beq(&done); | 1480 __ beq(&done); |
| 1481 __ cmp(object, null); | 1481 __ cmp(object, null); |
| 1482 __ LoadP(object_map, FieldMemOperand(object, HeapObject::kMapOffset)); | 1482 __ LoadP(object_map, FieldMemOperand(object, HeapObject::kMapOffset)); |
| (...skipping 4164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5647 kStackUnwindSpace, NULL, | 5647 kStackUnwindSpace, NULL, |
| 5648 MemOperand(fp, 6 * kPointerSize), NULL); | 5648 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5649 } | 5649 } |
| 5650 | 5650 |
| 5651 | 5651 |
| 5652 #undef __ | 5652 #undef __ |
| 5653 } // namespace internal | 5653 } // namespace internal |
| 5654 } // namespace v8 | 5654 } // namespace v8 |
| 5655 | 5655 |
| 5656 #endif // V8_TARGET_ARCH_PPC | 5656 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |