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