| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ | 28 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ |
| 29 #define V8_X64_LITHIUM_CODEGEN_X64_H_ | 29 #define V8_X64_LITHIUM_CODEGEN_X64_H_ |
| 30 | 30 |
| 31 #include "x64/lithium-x64.h" | 31 #include "x64/lithium-x64.h" |
| 32 | 32 |
| 33 #include "checks.h" | 33 #include "checks.h" |
| 34 #include "deoptimizer.h" | 34 #include "deoptimizer.h" |
| 35 #include "safepoint-table.h" | 35 #include "safepoint-table.h" |
| 36 #include "scopes.h" | 36 #include "scopes.h" |
| 37 #include "v8utils.h" |
| 37 #include "x64/lithium-gap-resolver-x64.h" | 38 #include "x64/lithium-gap-resolver-x64.h" |
| 38 | 39 |
| 39 namespace v8 { | 40 namespace v8 { |
| 40 namespace internal { | 41 namespace internal { |
| 41 | 42 |
| 42 // Forward declarations. | 43 // Forward declarations. |
| 43 class LDeferredCode; | 44 class LDeferredCode; |
| 44 class SafepointGenerator; | 45 class SafepointGenerator; |
| 45 | 46 |
| 46 class LCodeGen BASE_EMBEDDED { | 47 class LCodeGen BASE_EMBEDDED { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void EmitClassOfTest(Label* if_true, | 166 void EmitClassOfTest(Label* if_true, |
| 166 Label* if_false, | 167 Label* if_false, |
| 167 Handle<String> class_name, | 168 Handle<String> class_name, |
| 168 Register input, | 169 Register input, |
| 169 Register temporary, | 170 Register temporary, |
| 170 Register scratch); | 171 Register scratch); |
| 171 | 172 |
| 172 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 173 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
| 173 | 174 |
| 174 void Abort(const char* reason); | 175 void Abort(const char* reason); |
| 175 void Comment(const char* format, ...); | 176 void FPRINTF_CHECKING Comment(const char* format, ...); |
| 176 | 177 |
| 177 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 178 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
| 178 | 179 |
| 179 // Code generation passes. Returns true if code generation should | 180 // Code generation passes. Returns true if code generation should |
| 180 // continue. | 181 // continue. |
| 181 bool GeneratePrologue(); | 182 bool GeneratePrologue(); |
| 182 bool GenerateBody(); | 183 bool GenerateBody(); |
| 183 bool GenerateDeferredCode(); | 184 bool GenerateDeferredCode(); |
| 184 bool GenerateJumpTable(); | 185 bool GenerateJumpTable(); |
| 185 bool GenerateSafepointTable(); | 186 bool GenerateSafepointTable(); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 LCodeGen* codegen_; | 431 LCodeGen* codegen_; |
| 431 Label entry_; | 432 Label entry_; |
| 432 Label exit_; | 433 Label exit_; |
| 433 Label* external_exit_; | 434 Label* external_exit_; |
| 434 int instruction_index_; | 435 int instruction_index_; |
| 435 }; | 436 }; |
| 436 | 437 |
| 437 } } // namespace v8::internal | 438 } } // namespace v8::internal |
| 438 | 439 |
| 439 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 440 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |