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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void EmitClassOfTest(Label* if_true, | 164 void EmitClassOfTest(Label* if_true, |
165 Label* if_false, | 165 Label* if_false, |
166 Handle<String> class_name, | 166 Handle<String> class_name, |
167 Register input, | 167 Register input, |
168 Register temporary, | 168 Register temporary, |
169 Register temporary2); | 169 Register temporary2); |
170 | 170 |
171 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 171 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
172 int GetParameterCount() const { return scope()->num_parameters(); } | 172 int GetParameterCount() const { return scope()->num_parameters(); } |
173 | 173 |
174 void Abort(const char* format, ...); | 174 void Abort(const char* reason); |
175 void Comment(const char* format, ...); | 175 void Comment(const char* format, ...); |
176 | 176 |
177 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 177 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
178 | 178 |
179 // Code generation passes. Returns true if code generation should | 179 // Code generation passes. Returns true if code generation should |
180 // continue. | 180 // continue. |
181 bool GeneratePrologue(); | 181 bool GeneratePrologue(); |
182 bool GenerateBody(); | 182 bool GenerateBody(); |
183 bool GenerateDeferredCode(); | 183 bool GenerateDeferredCode(); |
184 // Pad the reloc info to ensure that we have enough space to patch during | 184 // Pad the reloc info to ensure that we have enough space to patch during |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 LCodeGen* codegen_; | 420 LCodeGen* codegen_; |
421 Label entry_; | 421 Label entry_; |
422 Label exit_; | 422 Label exit_; |
423 Label* external_exit_; | 423 Label* external_exit_; |
424 int instruction_index_; | 424 int instruction_index_; |
425 }; | 425 }; |
426 | 426 |
427 } } // namespace v8::internal | 427 } } // namespace v8::internal |
428 | 428 |
429 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 429 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |