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

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

Issue 2374013004: MIPS32: Remove EXTRA, NORMAL instruction type check. (Closed)
Patch Set: Fix indentation. Created 4 years, 2 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
« no previous file with comments | « src/mips/disasm-mips.cc ('k') | src/mips64/constants-mips64.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5
6 // Declares a Simulator for MIPS instructions if we are not generating a native 6 // Declares a Simulator for MIPS instructions if we are not generating a native
7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
8 // on regular desktop machines. 8 // on regular desktop machines.
9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
10 // which will start execution in the Simulator or forwards to the real entry 10 // which will start execution in the Simulator or forwards to the real entry
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 class SimInstruction : public InstructionGetters<SimInstructionBase> { 134 class SimInstruction : public InstructionGetters<SimInstructionBase> {
135 public: 135 public:
136 SimInstruction() {} 136 SimInstruction() {}
137 137
138 explicit SimInstruction(Instruction* instr) { *this = instr; } 138 explicit SimInstruction(Instruction* instr) { *this = instr; }
139 139
140 SimInstruction& operator=(Instruction* instr) { 140 SimInstruction& operator=(Instruction* instr) {
141 operand_ = *reinterpret_cast<const int32_t*>(instr); 141 operand_ = *reinterpret_cast<const int32_t*>(instr);
142 instr_ = instr; 142 instr_ = instr;
143 type_ = InstructionBase::InstructionType(EXTRA); 143 type_ = InstructionBase::InstructionType();
144 DCHECK(reinterpret_cast<void*>(&operand_) == this); 144 DCHECK(reinterpret_cast<void*>(&operand_) == this);
145 return *this; 145 return *this;
146 } 146 }
147 }; 147 };
148 148
149 class Simulator { 149 class Simulator {
150 public: 150 public:
151 friend class MipsDebugger; 151 friend class MipsDebugger;
152 152
153 // Registers are declared in order. See SMRL chapter 2. 153 // Registers are declared in order. See SMRL chapter 2.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 static inline void UnregisterCTryCatch(Isolate* isolate) { 533 static inline void UnregisterCTryCatch(Isolate* isolate) {
534 Simulator::current(isolate)->PopAddress(); 534 Simulator::current(isolate)->PopAddress();
535 } 535 }
536 }; 536 };
537 537
538 } // namespace internal 538 } // namespace internal
539 } // namespace v8 539 } // namespace v8
540 540
541 #endif // !defined(USE_SIMULATOR) 541 #endif // !defined(USE_SIMULATOR)
542 #endif // V8_MIPS_SIMULATOR_MIPS_H_ 542 #endif // V8_MIPS_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/disasm-mips.cc ('k') | src/mips64/constants-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698