| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 __ CompareObjectType(type, scratch, scratch, FUNCTION_TEMPLATE_INFO_TYPE); | 1462 __ CompareObjectType(type, scratch, scratch, FUNCTION_TEMPLATE_INFO_TYPE); |
| 1463 __ bne(&next_prototype); | 1463 __ bne(&next_prototype); |
| 1464 | 1464 |
| 1465 // Otherwise load the parent function template and iterate. | 1465 // Otherwise load the parent function template and iterate. |
| 1466 __ LoadP(type, | 1466 __ LoadP(type, |
| 1467 FieldMemOperand(type, FunctionTemplateInfo::kParentTemplateOffset)); | 1467 FieldMemOperand(type, FunctionTemplateInfo::kParentTemplateOffset)); |
| 1468 __ b(&function_template_loop); | 1468 __ b(&function_template_loop); |
| 1469 | 1469 |
| 1470 // Load the next prototype. | 1470 // Load the next prototype. |
| 1471 __ bind(&next_prototype); | 1471 __ bind(&next_prototype); |
| 1472 __ lwz(scratch, FieldMemOperand(map, Map::kBitField3Offset)); |
| 1473 __ DecodeField<Map::HasHiddenPrototype>(scratch, SetRC); |
| 1474 __ beq(receiver_check_failed, cr0); |
| 1475 |
| 1472 __ LoadP(receiver, FieldMemOperand(map, Map::kPrototypeOffset)); | 1476 __ LoadP(receiver, FieldMemOperand(map, Map::kPrototypeOffset)); |
| 1473 // End if the prototype is null or not hidden. | |
| 1474 __ JumpIfRoot(receiver, Heap::kNullValueRootIndex, receiver_check_failed); | |
| 1475 __ LoadP(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 1477 __ LoadP(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
| 1476 __ lwz(scratch, FieldMemOperand(map, Map::kBitField3Offset)); | |
| 1477 __ DecodeField<Map::IsHiddenPrototype>(scratch, SetRC); | |
| 1478 __ beq(receiver_check_failed, cr0); | |
| 1479 // Iterate. | 1478 // Iterate. |
| 1480 __ b(&prototype_loop_start); | 1479 __ b(&prototype_loop_start); |
| 1481 | 1480 |
| 1482 __ bind(&receiver_check_passed); | 1481 __ bind(&receiver_check_passed); |
| 1483 } | 1482 } |
| 1484 | 1483 |
| 1485 | 1484 |
| 1486 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { | 1485 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { |
| 1487 // ----------- S t a t e ------------- | 1486 // ----------- S t a t e ------------- |
| 1488 // -- r3 : number of arguments excluding receiver | 1487 // -- r3 : number of arguments excluding receiver |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2755 __ bkpt(0); | 2754 __ bkpt(0); |
| 2756 } | 2755 } |
| 2757 } | 2756 } |
| 2758 | 2757 |
| 2759 | 2758 |
| 2760 #undef __ | 2759 #undef __ |
| 2761 } // namespace internal | 2760 } // namespace internal |
| 2762 } // namespace v8 | 2761 } // namespace v8 |
| 2763 | 2762 |
| 2764 #endif // V8_TARGET_ARCH_PPC | 2763 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |