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

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

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sync and Rebase Created 6 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/code-stubs-arm.cc ('k') | src/arm/frames-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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 static byte* GetNoCodeAgeSequence(uint32_t* length) { 832 static byte* GetNoCodeAgeSequence(uint32_t* length) {
833 // The sequence of instructions that is patched out for aging code is the 833 // The sequence of instructions that is patched out for aging code is the
834 // following boilerplate stack-building prologue that is found in FUNCTIONS 834 // following boilerplate stack-building prologue that is found in FUNCTIONS
835 static bool initialized = false; 835 static bool initialized = false;
836 static uint32_t sequence[kNoCodeAgeSequenceLength]; 836 static uint32_t sequence[kNoCodeAgeSequenceLength];
837 byte* byte_sequence = reinterpret_cast<byte*>(sequence); 837 byte* byte_sequence = reinterpret_cast<byte*>(sequence);
838 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize; 838 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize;
839 if (!initialized) { 839 if (!initialized) {
840 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength); 840 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength);
841 PredictableCodeSizeScope scope(patcher.masm(), *length); 841 PredictableCodeSizeScope scope(patcher.masm(), *length);
842 patcher.masm()->stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); 842 patcher.masm()->PushFixedFrame(r1);
843 patcher.masm()->nop(ip.code()); 843 patcher.masm()->nop(ip.code());
844 patcher.masm()->add(fp, sp, 844 patcher.masm()->add(fp, sp,
845 Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 845 Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
846 initialized = true; 846 initialized = true;
847 } 847 }
848 return byte_sequence; 848 return byte_sequence;
849 } 849 }
850 850
851 851
852 bool Code::IsYoungSequence(byte* sequence) { 852 bool Code::IsYoungSequence(byte* sequence) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 patcher.masm()->add(r0, pc, Operand(-8)); 888 patcher.masm()->add(r0, pc, Operand(-8));
889 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 889 patcher.masm()->ldr(pc, MemOperand(pc, -4));
890 patcher.masm()->emit_code_stub_address(stub); 890 patcher.masm()->emit_code_stub_address(stub);
891 } 891 }
892 } 892 }
893 893
894 894
895 } } // namespace v8::internal 895 } } // namespace v8::internal
896 896
897 #endif // V8_TARGET_ARCH_ARM 897 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698