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

Side by Side Diff: src/arm/simulator-arm.h

Issue 14305029: Accurate function prototypes for native calls from ARM simulator. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Minor formatting change Created 7 years, 7 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 | « src/arm/code-stubs-arm.cc ('k') | src/arm/simulator-arm.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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); 341 static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr);
342 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, 342 static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start,
343 int size); 343 int size);
344 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); 344 static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page);
345 345
346 // Runtime call support. 346 // Runtime call support.
347 static void* RedirectExternalReference( 347 static void* RedirectExternalReference(
348 void* external_function, 348 void* external_function,
349 v8::internal::ExternalReference::Type type); 349 v8::internal::ExternalReference::Type type);
350 350
351 // For use in calls that take double value arguments. 351 // Handle arguments and return value for runtime FP functions.
352 void GetFpArgs(double* x, double* y); 352 void GetFpArgs(double* x, double* y, int32_t* z);
353 void GetFpArgs(double* x);
354 void GetFpArgs(double* x, int32_t* y);
355 void SetFpResult(const double& result); 353 void SetFpResult(const double& result);
356 void TrashCallerSaveRegisters(); 354 void TrashCallerSaveRegisters();
357 355
358 template<class ReturnType, int register_size> 356 template<class ReturnType, int register_size>
359 ReturnType GetFromVFPRegister(int reg_index); 357 ReturnType GetFromVFPRegister(int reg_index);
360 358
361 template<class InputType, int register_size> 359 template<class InputType, int register_size>
362 void SetVFPRegister(int reg_index, const InputType& value); 360 void SetVFPRegister(int reg_index, const InputType& value);
363 361
364 void CallInternal(byte* entry); 362 void CallInternal(byte* entry);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 459
462 static inline void UnregisterCTryCatch() { 460 static inline void UnregisterCTryCatch() {
463 Simulator::current(Isolate::Current())->PopAddress(); 461 Simulator::current(Isolate::Current())->PopAddress();
464 } 462 }
465 }; 463 };
466 464
467 } } // namespace v8::internal 465 } } // namespace v8::internal
468 466
469 #endif // !defined(USE_SIMULATOR) 467 #endif // !defined(USE_SIMULATOR)
470 #endif // V8_ARM_SIMULATOR_ARM_H_ 468 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698