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

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

Issue 2586503003: s390: cleanup s390 opcode table (Closed)
Patch Set: make nbyteInstruction size as public 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #define EVALUATE_VRR_INSTRUCTIONS(name, op_name, op_value) EVALUATE(op_name); 525 #define EVALUATE_VRR_INSTRUCTIONS(name, op_name, op_value) EVALUATE(op_name);
526 VRR_C_OPCODE_LIST(EVALUATE_VRR_INSTRUCTIONS) 526 S390_VRR_C_OPCODE_LIST(EVALUATE_VRR_INSTRUCTIONS)
527 VRR_A_OPCODE_LIST(EVALUATE_VRR_INSTRUCTIONS) 527 S390_VRR_A_OPCODE_LIST(EVALUATE_VRR_INSTRUCTIONS)
528 #undef EVALUATE_VRR_INSTRUCTIONS 528 #undef EVALUATE_VRR_INSTRUCTIONS
529 529
530 EVALUATE(DUMY); 530 EVALUATE(DUMY);
531 EVALUATE(BKPT); 531 EVALUATE(BKPT);
532 EVALUATE(SPM); 532 EVALUATE(SPM);
533 EVALUATE(BALR); 533 EVALUATE(BALR);
534 EVALUATE(BCTR); 534 EVALUATE(BCTR);
535 EVALUATE(BCR); 535 EVALUATE(BCR);
536 EVALUATE(SVC); 536 EVALUATE(SVC);
537 EVALUATE(BSM); 537 EVALUATE(BSM);
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { 1289 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) {
1290 Simulator::current(isolate)->PopAddress(); 1290 Simulator::current(isolate)->PopAddress();
1291 } 1291 }
1292 }; 1292 };
1293 1293
1294 } // namespace internal 1294 } // namespace internal
1295 } // namespace v8 1295 } // namespace v8
1296 1296
1297 #endif // !defined(USE_SIMULATOR) 1297 #endif // !defined(USE_SIMULATOR)
1298 #endif // V8_S390_SIMULATOR_S390_H_ 1298 #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