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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 Handle<String> type_name); | 276 Handle<String> type_name); |
277 | 277 |
278 // Emits optimized code for %_IsObject(x). Preserves input register. | 278 // Emits optimized code for %_IsObject(x). Preserves input register. |
279 // Returns the condition on which a final split to | 279 // Returns the condition on which a final split to |
280 // true and false label should be made, to optimize fallthrough. | 280 // true and false label should be made, to optimize fallthrough. |
281 Condition EmitIsObject(Register input, | 281 Condition EmitIsObject(Register input, |
282 Register temp1, | 282 Register temp1, |
283 Label* is_not_object, | 283 Label* is_not_object, |
284 Label* is_object); | 284 Label* is_object); |
285 | 285 |
| 286 // Emits optimized code for %_IsString(x). Preserves input register. |
| 287 // Returns the condition on which a final split to |
| 288 // true and false label should be made, to optimize fallthrough. |
| 289 Condition EmitIsString(Register input, |
| 290 Register temp1, |
| 291 Label* is_not_string, |
| 292 Label* is_string); |
| 293 |
286 // Emits optimized code for %_IsConstructCall(). | 294 // Emits optimized code for %_IsConstructCall(). |
287 // Caller should branch on equal condition. | 295 // Caller should branch on equal condition. |
288 void EmitIsConstructCall(Register temp); | 296 void EmitIsConstructCall(Register temp); |
289 | 297 |
290 void EmitLoadFieldOrConstantFunction(Register result, | 298 void EmitLoadFieldOrConstantFunction(Register result, |
291 Register object, | 299 Register object, |
292 Handle<Map> type, | 300 Handle<Map> type, |
293 Handle<String> name); | 301 Handle<String> name); |
294 | 302 |
295 LChunk* const chunk_; | 303 LChunk* const chunk_; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 LCodeGen* codegen_; | 385 LCodeGen* codegen_; |
378 Label entry_; | 386 Label entry_; |
379 Label exit_; | 387 Label exit_; |
380 Label* external_exit_; | 388 Label* external_exit_; |
381 int instruction_index_; | 389 int instruction_index_; |
382 }; | 390 }; |
383 | 391 |
384 } } // namespace v8::internal | 392 } } // namespace v8::internal |
385 | 393 |
386 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 394 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |