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

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

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 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/arm64/lithium-codegen-arm64.cc ('k') | src/arm64/simulator-arm64.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 // 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 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ 5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_
6 #define V8_ARM64_SIMULATOR_ARM64_H_ 6 #define V8_ARM64_SIMULATOR_ARM64_H_
7 7
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 Isolate* isolate); 204 Isolate* isolate);
205 205
206 // A wrapper class that stores an argument for one of the above Call 206 // A wrapper class that stores an argument for one of the above Call
207 // functions. 207 // functions.
208 // 208 //
209 // Only arguments up to 64 bits in size are supported. 209 // Only arguments up to 64 bits in size are supported.
210 class CallArgument { 210 class CallArgument {
211 public: 211 public:
212 template<typename T> 212 template<typename T>
213 explicit CallArgument(T argument) { 213 explicit CallArgument(T argument) {
214 bits_ = 0;
214 ASSERT(sizeof(argument) <= sizeof(bits_)); 215 ASSERT(sizeof(argument) <= sizeof(bits_));
215 memcpy(&bits_, &argument, sizeof(argument)); 216 memcpy(&bits_, &argument, sizeof(argument));
216 type_ = X_ARG; 217 type_ = X_ARG;
217 } 218 }
218 219
219 explicit CallArgument(double argument) { 220 explicit CallArgument(double argument) {
220 ASSERT(sizeof(argument) == sizeof(bits_)); 221 ASSERT(sizeof(argument) == sizeof(bits_));
221 memcpy(&bits_, &argument, sizeof(argument)); 222 memcpy(&bits_, &argument, sizeof(argument));
222 type_ = D_ARG; 223 type_ = D_ARG;
223 } 224 }
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 static void UnregisterCTryCatch() { 829 static void UnregisterCTryCatch() {
829 Simulator::current(Isolate::Current())->PopAddress(); 830 Simulator::current(Isolate::Current())->PopAddress();
830 } 831 }
831 }; 832 };
832 833
833 #endif // !defined(USE_SIMULATOR) 834 #endif // !defined(USE_SIMULATOR)
834 835
835 } } // namespace v8::internal 836 } } // namespace v8::internal
836 837
837 #endif // V8_ARM64_SIMULATOR_ARM64_H_ 838 #endif // V8_ARM64_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698