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