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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 6471023: ARM: Add shift operations to the type recording binary operation stub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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 | « src/arm/macro-assembler-arm.h ('k') | 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 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1766 int num_least_bits) { 1766 int num_least_bits) {
1767 if (CpuFeatures::IsSupported(ARMv7)) { 1767 if (CpuFeatures::IsSupported(ARMv7)) {
1768 ubfx(dst, src, kSmiTagSize, num_least_bits); 1768 ubfx(dst, src, kSmiTagSize, num_least_bits);
1769 } else { 1769 } else {
1770 mov(dst, Operand(src, ASR, kSmiTagSize)); 1770 mov(dst, Operand(src, ASR, kSmiTagSize));
1771 and_(dst, dst, Operand((1 << num_least_bits) - 1)); 1771 and_(dst, dst, Operand((1 << num_least_bits) - 1));
1772 } 1772 }
1773 } 1773 }
1774 1774
1775 1775
1776 void MacroAssembler::GetLeastBitsFromInt32(Register dst,
1777 Register src,
1778 int num_least_bits) {
1779 and_(dst, src, Operand((1 << num_least_bits) - 1));
1780 }
1781
1782
1776 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) { 1783 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) {
1777 // All parameters are on the stack. r0 has the return value after call. 1784 // All parameters are on the stack. r0 has the return value after call.
1778 1785
1779 // If the expected number of arguments of the runtime function is 1786 // If the expected number of arguments of the runtime function is
1780 // constant, we check that the actual number of arguments match the 1787 // constant, we check that the actual number of arguments match the
1781 // expectation. 1788 // expectation.
1782 if (f->nargs >= 0 && f->nargs != num_arguments) { 1789 if (f->nargs >= 0 && f->nargs != num_arguments) {
1783 IllegalOperation(num_arguments); 1790 IllegalOperation(num_arguments);
1784 return; 1791 return;
1785 } 1792 }
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 void CodePatcher::EmitCondition(Condition cond) { 2423 void CodePatcher::EmitCondition(Condition cond) {
2417 Instr instr = Assembler::instr_at(masm_.pc_); 2424 Instr instr = Assembler::instr_at(masm_.pc_);
2418 instr = (instr & ~kCondMask) | cond; 2425 instr = (instr & ~kCondMask) | cond;
2419 masm_.emit(instr); 2426 masm_.emit(instr);
2420 } 2427 }
2421 2428
2422 2429
2423 } } // namespace v8::internal 2430 } } // namespace v8::internal
2424 2431
2425 #endif // V8_TARGET_ARCH_ARM 2432 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698