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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 6123007: Fixes needed to compile on gcc-4.4.1 on ARM. It is still necessary... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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/arm/regexp-macro-assembler-arm.cc ('k') | src/heap.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 // Move the result back to general purpose register r0. 1958 // Move the result back to general purpose register r0.
1959 __ vmov(r0, s0); 1959 __ vmov(r0, s0);
1960 // Check if the result fits into a smi. 1960 // Check if the result fits into a smi.
1961 __ add(r1, r0, Operand(0x40000000), SetCC); 1961 __ add(r1, r0, Operand(0x40000000), SetCC);
1962 __ b(&wont_fit_smi, mi); 1962 __ b(&wont_fit_smi, mi);
1963 // Tag the result. 1963 // Tag the result.
1964 STATIC_ASSERT(kSmiTag == 0); 1964 STATIC_ASSERT(kSmiTag == 0);
1965 __ mov(r0, Operand(r0, LSL, kSmiTagSize)); 1965 __ mov(r0, Operand(r0, LSL, kSmiTagSize));
1966 1966
1967 // Check for -0. 1967 // Check for -0.
1968 __ cmp(r0, Operand(0)); 1968 __ cmp(r0, Operand(0, RelocInfo::NONE));
1969 __ b(&restore_fpscr_and_return, ne); 1969 __ b(&restore_fpscr_and_return, ne);
1970 // r5 already holds the HeapNumber exponent. 1970 // r5 already holds the HeapNumber exponent.
1971 __ tst(r5, Operand(HeapNumber::kSignMask)); 1971 __ tst(r5, Operand(HeapNumber::kSignMask));
1972 // If our HeapNumber is negative it was -0, so load its address and return. 1972 // If our HeapNumber is negative it was -0, so load its address and return.
1973 // Else r0 is loaded with 0, so we can also just return. 1973 // Else r0 is loaded with 0, so we can also just return.
1974 __ ldr(r0, MemOperand(sp, 0 * kPointerSize), ne); 1974 __ ldr(r0, MemOperand(sp, 0 * kPointerSize), ne);
1975 1975
1976 __ bind(&restore_fpscr_and_return); 1976 __ bind(&restore_fpscr_and_return);
1977 // Restore FPSCR and return. 1977 // Restore FPSCR and return.
1978 __ vmsr(r3); 1978 __ vmsr(r3);
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3200 // Return the generated code. 3200 // Return the generated code.
3201 return GetCode(); 3201 return GetCode();
3202 } 3202 }
3203 3203
3204 3204
3205 #undef __ 3205 #undef __
3206 3206
3207 } } // namespace v8::internal 3207 } } // namespace v8::internal
3208 3208
3209 #endif // V8_TARGET_ARCH_ARM 3209 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698