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

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

Issue 7472034: Fix ClassOf check on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/v8natives.js » ('j') | 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 2735 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 __ ldr(r0, FieldMemOperand(r0, SharedFunctionInfo::kInstanceClassNameOffset)); 2746 __ ldr(r0, FieldMemOperand(r0, SharedFunctionInfo::kInstanceClassNameOffset));
2747 __ b(&done); 2747 __ b(&done);
2748 2748
2749 // Functions have class 'Function'. 2749 // Functions have class 'Function'.
2750 __ bind(&function); 2750 __ bind(&function);
2751 __ LoadRoot(r0, Heap::kfunction_class_symbolRootIndex); 2751 __ LoadRoot(r0, Heap::kfunction_class_symbolRootIndex);
2752 __ jmp(&done); 2752 __ jmp(&done);
2753 2753
2754 // Objects with a non-function constructor have class 'Object'. 2754 // Objects with a non-function constructor have class 'Object'.
2755 __ bind(&non_function_constructor); 2755 __ bind(&non_function_constructor);
2756 __ LoadRoot(r0, Heap::kfunction_class_symbolRootIndex); 2756 __ LoadRoot(r0, Heap::kObject_symbolRootIndex);
2757 __ jmp(&done); 2757 __ jmp(&done);
2758 2758
2759 // Non-JS objects have class null. 2759 // Non-JS objects have class null.
2760 __ bind(&null); 2760 __ bind(&null);
2761 __ LoadRoot(r0, Heap::kNullValueRootIndex); 2761 __ LoadRoot(r0, Heap::kNullValueRootIndex);
2762 2762
2763 // All done. 2763 // All done.
2764 __ bind(&done); 2764 __ bind(&done);
2765 2765
2766 context()->Plug(r0); 2766 context()->Plug(r0);
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
4292 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4292 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4293 __ add(pc, r1, Operand(masm_->CodeObject())); 4293 __ add(pc, r1, Operand(masm_->CodeObject()));
4294 } 4294 }
4295 4295
4296 4296
4297 #undef __ 4297 #undef __
4298 4298
4299 } } // namespace v8::internal 4299 } } // namespace v8::internal
4300 4300
4301 #endif // V8_TARGET_ARCH_ARM 4301 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698