| 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 11 matching lines...) Expand all Loading... |
| 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_ARM_LITHIUM_CODEGEN_ARM_H_ | 28 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 29 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 29 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 30 | 30 |
| 31 #include "arm/lithium-arm.h" | 31 #include "arm/lithium-arm.h" |
| 32 |
| 32 #include "arm/lithium-gap-resolver-arm.h" | 33 #include "arm/lithium-gap-resolver-arm.h" |
| 33 #include "deoptimizer.h" | 34 #include "deoptimizer.h" |
| 34 #include "safepoint-table.h" | 35 #include "safepoint-table.h" |
| 35 #include "scopes.h" | 36 #include "scopes.h" |
| 37 #include "v8utils.h" |
| 36 | 38 |
| 37 namespace v8 { | 39 namespace v8 { |
| 38 namespace internal { | 40 namespace internal { |
| 39 | 41 |
| 40 // Forward declarations. | 42 // Forward declarations. |
| 41 class LDeferredCode; | 43 class LDeferredCode; |
| 42 class SafepointGenerator; | 44 class SafepointGenerator; |
| 43 | 45 |
| 44 class LCodeGen BASE_EMBEDDED { | 46 class LCodeGen BASE_EMBEDDED { |
| 45 public: | 47 public: |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 void EmitClassOfTest(Label* if_true, | 206 void EmitClassOfTest(Label* if_true, |
| 205 Label* if_false, | 207 Label* if_false, |
| 206 Handle<String> class_name, | 208 Handle<String> class_name, |
| 207 Register input, | 209 Register input, |
| 208 Register temporary, | 210 Register temporary, |
| 209 Register temporary2); | 211 Register temporary2); |
| 210 | 212 |
| 211 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 213 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
| 212 | 214 |
| 213 void Abort(const char* reason); | 215 void Abort(const char* reason); |
| 214 void Comment(const char* format, ...); | 216 void FPRINTF_CHECKING Comment(const char* format, ...); |
| 215 | 217 |
| 216 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 218 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
| 217 | 219 |
| 218 // Code generation passes. Returns true if code generation should | 220 // Code generation passes. Returns true if code generation should |
| 219 // continue. | 221 // continue. |
| 220 bool GeneratePrologue(); | 222 bool GeneratePrologue(); |
| 221 bool GenerateBody(); | 223 bool GenerateBody(); |
| 222 bool GenerateDeferredCode(); | 224 bool GenerateDeferredCode(); |
| 223 bool GenerateDeoptJumpTable(); | 225 bool GenerateDeoptJumpTable(); |
| 224 bool GenerateSafepointTable(); | 226 bool GenerateSafepointTable(); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 LCodeGen* codegen_; | 499 LCodeGen* codegen_; |
| 498 Label entry_; | 500 Label entry_; |
| 499 Label exit_; | 501 Label exit_; |
| 500 Label* external_exit_; | 502 Label* external_exit_; |
| 501 int instruction_index_; | 503 int instruction_index_; |
| 502 }; | 504 }; |
| 503 | 505 |
| 504 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 505 | 507 |
| 506 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 508 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |