| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 28 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 29 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 29 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 30 | 30 |
| 31 #include "deoptimizer.h" |
| 32 #include "mips/lithium-gap-resolver-mips.h" |
| 31 #include "mips/lithium-mips.h" | 33 #include "mips/lithium-mips.h" |
| 32 #include "mips/lithium-gap-resolver-mips.h" | |
| 33 #include "deoptimizer.h" | |
| 34 #include "safepoint-table.h" | 34 #include "safepoint-table.h" |
| 35 #include "scopes.h" | 35 #include "scopes.h" |
| 36 #include "v8utils.h" |
| 36 | 37 |
| 37 namespace v8 { | 38 namespace v8 { |
| 38 namespace internal { | 39 namespace internal { |
| 39 | 40 |
| 40 // Forward declarations. | 41 // Forward declarations. |
| 41 class LDeferredCode; | 42 class LDeferredCode; |
| 42 class SafepointGenerator; | 43 class SafepointGenerator; |
| 43 | 44 |
| 44 class LCodeGen BASE_EMBEDDED { | 45 class LCodeGen BASE_EMBEDDED { |
| 45 public: | 46 public: |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void EmitClassOfTest(Label* if_true, | 201 void EmitClassOfTest(Label* if_true, |
| 201 Label* if_false, | 202 Label* if_false, |
| 202 Handle<String> class_name, | 203 Handle<String> class_name, |
| 203 Register input, | 204 Register input, |
| 204 Register temporary, | 205 Register temporary, |
| 205 Register temporary2); | 206 Register temporary2); |
| 206 | 207 |
| 207 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 208 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
| 208 | 209 |
| 209 void Abort(const char* reason); | 210 void Abort(const char* reason); |
| 210 void Comment(const char* format, ...); | 211 void FPRINTF_CHECKING Comment(const char* format, ...); |
| 211 | 212 |
| 212 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 213 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
| 213 | 214 |
| 214 // Code generation passes. Returns true if code generation should | 215 // Code generation passes. Returns true if code generation should |
| 215 // continue. | 216 // continue. |
| 216 bool GeneratePrologue(); | 217 bool GeneratePrologue(); |
| 217 bool GenerateBody(); | 218 bool GenerateBody(); |
| 218 bool GenerateDeferredCode(); | 219 bool GenerateDeferredCode(); |
| 219 bool GenerateDeoptJumpTable(); | 220 bool GenerateDeoptJumpTable(); |
| 220 bool GenerateSafepointTable(); | 221 bool GenerateSafepointTable(); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 LCodeGen* codegen_; | 497 LCodeGen* codegen_; |
| 497 Label entry_; | 498 Label entry_; |
| 498 Label exit_; | 499 Label exit_; |
| 499 Label* external_exit_; | 500 Label* external_exit_; |
| 500 int instruction_index_; | 501 int instruction_index_; |
| 501 }; | 502 }; |
| 502 | 503 |
| 503 } } // namespace v8::internal | 504 } } // namespace v8::internal |
| 504 | 505 |
| 505 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 506 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |