OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void EmitNumberUntagD(Register input, | 201 void EmitNumberUntagD(Register input, |
202 DoubleRegister result, | 202 DoubleRegister result, |
203 LEnvironment* env); | 203 LEnvironment* env); |
204 | 204 |
205 // Emits optimized code for typeof x == "y". Modifies input register. | 205 // Emits optimized code for typeof x == "y". Modifies input register. |
206 // Returns the condition on which a final split to | 206 // Returns the condition on which a final split to |
207 // true and false label should be made, to optimize fallthrough. | 207 // true and false label should be made, to optimize fallthrough. |
208 Condition EmitTypeofIs(Label* true_label, Label* false_label, | 208 Condition EmitTypeofIs(Label* true_label, Label* false_label, |
209 Register input, Handle<String> type_name); | 209 Register input, Handle<String> type_name); |
210 | 210 |
| 211 // Emits optimized code for %_IsObject(x). Preserves input register. |
| 212 // Returns the condition on which a final split to |
| 213 // true and false label should be made, to optimize fallthrough. |
| 214 Condition EmitIsObject(Register input, |
| 215 Register temp1, |
| 216 Register temp2, |
| 217 Label* is_not_object, |
| 218 Label* is_object); |
| 219 |
211 LChunk* const chunk_; | 220 LChunk* const chunk_; |
212 MacroAssembler* const masm_; | 221 MacroAssembler* const masm_; |
213 CompilationInfo* const info_; | 222 CompilationInfo* const info_; |
214 | 223 |
215 int current_block_; | 224 int current_block_; |
216 int current_instruction_; | 225 int current_instruction_; |
217 const ZoneList<LInstruction*>* instructions_; | 226 const ZoneList<LInstruction*>* instructions_; |
218 ZoneList<LEnvironment*> deoptimizations_; | 227 ZoneList<LEnvironment*> deoptimizations_; |
219 ZoneList<Handle<Object> > deoptimization_literals_; | 228 ZoneList<Handle<Object> > deoptimization_literals_; |
220 int inlined_function_count_; | 229 int inlined_function_count_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 private: | 265 private: |
257 LCodeGen* codegen_; | 266 LCodeGen* codegen_; |
258 Label entry_; | 267 Label entry_; |
259 Label exit_; | 268 Label exit_; |
260 Label* external_exit_; | 269 Label* external_exit_; |
261 }; | 270 }; |
262 | 271 |
263 } } // namespace v8::internal | 272 } } // namespace v8::internal |
264 | 273 |
265 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 274 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |