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

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

Issue 322423003: ARM: add AArch32 support and new vcvt instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/disasm-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 // Declares a Simulator for ARM instructions if we are not generating a native 6 // Declares a Simulator for ARM instructions if we are not generating a native
7 // ARM binary. This Simulator allows us to run and debug ARM code generation on 7 // ARM binary. This Simulator allows us to run and debug ARM code generation on
8 // regular desktop machines. 8 // regular desktop machines.
9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
10 // which will start execution in the Simulator or forwards to the real entry 10 // which will start execution in the Simulator or forwards to the real entry
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 bool addition); 261 bool addition);
262 262
263 inline int GetCarry() { 263 inline int GetCarry() {
264 return c_flag_ ? 1 : 0; 264 return c_flag_ ? 1 : 0;
265 } 265 }
266 266
267 // Support for VFP. 267 // Support for VFP.
268 void Compute_FPSCR_Flags(double val1, double val2); 268 void Compute_FPSCR_Flags(double val1, double val2);
269 void Copy_FPSCR_to_APSR(); 269 void Copy_FPSCR_to_APSR();
270 inline double canonicalizeNaN(double value); 270 inline double canonicalizeNaN(double value);
271 double FPRoundInt(double value, VCVTRoundingMode rounding_mode);
272 int32_t FPToInt32(double value, VCVTRoundingMode rounding_mode);
273 uint32_t FPToUInt32(double value, VCVTRoundingMode rounding_mode);
271 274
272 // Helper functions to decode common "addressing" modes 275 // Helper functions to decode common "addressing" modes
273 int32_t GetShiftRm(Instruction* instr, bool* carry_out); 276 int32_t GetShiftRm(Instruction* instr, bool* carry_out);
274 int32_t GetImm(Instruction* instr, bool* carry_out); 277 int32_t GetImm(Instruction* instr, bool* carry_out);
275 int32_t ProcessPU(Instruction* instr, 278 int32_t ProcessPU(Instruction* instr,
276 int num_regs, 279 int num_regs,
277 int operand_size, 280 int operand_size,
278 intptr_t* start_address, 281 intptr_t* start_address,
279 intptr_t* end_address); 282 intptr_t* end_address);
280 void HandleRList(Instruction* instr, bool load); 283 void HandleRList(Instruction* instr, bool load);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 456
454 static inline void UnregisterCTryCatch() { 457 static inline void UnregisterCTryCatch() {
455 Simulator::current(Isolate::Current())->PopAddress(); 458 Simulator::current(Isolate::Current())->PopAddress();
456 } 459 }
457 }; 460 };
458 461
459 } } // namespace v8::internal 462 } } // namespace v8::internal
460 463
461 #endif // !defined(USE_SIMULATOR) 464 #endif // !defined(USE_SIMULATOR)
462 #endif // V8_ARM_SIMULATOR_ARM_H_ 465 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698