| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 __ GetObjectType(type, scratch, scratch); | 1456 __ GetObjectType(type, scratch, scratch); |
| 1457 __ Branch(&next_prototype, ne, scratch, Operand(FUNCTION_TEMPLATE_INFO_TYPE)); | 1457 __ Branch(&next_prototype, ne, scratch, Operand(FUNCTION_TEMPLATE_INFO_TYPE)); |
| 1458 | 1458 |
| 1459 // Otherwise load the parent function template and iterate. | 1459 // Otherwise load the parent function template and iterate. |
| 1460 __ ld(type, | 1460 __ ld(type, |
| 1461 FieldMemOperand(type, FunctionTemplateInfo::kParentTemplateOffset)); | 1461 FieldMemOperand(type, FunctionTemplateInfo::kParentTemplateOffset)); |
| 1462 __ Branch(&function_template_loop); | 1462 __ Branch(&function_template_loop); |
| 1463 | 1463 |
| 1464 // Load the next prototype. | 1464 // Load the next prototype. |
| 1465 __ bind(&next_prototype); | 1465 __ bind(&next_prototype); |
| 1466 __ lwu(scratch, FieldMemOperand(map, Map::kBitField3Offset)); |
| 1467 __ DecodeField<Map::HasHiddenPrototype>(scratch); |
| 1468 __ Branch(receiver_check_failed, eq, scratch, Operand(zero_reg)); |
| 1469 |
| 1466 __ ld(receiver, FieldMemOperand(map, Map::kPrototypeOffset)); | 1470 __ ld(receiver, FieldMemOperand(map, Map::kPrototypeOffset)); |
| 1467 // End if the prototype is null or not hidden. | |
| 1468 __ JumpIfRoot(receiver, Heap::kNullValueRootIndex, receiver_check_failed); | |
| 1469 __ ld(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 1471 __ ld(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
| 1470 __ lwu(scratch, FieldMemOperand(map, Map::kBitField3Offset)); | |
| 1471 __ DecodeField<Map::IsHiddenPrototype>(scratch); | |
| 1472 __ Branch(receiver_check_failed, eq, scratch, Operand(zero_reg)); | |
| 1473 // Iterate. | 1472 // Iterate. |
| 1474 __ Branch(&prototype_loop_start); | 1473 __ Branch(&prototype_loop_start); |
| 1475 | 1474 |
| 1476 __ bind(&receiver_check_passed); | 1475 __ bind(&receiver_check_passed); |
| 1477 } | 1476 } |
| 1478 | 1477 |
| 1479 | 1478 |
| 1480 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { | 1479 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { |
| 1481 // ----------- S t a t e ------------- | 1480 // ----------- S t a t e ------------- |
| 1482 // -- a0 : number of arguments excluding receiver | 1481 // -- a0 : number of arguments excluding receiver |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 } | 2757 } |
| 2759 } | 2758 } |
| 2760 | 2759 |
| 2761 | 2760 |
| 2762 #undef __ | 2761 #undef __ |
| 2763 | 2762 |
| 2764 } // namespace internal | 2763 } // namespace internal |
| 2765 } // namespace v8 | 2764 } // namespace v8 |
| 2766 | 2765 |
| 2767 #endif // V8_TARGET_ARCH_MIPS64 | 2766 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |