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

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

Issue 106863002: Fix compilation with clang (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/arm/stub-cache-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 __ b(&done); 826 __ b(&done);
827 827
828 __ bind(&infinity); 828 __ bind(&infinity);
829 __ vldr(result, ExpConstant(2, temp3)); 829 __ vldr(result, ExpConstant(2, temp3));
830 830
831 __ bind(&done); 831 __ bind(&done);
832 } 832 }
833 833
834 #undef __ 834 #undef __
835 835
836 #ifdef DEBUG
836 // add(r0, pc, Operand(-8)) 837 // add(r0, pc, Operand(-8))
837 static const uint32_t kCodeAgePatchFirstInstruction = 0xe24f0008; 838 static const uint32_t kCodeAgePatchFirstInstruction = 0xe24f0008;
839 #endif
838 840
839 static byte* GetNoCodeAgeSequence(uint32_t* length) { 841 static byte* GetNoCodeAgeSequence(uint32_t* length) {
840 // The sequence of instructions that is patched out for aging code is the 842 // The sequence of instructions that is patched out for aging code is the
841 // following boilerplate stack-building prologue that is found in FUNCTIONS 843 // following boilerplate stack-building prologue that is found in FUNCTIONS
842 static bool initialized = false; 844 static bool initialized = false;
843 static uint32_t sequence[kNoCodeAgeSequenceLength]; 845 static uint32_t sequence[kNoCodeAgeSequenceLength];
844 byte* byte_sequence = reinterpret_cast<byte*>(sequence); 846 byte* byte_sequence = reinterpret_cast<byte*>(sequence);
845 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize; 847 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize;
846 if (!initialized) { 848 if (!initialized) {
847 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength); 849 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 patcher.masm()->add(r0, pc, Operand(-8)); 897 patcher.masm()->add(r0, pc, Operand(-8));
896 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 898 patcher.masm()->ldr(pc, MemOperand(pc, -4));
897 patcher.masm()->emit_code_stub_address(stub); 899 patcher.masm()->emit_code_stub_address(stub);
898 } 900 }
899 } 901 }
900 902
901 903
902 } } // namespace v8::internal 904 } } // namespace v8::internal
903 905
904 #endif // V8_TARGET_ARCH_ARM 906 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698