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

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

Issue 2522283003: s390: introduce DUMY opcode for special use. (Closed)
Patch Set: make sure not overwrite opcode field Created 4 years 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
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | src/s390/simulator-s390.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 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 int DecodeInstructionOriginal(Instruction* instr); 515 int DecodeInstructionOriginal(Instruction* instr);
516 int DecodeInstruction(Instruction* instr); 516 int DecodeInstruction(Instruction* instr);
517 int Evaluate_Unknown(Instruction* instr); 517 int Evaluate_Unknown(Instruction* instr);
518 #define MAX_NUM_OPCODES (1 << 16) 518 #define MAX_NUM_OPCODES (1 << 16)
519 typedef int (Simulator::*EvaluateFuncType)(Instruction*); 519 typedef int (Simulator::*EvaluateFuncType)(Instruction*);
520 520
521 static EvaluateFuncType EvalTable[MAX_NUM_OPCODES]; 521 static EvaluateFuncType EvalTable[MAX_NUM_OPCODES];
522 static void EvalTableInit(); 522 static void EvalTableInit();
523 523
524 #define EVALUATE(name) int Evaluate_##name(Instruction* instr) 524 #define EVALUATE(name) int Evaluate_##name(Instruction* instr)
525 EVALUATE(DUMY);
525 EVALUATE(BKPT); 526 EVALUATE(BKPT);
526 EVALUATE(SPM); 527 EVALUATE(SPM);
527 EVALUATE(BALR); 528 EVALUATE(BALR);
528 EVALUATE(BCTR); 529 EVALUATE(BCTR);
529 EVALUATE(BCR); 530 EVALUATE(BCR);
530 EVALUATE(SVC); 531 EVALUATE(SVC);
531 EVALUATE(BSM); 532 EVALUATE(BSM);
532 EVALUATE(BASSM); 533 EVALUATE(BASSM);
533 EVALUATE(BASR); 534 EVALUATE(BASR);
534 EVALUATE(MVCL); 535 EVALUATE(MVCL);
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { 1284 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) {
1284 Simulator::current(isolate)->PopAddress(); 1285 Simulator::current(isolate)->PopAddress();
1285 } 1286 }
1286 }; 1287 };
1287 1288
1288 } // namespace internal 1289 } // namespace internal
1289 } // namespace v8 1290 } // namespace v8
1290 1291
1291 #endif // !defined(USE_SIMULATOR) 1292 #endif // !defined(USE_SIMULATOR)
1292 #endif // V8_S390_SIMULATOR_S390_H_ 1293 #endif // V8_S390_SIMULATOR_S390_H_
OLDNEW
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | src/s390/simulator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698