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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 587473003: Removed confusing defensive programming in GenerateJumpTable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 3 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/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
7 7
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/lithium-codegen.h" 9 #include "src/lithium-codegen.h"
10 #include "src/mips/lithium-gap-resolver-mips.h" 10 #include "src/mips/lithium-gap-resolver-mips.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
166 166
167 void SaveCallerDoubles(); 167 void SaveCallerDoubles();
168 void RestoreCallerDoubles(); 168 void RestoreCallerDoubles();
169 169
170 // Code generation passes. Returns true if code generation should 170 // Code generation passes. Returns true if code generation should
171 // continue. 171 // continue.
172 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE; 172 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE;
173 bool GeneratePrologue(); 173 bool GeneratePrologue();
174 bool GenerateDeferredCode(); 174 bool GenerateDeferredCode();
175 bool GenerateDeoptJumpTable(); 175 bool GenerateJumpTable();
176 bool GenerateSafepointTable(); 176 bool GenerateSafepointTable();
177 177
178 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 178 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
179 void GenerateOsrPrologue(); 179 void GenerateOsrPrologue();
180 180
181 enum SafepointMode { 181 enum SafepointMode {
182 RECORD_SIMPLE_SAFEPOINT, 182 RECORD_SIMPLE_SAFEPOINT,
183 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS 183 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS
184 }; 184 };
185 185
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 LCodeGen* codegen_; 440 LCodeGen* codegen_;
441 Label entry_; 441 Label entry_;
442 Label exit_; 442 Label exit_;
443 Label* external_exit_; 443 Label* external_exit_;
444 int instruction_index_; 444 int instruction_index_;
445 }; 445 };
446 446
447 } } // namespace v8::internal 447 } } // namespace v8::internal
448 448
449 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 449 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698