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

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

Issue 5437002: Add generated code to calculate Math.log and to search Transcendental cache f... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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/arm/codegen-arm.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 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 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 __ bind(&runtime_call); 2283 __ bind(&runtime_call);
2284 __ TailCallExternalReference(ExternalReference(RuntimeFunction()), 1, 1); 2284 __ TailCallExternalReference(ExternalReference(RuntimeFunction()), 1, 1);
2285 } 2285 }
2286 2286
2287 2287
2288 Runtime::FunctionId TranscendentalCacheStub::RuntimeFunction() { 2288 Runtime::FunctionId TranscendentalCacheStub::RuntimeFunction() {
2289 switch (type_) { 2289 switch (type_) {
2290 // Add more cases when necessary. 2290 // Add more cases when necessary.
2291 case TranscendentalCache::SIN: return Runtime::kMath_sin; 2291 case TranscendentalCache::SIN: return Runtime::kMath_sin;
2292 case TranscendentalCache::COS: return Runtime::kMath_cos; 2292 case TranscendentalCache::COS: return Runtime::kMath_cos;
2293 case TranscendentalCache::LOG: return Runtime::kMath_log;
2293 default: 2294 default:
2294 UNIMPLEMENTED(); 2295 UNIMPLEMENTED();
2295 return Runtime::kAbort; 2296 return Runtime::kAbort;
2296 } 2297 }
2297 } 2298 }
2298 2299
2299 2300
2300 void StackCheckStub::Generate(MacroAssembler* masm) { 2301 void StackCheckStub::Generate(MacroAssembler* masm) {
2301 __ TailCallRuntime(Runtime::kStackGuard, 0, 1); 2302 __ TailCallRuntime(Runtime::kStackGuard, 0, 1);
2302 } 2303 }
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after
4719 __ bind(&string_add_runtime); 4720 __ bind(&string_add_runtime);
4720 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 4721 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
4721 } 4722 }
4722 4723
4723 4724
4724 #undef __ 4725 #undef __
4725 4726
4726 } } // namespace v8::internal 4727 } } // namespace v8::internal
4727 4728
4728 #endif // V8_TARGET_ARCH_ARM 4729 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698