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