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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 6626072: Add the possibility for a code stub to be non-movable... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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.h ('k') | src/code-stubs.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4138 matching lines...) Expand 10 before | Expand all | Expand 10 after
4149 FieldMemOperand(heapnumber, HeapNumber::kValueOffset)); 4149 FieldMemOperand(heapnumber, HeapNumber::kValueOffset));
4150 __ mov(r0, heapnumber); 4150 __ mov(r0, heapnumber);
4151 __ Ret(2 * kPointerSize); 4151 __ Ret(2 * kPointerSize);
4152 } 4152 }
4153 4153
4154 __ bind(&call_runtime); 4154 __ bind(&call_runtime);
4155 __ TailCallRuntime(Runtime::kMath_pow_cfunction, 2, 1); 4155 __ TailCallRuntime(Runtime::kMath_pow_cfunction, 2, 1);
4156 } 4156 }
4157 4157
4158 4158
4159 bool CEntryStub::NeedsImmovableCode() {
4160 return true;
4161 }
4162
4163
4159 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { 4164 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) {
4160 __ Throw(r0); 4165 __ Throw(r0);
4161 } 4166 }
4162 4167
4163 4168
4164 void CEntryStub::GenerateThrowUncatchable(MacroAssembler* masm, 4169 void CEntryStub::GenerateThrowUncatchable(MacroAssembler* masm,
4165 UncatchableExceptionType type) { 4170 UncatchableExceptionType type) {
4166 __ ThrowUncatchable(type, r0); 4171 __ ThrowUncatchable(type, r0);
4167 } 4172 }
4168 4173
(...skipping 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after
6977 __ strb(untagged_value, MemOperand(external_pointer, untagged_key)); 6982 __ strb(untagged_value, MemOperand(external_pointer, untagged_key));
6978 __ Ret(); 6983 __ Ret();
6979 } 6984 }
6980 6985
6981 6986
6982 #undef __ 6987 #undef __
6983 6988
6984 } } // namespace v8::internal 6989 } } // namespace v8::internal
6985 6990
6986 #endif // V8_TARGET_ARCH_ARM 6991 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698