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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 9123031: Spellling mistakes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/api.cc ('k') | src/compiler.cc » ('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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 __ cmp(int_scratch, Operand::Zero()); 710 __ cmp(int_scratch, Operand::Zero());
711 __ mov(dst2, int_scratch); 711 __ mov(dst2, int_scratch);
712 __ mov(dst1, int_scratch); 712 __ mov(dst1, int_scratch);
713 __ b(eq, &done); 713 __ b(eq, &done);
714 714
715 // Preload the sign of the value. 715 // Preload the sign of the value.
716 __ and_(dst2, int_scratch, Operand(HeapNumber::kSignMask), SetCC); 716 __ and_(dst2, int_scratch, Operand(HeapNumber::kSignMask), SetCC);
717 // Get the absolute value of the object (as an unsigned integer). 717 // Get the absolute value of the object (as an unsigned integer).
718 __ rsb(int_scratch, int_scratch, Operand::Zero(), SetCC, mi); 718 __ rsb(int_scratch, int_scratch, Operand::Zero(), SetCC, mi);
719 719
720 // Get mantisssa[51:20]. 720 // Get mantissa[51:20].
721 721
722 // Get the position of the first set bit. 722 // Get the position of the first set bit.
723 __ CountLeadingZeros(dst1, int_scratch, scratch2); 723 __ CountLeadingZeros(dst1, int_scratch, scratch2);
724 __ rsb(dst1, dst1, Operand(31)); 724 __ rsb(dst1, dst1, Operand(31));
725 725
726 // Set the exponent. 726 // Set the exponent.
727 __ add(scratch2, dst1, Operand(HeapNumber::kExponentBias)); 727 __ add(scratch2, dst1, Operand(HeapNumber::kExponentBias));
728 __ Bfi(dst2, scratch2, scratch2, 728 __ Bfi(dst2, scratch2, scratch2,
729 HeapNumber::kExponentShift, HeapNumber::kExponentBits); 729 HeapNumber::kExponentShift, HeapNumber::kExponentBits);
730 730
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 __ cmp(tmp, Operand(30)); 944 __ cmp(tmp, Operand(30));
945 __ b(gt, not_int32); 945 __ b(gt, not_int32);
946 // - Bits [21:0] in the mantissa are not null. 946 // - Bits [21:0] in the mantissa are not null.
947 __ tst(src2, Operand(0x3fffff)); 947 __ tst(src2, Operand(0x3fffff));
948 __ b(ne, not_int32); 948 __ b(ne, not_int32);
949 949
950 // Otherwise the exponent needs to be big enough to shift left all the 950 // Otherwise the exponent needs to be big enough to shift left all the
951 // non zero bits left. So we need the (30 - exponent) last bits of the 951 // non zero bits left. So we need the (30 - exponent) last bits of the
952 // 31 higher bits of the mantissa to be null. 952 // 31 higher bits of the mantissa to be null.
953 // Because bits [21:0] are null, we can check instead that the 953 // Because bits [21:0] are null, we can check instead that the
954 // (32 - exponent) last bits of the 32 higher bits of the mantisssa are null. 954 // (32 - exponent) last bits of the 32 higher bits of the mantissa are null.
955 955
956 // Get the 32 higher bits of the mantissa in dst. 956 // Get the 32 higher bits of the mantissa in dst.
957 __ Ubfx(dst, 957 __ Ubfx(dst,
958 src2, 958 src2,
959 HeapNumber::kMantissaBitsInTopWord, 959 HeapNumber::kMantissaBitsInTopWord,
960 32 - HeapNumber::kMantissaBitsInTopWord); 960 32 - HeapNumber::kMantissaBitsInTopWord);
961 __ orr(dst, 961 __ orr(dst,
962 dst, 962 dst,
963 Operand(src1, LSL, HeapNumber::kNonMantissaBitsInTopWord)); 963 Operand(src1, LSL, HeapNumber::kNonMantissaBitsInTopWord));
964 964
(...skipping 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after
4503 4503
4504 __ bind(&arguments_test); 4504 __ bind(&arguments_test);
4505 __ cmp(r9, Operand(r2)); 4505 __ cmp(r9, Operand(r2));
4506 __ b(lt, &arguments_loop); 4506 __ b(lt, &arguments_loop);
4507 4507
4508 // Return and remove the on-stack parameters. 4508 // Return and remove the on-stack parameters.
4509 __ add(sp, sp, Operand(3 * kPointerSize)); 4509 __ add(sp, sp, Operand(3 * kPointerSize));
4510 __ Ret(); 4510 __ Ret();
4511 4511
4512 // Do the runtime call to allocate the arguments object. 4512 // Do the runtime call to allocate the arguments object.
4513 // r2 = argument count (taggged) 4513 // r2 = argument count (tagged)
4514 __ bind(&runtime); 4514 __ bind(&runtime);
4515 __ str(r2, MemOperand(sp, 0 * kPointerSize)); // Patch argument count. 4515 __ str(r2, MemOperand(sp, 0 * kPointerSize)); // Patch argument count.
4516 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1); 4516 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1);
4517 } 4517 }
4518 4518
4519 4519
4520 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { 4520 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) {
4521 // sp[0] : number of parameters 4521 // sp[0] : number of parameters
4522 // sp[4] : receiver displacement 4522 // sp[4] : receiver displacement
4523 // sp[8] : function 4523 // sp[8] : function
(...skipping 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after
7314 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10, 7314 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10,
7315 &slow_elements); 7315 &slow_elements);
7316 __ Ret(); 7316 __ Ret();
7317 } 7317 }
7318 7318
7319 #undef __ 7319 #undef __
7320 7320
7321 } } // namespace v8::internal 7321 } } // namespace v8::internal
7322 7322
7323 #endif // V8_TARGET_ARCH_ARM 7323 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698