Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 7564003: MIPS: port Fix ClassOf check on ARM. (Closed)
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698