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

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

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update on store and some optimization on load Created 4 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 // Declares a Simulator for S390 instructions if we are not generating a native 5 // Declares a Simulator for S390 instructions if we are not generating a native
6 // S390 binary. This Simulator allows us to run and debug S390 code generation 6 // S390 binary. This Simulator allows us to run and debug S390 code generation
7 // on regular desktop machines. 7 // on regular desktop machines.
8 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 8 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a S390 hardware platform. 10 // on a S390 hardware platform.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 inline bool isWatchedStop(uint32_t bkpt_code); 275 inline bool isWatchedStop(uint32_t bkpt_code);
276 inline bool isEnabledStop(uint32_t bkpt_code); 276 inline bool isEnabledStop(uint32_t bkpt_code);
277 inline void EnableStop(uint32_t bkpt_code); 277 inline void EnableStop(uint32_t bkpt_code);
278 inline void DisableStop(uint32_t bkpt_code); 278 inline void DisableStop(uint32_t bkpt_code);
279 inline void IncreaseStopCounter(uint32_t bkpt_code); 279 inline void IncreaseStopCounter(uint32_t bkpt_code);
280 void PrintStopInfo(uint32_t code); 280 void PrintStopInfo(uint32_t code);
281 281
282 // Byte Reverse 282 // Byte Reverse
283 inline int16_t ByteReverse(int16_t hword); 283 inline int16_t ByteReverse(int16_t hword);
284 inline int32_t ByteReverse(int32_t word); 284 inline int32_t ByteReverse(int32_t word);
285 inline int64_t ByteReverse(int64_t dword);
285 286
286 // Read and write memory. 287 // Read and write memory.
287 inline uint8_t ReadBU(intptr_t addr); 288 inline uint8_t ReadBU(intptr_t addr);
288 inline int8_t ReadB(intptr_t addr); 289 inline int8_t ReadB(intptr_t addr);
289 inline void WriteB(intptr_t addr, uint8_t value); 290 inline void WriteB(intptr_t addr, uint8_t value);
290 inline void WriteB(intptr_t addr, int8_t value); 291 inline void WriteB(intptr_t addr, int8_t value);
291 292
292 inline uint16_t ReadHU(intptr_t addr, Instruction* instr); 293 inline uint16_t ReadHU(intptr_t addr, Instruction* instr);
293 inline int16_t ReadH(intptr_t addr, Instruction* instr); 294 inline int16_t ReadH(intptr_t addr, Instruction* instr);
294 // Note: Overloaded on the sign of the value. 295 // Note: Overloaded on the sign of the value.
295 inline void WriteH(intptr_t addr, uint16_t value, Instruction* instr); 296 inline void WriteH(intptr_t addr, uint16_t value, Instruction* instr);
296 inline void WriteH(intptr_t addr, int16_t value, Instruction* instr); 297 inline void WriteH(intptr_t addr, int16_t value, Instruction* instr);
297 298
298 inline uint32_t ReadWU(intptr_t addr, Instruction* instr); 299 inline uint32_t ReadWU(intptr_t addr, Instruction* instr);
299 inline int32_t ReadW(intptr_t addr, Instruction* instr); 300 inline int32_t ReadW(intptr_t addr, Instruction* instr);
301 inline int64_t ReadW64(intptr_t addr, Instruction* instr);
300 inline void WriteW(intptr_t addr, uint32_t value, Instruction* instr); 302 inline void WriteW(intptr_t addr, uint32_t value, Instruction* instr);
301 inline void WriteW(intptr_t addr, int32_t value, Instruction* instr); 303 inline void WriteW(intptr_t addr, int32_t value, Instruction* instr);
302 304
303 inline int64_t ReadDW(intptr_t addr); 305 inline int64_t ReadDW(intptr_t addr);
304 inline double ReadDouble(intptr_t addr); 306 inline double ReadDouble(intptr_t addr);
305 inline void WriteDW(intptr_t addr, int64_t value); 307 inline void WriteDW(intptr_t addr, int64_t value);
306 308
307 // S390 309 // S390
308 void Trace(Instruction* instr); 310 void Trace(Instruction* instr);
309 bool DecodeTwoByte(Instruction* instr); 311 bool DecodeTwoByte(Instruction* instr);
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { 1281 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) {
1280 Simulator::current(isolate)->PopAddress(); 1282 Simulator::current(isolate)->PopAddress();
1281 } 1283 }
1282 }; 1284 };
1283 1285
1284 } // namespace internal 1286 } // namespace internal
1285 } // namespace v8 1287 } // namespace v8
1286 1288
1287 #endif // !defined(USE_SIMULATOR) 1289 #endif // !defined(USE_SIMULATOR)
1288 #endif // V8_S390_SIMULATOR_S390_H_ 1290 #endif // V8_S390_SIMULATOR_S390_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698