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

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

Issue 3838003: Change the StackGuard runtime function to take no arguments. (Closed)
Patch Set: Fix ARM bug. Created 10 years, 2 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
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 case TranscendentalCache::SIN: return Runtime::kMath_sin; 2290 case TranscendentalCache::SIN: return Runtime::kMath_sin;
2291 case TranscendentalCache::COS: return Runtime::kMath_cos; 2291 case TranscendentalCache::COS: return Runtime::kMath_cos;
2292 default: 2292 default:
2293 UNIMPLEMENTED(); 2293 UNIMPLEMENTED();
2294 return Runtime::kAbort; 2294 return Runtime::kAbort;
2295 } 2295 }
2296 } 2296 }
2297 2297
2298 2298
2299 void StackCheckStub::Generate(MacroAssembler* masm) { 2299 void StackCheckStub::Generate(MacroAssembler* masm) {
2300 // Do tail-call to runtime routine. Runtime routines expect at least one 2300 __ TailCallRuntime(Runtime::kStackGuard, 0, 1);
2301 // argument, so give it a Smi.
2302 __ mov(r0, Operand(Smi::FromInt(0)));
2303 __ push(r0);
2304 __ TailCallRuntime(Runtime::kStackGuard, 1, 1);
2305
2306 __ Ret();
2307 } 2301 }
2308 2302
2309 2303
2310 void GenericUnaryOpStub::Generate(MacroAssembler* masm) { 2304 void GenericUnaryOpStub::Generate(MacroAssembler* masm) {
2311 Label slow, done; 2305 Label slow, done;
2312 2306
2313 Register heap_number_map = r6; 2307 Register heap_number_map = r6;
2314 __ LoadRoot(heap_number_map, Heap::kHeapNumberMapRootIndex); 2308 __ LoadRoot(heap_number_map, Heap::kHeapNumberMapRootIndex);
2315 2309
2316 if (op_ == Token::SUB) { 2310 if (op_ == Token::SUB) {
(...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after
4724 __ bind(&string_add_runtime); 4718 __ bind(&string_add_runtime);
4725 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 4719 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
4726 } 4720 }
4727 4721
4728 4722
4729 #undef __ 4723 #undef __
4730 4724
4731 } } // namespace v8::internal 4725 } } // namespace v8::internal
4732 4726
4733 #endif // V8_TARGET_ARCH_ARM 4727 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698