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

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

Issue 12314012: Ensure deopt entries have no relocation information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to MIPS. Created 7 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 | « no previous file | src/assembler.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 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (masm.use_eabi_hardfloat()) { 94 if (masm.use_eabi_hardfloat()) {
95 __ vmov(d0, result); 95 __ vmov(d0, result);
96 } else { 96 } else {
97 __ vmov(r0, r1, result); 97 __ vmov(r0, r1, result);
98 } 98 }
99 __ Ret(); 99 __ Ret();
100 } 100 }
101 101
102 CodeDesc desc; 102 CodeDesc desc;
103 masm.GetCode(&desc); 103 masm.GetCode(&desc);
104 ASSERT(!RelocInfo::RequiresRelocation(desc));
104 105
105 CPU::FlushICache(buffer, actual_size); 106 CPU::FlushICache(buffer, actual_size);
106 OS::ProtectCode(buffer, actual_size); 107 OS::ProtectCode(buffer, actual_size);
107 108
108 #if !defined(USE_SIMULATOR) 109 #if !defined(USE_SIMULATOR)
109 return FUNCTION_CAST<UnaryMathFunction>(buffer); 110 return FUNCTION_CAST<UnaryMathFunction>(buffer);
110 #else 111 #else
111 fast_exp_arm_machine_code = buffer; 112 fast_exp_arm_machine_code = buffer;
112 return &fast_exp_simulator; 113 return &fast_exp_simulator;
113 #endif 114 #endif
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 patcher.masm()->add(r0, pc, Operand(-8)); 699 patcher.masm()->add(r0, pc, Operand(-8));
699 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 700 patcher.masm()->ldr(pc, MemOperand(pc, -4));
700 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 701 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
701 } 702 }
702 } 703 }
703 704
704 705
705 } } // namespace v8::internal 706 } } // namespace v8::internal
706 707
707 #endif // V8_TARGET_ARCH_ARM 708 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698