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

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

Issue 277913002: Presubmit checks recover. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebasing Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/constants-arm.h ('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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void SetVFlag(bool val); 258 void SetVFlag(bool val);
259 bool CarryFrom(int32_t left, int32_t right, int32_t carry = 0); 259 bool CarryFrom(int32_t left, int32_t right, int32_t carry = 0);
260 bool BorrowFrom(int32_t left, int32_t right); 260 bool BorrowFrom(int32_t left, int32_t right);
261 bool OverflowFrom(int32_t alu_out, 261 bool OverflowFrom(int32_t alu_out,
262 int32_t left, 262 int32_t left,
263 int32_t right, 263 int32_t right,
264 bool addition); 264 bool addition);
265 265
266 inline int GetCarry() { 266 inline int GetCarry() {
267 return c_flag_ ? 1 : 0; 267 return c_flag_ ? 1 : 0;
268 }; 268 }
269 269
270 // Support for VFP. 270 // Support for VFP.
271 void Compute_FPSCR_Flags(double val1, double val2); 271 void Compute_FPSCR_Flags(double val1, double val2);
272 void Copy_FPSCR_to_APSR(); 272 void Copy_FPSCR_to_APSR();
273 inline double canonicalizeNaN(double value); 273 inline double canonicalizeNaN(double value);
274 274
275 // Helper functions to decode common "addressing" modes 275 // Helper functions to decode common "addressing" modes
276 int32_t GetShiftRm(Instruction* instr, bool* carry_out); 276 int32_t GetShiftRm(Instruction* instr, bool* carry_out);
277 int32_t GetImm(Instruction* instr, bool* carry_out); 277 int32_t GetImm(Instruction* instr, bool* carry_out);
278 int32_t ProcessPU(Instruction* instr, 278 int32_t ProcessPU(Instruction* instr,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 static inline void UnregisterCTryCatch() { 461 static inline void UnregisterCTryCatch() {
462 Simulator::current(Isolate::Current())->PopAddress(); 462 Simulator::current(Isolate::Current())->PopAddress();
463 } 463 }
464 }; 464 };
465 465
466 } } // namespace v8::internal 466 } } // namespace v8::internal
467 467
468 #endif // !defined(USE_SIMULATOR) 468 #endif // !defined(USE_SIMULATOR)
469 #endif // V8_ARM_SIMULATOR_ARM_H_ 469 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698