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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 Handle<String> type_name); | 278 Handle<String> type_name); |
279 | 279 |
280 // Emits optimized code for %_IsObject(x). Preserves input register. | 280 // Emits optimized code for %_IsObject(x). Preserves input register. |
281 // Returns the condition on which a final split to | 281 // Returns the condition on which a final split to |
282 // true and false label should be made, to optimize fallthrough. | 282 // true and false label should be made, to optimize fallthrough. |
283 Condition EmitIsObject(Register input, | 283 Condition EmitIsObject(Register input, |
284 Register temp1, | 284 Register temp1, |
285 Label* is_not_object, | 285 Label* is_not_object, |
286 Label* is_object); | 286 Label* is_object); |
287 | 287 |
| 288 // Emits optimized code for %_IsString(x). Preserves input register. |
| 289 // Returns the condition on which a final split to |
| 290 // true and false label should be made, to optimize fallthrough. |
| 291 Condition EmitIsString(Register input, |
| 292 Register temp1, |
| 293 Label* is_not_object, |
| 294 Label* is_object); |
| 295 |
288 // Emits optimized code for %_IsConstructCall(). | 296 // Emits optimized code for %_IsConstructCall(). |
289 // Caller should branch on equal condition. | 297 // Caller should branch on equal condition. |
290 void EmitIsConstructCall(Register temp1, Register temp2); | 298 void EmitIsConstructCall(Register temp1, Register temp2); |
291 | 299 |
292 void EmitLoadFieldOrConstantFunction(Register result, | 300 void EmitLoadFieldOrConstantFunction(Register result, |
293 Register object, | 301 Register object, |
294 Handle<Map> type, | 302 Handle<Map> type, |
295 Handle<String> name); | 303 Handle<String> name); |
296 | 304 |
297 struct JumpTableEntry { | 305 struct JumpTableEntry { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 LCodeGen* codegen_; | 409 LCodeGen* codegen_; |
402 Label entry_; | 410 Label entry_; |
403 Label exit_; | 411 Label exit_; |
404 Label* external_exit_; | 412 Label* external_exit_; |
405 int instruction_index_; | 413 int instruction_index_; |
406 }; | 414 }; |
407 | 415 |
408 } } // namespace v8::internal | 416 } } // namespace v8::internal |
409 | 417 |
410 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 418 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |