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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 // Emits optimized code for %_IsObject(x). Preserves input register. | 293 // Emits optimized code for %_IsObject(x). Preserves input register. |
294 // Returns the condition on which a final split to | 294 // Returns the condition on which a final split to |
295 // true and false label should be made, to optimize fallthrough. | 295 // true and false label should be made, to optimize fallthrough. |
296 Condition EmitIsObject(Register input, | 296 Condition EmitIsObject(Register input, |
297 Register temp1, | 297 Register temp1, |
298 Register temp2, | 298 Register temp2, |
299 Label* is_not_object, | 299 Label* is_not_object, |
300 Label* is_object); | 300 Label* is_object); |
301 | 301 |
| 302 // Emits optimized code for %_IsString(x). Preserves input register. |
| 303 // Returns the condition on which a final split to |
| 304 // true and false label should be made, to optimize fallthrough. |
| 305 Condition EmitIsString(Register input, |
| 306 Register temp1, |
| 307 Label* is_not_string); |
| 308 |
302 // Emits optimized code for %_IsConstructCall(). | 309 // Emits optimized code for %_IsConstructCall(). |
303 // Caller should branch on equal condition. | 310 // Caller should branch on equal condition. |
304 void EmitIsConstructCall(Register temp1, Register temp2); | 311 void EmitIsConstructCall(Register temp1, Register temp2); |
305 | 312 |
306 void EmitLoadFieldOrConstantFunction(Register result, | 313 void EmitLoadFieldOrConstantFunction(Register result, |
307 Register object, | 314 Register object, |
308 Handle<Map> type, | 315 Handle<Map> type, |
309 Handle<String> name); | 316 Handle<String> name); |
310 | 317 |
311 struct JumpTableEntry { | 318 struct JumpTableEntry { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 LCodeGen* codegen_; | 425 LCodeGen* codegen_; |
419 Label entry_; | 426 Label entry_; |
420 Label exit_; | 427 Label exit_; |
421 Label* external_exit_; | 428 Label* external_exit_; |
422 int instruction_index_; | 429 int instruction_index_; |
423 }; | 430 }; |
424 | 431 |
425 } } // namespace v8::internal | 432 } } // namespace v8::internal |
426 | 433 |
427 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 434 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |