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

Side by Side Diff: src/mips/codegen-mips.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 | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (!IsMipsSoftFloatABI) { 94 if (!IsMipsSoftFloatABI) {
95 // Result is already in f0, nothing to do. 95 // Result is already in f0, nothing to do.
96 } else { 96 } else {
97 __ Move(a0, a1, result); 97 __ Move(a0, a1, 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_mips_machine_code = buffer; 112 fast_exp_mips_machine_code = buffer;
112 return &fast_exp_simulator; 113 return &fast_exp_simulator;
113 #endif 114 #endif
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 720 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
720 } 721 }
721 } 722 }
722 723
723 724
724 #undef __ 725 #undef __
725 726
726 } } // namespace v8::internal 727 } } // namespace v8::internal
727 728
728 #endif // V8_TARGET_ARCH_MIPS 729 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698