| 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 | |
| 294 // Emits optimized code for %_IsConstructCall(). | 286 // Emits optimized code for %_IsConstructCall(). |
| 295 // Caller should branch on equal condition. | 287 // Caller should branch on equal condition. |
| 296 void EmitIsConstructCall(Register temp); | 288 void EmitIsConstructCall(Register temp); |
| 297 | 289 |
| 298 void EmitLoadFieldOrConstantFunction(Register result, | 290 void EmitLoadFieldOrConstantFunction(Register result, |
| 299 Register object, | 291 Register object, |
| 300 Handle<Map> type, | 292 Handle<Map> type, |
| 301 Handle<String> name); | 293 Handle<String> name); |
| 302 | 294 |
| 303 LChunk* const chunk_; | 295 LChunk* const chunk_; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 LCodeGen* codegen_; | 377 LCodeGen* codegen_; |
| 386 Label entry_; | 378 Label entry_; |
| 387 Label exit_; | 379 Label exit_; |
| 388 Label* external_exit_; | 380 Label* external_exit_; |
| 389 int instruction_index_; | 381 int instruction_index_; |
| 390 }; | 382 }; |
| 391 | 383 |
| 392 } } // namespace v8::internal | 384 } } // namespace v8::internal |
| 393 | 385 |
| 394 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 386 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |