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

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

Issue 10785002: Fix ARM build for gcc 4.2 on mac (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | 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 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 VFPRoundingMode mode = (instr->Bit(7) != 1) ? FPSCR_rounding_mode_ 3044 VFPRoundingMode mode = (instr->Bit(7) != 1) ? FPSCR_rounding_mode_
3045 : RZ; 3045 : RZ;
3046 ASSERT((mode == RM) || (mode == RZ) || (mode == RN)); 3046 ASSERT((mode == RM) || (mode == RZ) || (mode == RN));
3047 3047
3048 bool unsigned_integer = (instr->Bit(16) == 0); 3048 bool unsigned_integer = (instr->Bit(16) == 0);
3049 bool double_precision = (src_precision == kDoublePrecision); 3049 bool double_precision = (src_precision == kDoublePrecision);
3050 3050
3051 double val = double_precision ? get_double_from_d_register(src) 3051 double val = double_precision ? get_double_from_d_register(src)
3052 : get_float_from_s_register(src); 3052 : get_float_from_s_register(src);
3053 3053
3054 int temp = unsigned_integer ? static_cast<uint32_t>(val) 3054 int temp = unsigned_integer ? static_cast<int>(val)
3055 : static_cast<int32_t>(val); 3055 : static_cast<int>(val);
Jakob Kummerow 2012/07/16 15:06:07 I don't think this change is correct, as it effect
3056 3056
3057 inv_op_vfp_flag_ = get_inv_op_vfp_flag(mode, val, unsigned_integer); 3057 inv_op_vfp_flag_ = get_inv_op_vfp_flag(mode, val, unsigned_integer);
3058 3058
3059 double abs_diff = 3059 double abs_diff =
3060 unsigned_integer ? fabs(val - static_cast<uint32_t>(temp)) 3060 unsigned_integer ? fabs(val - static_cast<uint32_t>(temp))
3061 : fabs(val - temp); 3061 : fabs(val - temp);
3062 3062
3063 inexact_vfp_flag_ = (abs_diff != 0); 3063 inexact_vfp_flag_ = (abs_diff != 0);
3064 3064
3065 if (inv_op_vfp_flag_) { 3065 if (inv_op_vfp_flag_) {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 uintptr_t address = *stack_slot; 3426 uintptr_t address = *stack_slot;
3427 set_register(sp, current_sp + sizeof(uintptr_t)); 3427 set_register(sp, current_sp + sizeof(uintptr_t));
3428 return address; 3428 return address;
3429 } 3429 }
3430 3430
3431 } } // namespace v8::internal 3431 } } // namespace v8::internal
3432 3432
3433 #endif // USE_SIMULATOR 3433 #endif // USE_SIMULATOR
3434 3434
3435 #endif // V8_TARGET_ARCH_ARM 3435 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698