OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 Scope* scope() const { return scope_; } | 133 Scope* scope() const { return scope_; } |
134 HGraph* graph() const { return chunk_->graph(); } | 134 HGraph* graph() const { return chunk_->graph(); } |
135 | 135 |
136 int GetNextEmittedBlock(int block); | 136 int GetNextEmittedBlock(int block); |
137 LInstruction* GetNextInstruction(); | 137 LInstruction* GetNextInstruction(); |
138 | 138 |
139 void EmitClassOfTest(Label* if_true, | 139 void EmitClassOfTest(Label* if_true, |
140 Label* if_false, | 140 Label* if_false, |
141 Handle<String> class_name, | 141 Handle<String> class_name, |
142 Register input, | 142 Register input, |
143 Register temporary); | 143 Register temporary, |
| 144 Register scratch); |
144 | 145 |
145 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 146 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
146 int GetParameterCount() const { return scope()->num_parameters(); } | 147 int GetParameterCount() const { return scope()->num_parameters(); } |
147 | 148 |
148 void Abort(const char* format, ...); | 149 void Abort(const char* format, ...); |
149 void Comment(const char* format, ...); | 150 void Comment(const char* format, ...); |
150 | 151 |
151 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code); } | 152 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code); } |
152 | 153 |
153 // Code generation passes. Returns true if code generation should | 154 // Code generation passes. Returns true if code generation should |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 private: | 364 private: |
364 LCodeGen* codegen_; | 365 LCodeGen* codegen_; |
365 Label entry_; | 366 Label entry_; |
366 Label exit_; | 367 Label exit_; |
367 Label* external_exit_; | 368 Label* external_exit_; |
368 }; | 369 }; |
369 | 370 |
370 } } // namespace v8::internal | 371 } } // namespace v8::internal |
371 | 372 |
372 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 373 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |