OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2754 __ lw(v0, FieldMemOperand(v0, SharedFunctionInfo::kInstanceClassNameOffset)); | 2754 __ lw(v0, FieldMemOperand(v0, SharedFunctionInfo::kInstanceClassNameOffset)); |
2755 __ Branch(&done); | 2755 __ Branch(&done); |
2756 | 2756 |
2757 // Functions have class 'Function'. | 2757 // Functions have class 'Function'. |
2758 __ bind(&function); | 2758 __ bind(&function); |
2759 __ LoadRoot(v0, Heap::kfunction_class_symbolRootIndex); | 2759 __ LoadRoot(v0, Heap::kfunction_class_symbolRootIndex); |
2760 __ jmp(&done); | 2760 __ jmp(&done); |
2761 | 2761 |
2762 // Objects with a non-function constructor have class 'Object'. | 2762 // Objects with a non-function constructor have class 'Object'. |
2763 __ bind(&non_function_constructor); | 2763 __ bind(&non_function_constructor); |
2764 __ LoadRoot(v0, Heap::kfunction_class_symbolRootIndex); | 2764 __ LoadRoot(v0, Heap::kObject_symbolRootIndex); |
2765 __ jmp(&done); | 2765 __ jmp(&done); |
2766 | 2766 |
2767 // Non-JS objects have class null. | 2767 // Non-JS objects have class null. |
2768 __ bind(&null); | 2768 __ bind(&null); |
2769 __ LoadRoot(v0, Heap::kNullValueRootIndex); | 2769 __ LoadRoot(v0, Heap::kNullValueRootIndex); |
2770 | 2770 |
2771 // All done. | 2771 // All done. |
2772 __ bind(&done); | 2772 __ bind(&done); |
2773 | 2773 |
2774 context()->Plug(v0); | 2774 context()->Plug(v0); |
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4312 __ Addu(at, a1, Operand(masm_->CodeObject())); | 4312 __ Addu(at, a1, Operand(masm_->CodeObject())); |
4313 __ Jump(at); | 4313 __ Jump(at); |
4314 } | 4314 } |
4315 | 4315 |
4316 | 4316 |
4317 #undef __ | 4317 #undef __ |
4318 | 4318 |
4319 } } // namespace v8::internal | 4319 } } // namespace v8::internal |
4320 | 4320 |
4321 #endif // V8_TARGET_ARCH_MIPS | 4321 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |