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

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

Issue 134333011: Clean up some A64 specific code in common code that was introduced by A64 merge (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | src/a64/simulator-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 type_ = X_ARG; 247 type_ = X_ARG;
248 } 248 }
249 249
250 explicit CallArgument(double argument) { 250 explicit CallArgument(double argument) {
251 ASSERT(sizeof(argument) == sizeof(bits_)); 251 ASSERT(sizeof(argument) == sizeof(bits_));
252 memcpy(&bits_, &argument, sizeof(argument)); 252 memcpy(&bits_, &argument, sizeof(argument));
253 type_ = D_ARG; 253 type_ = D_ARG;
254 } 254 }
255 255
256 explicit CallArgument(float argument) { 256 explicit CallArgument(float argument) {
257 TODO_UNIMPLEMENTED("CallArgument(float) is untested."); 257 // TODO(all): CallArgument(float) is untested, remove this check once
258 // tested.
259 UNIMPLEMENTED();
258 // Make the D register a NaN to try to trap errors if the callee expects a 260 // Make the D register a NaN to try to trap errors if the callee expects a
259 // double. If it expects a float, the callee should ignore the top word. 261 // double. If it expects a float, the callee should ignore the top word.
260 ASSERT(sizeof(kFP64SignallingNaN) == sizeof(bits_)); 262 ASSERT(sizeof(kFP64SignallingNaN) == sizeof(bits_));
261 memcpy(&bits_, &kFP64SignallingNaN, sizeof(kFP64SignallingNaN)); 263 memcpy(&bits_, &kFP64SignallingNaN, sizeof(kFP64SignallingNaN));
262 // Write the float payload to the S register. 264 // Write the float payload to the S register.
263 ASSERT(sizeof(argument) <= sizeof(bits_)); 265 ASSERT(sizeof(argument) <= sizeof(bits_));
264 memcpy(&bits_, &argument, sizeof(argument)); 266 memcpy(&bits_, &argument, sizeof(argument));
265 type_ = D_ARG; 267 type_ = D_ARG;
266 } 268 }
267 269
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 static void UnregisterCTryCatch() { 858 static void UnregisterCTryCatch() {
857 Simulator::current(Isolate::Current())->PopAddress(); 859 Simulator::current(Isolate::Current())->PopAddress();
858 } 860 }
859 }; 861 };
860 862
861 #endif // !defined(USE_SIMULATOR) 863 #endif // !defined(USE_SIMULATOR)
862 864
863 } } // namespace v8::internal 865 } } // namespace v8::internal
864 866
865 #endif // V8_A64_SIMULATOR_A64_H_ 867 #endif // V8_A64_SIMULATOR_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/simulator-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698