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 | |
296 // Emits optimized code for %_IsConstructCall(). | 288 // Emits optimized code for %_IsConstructCall(). |
297 // Caller should branch on equal condition. | 289 // Caller should branch on equal condition. |
298 void EmitIsConstructCall(Register temp1, Register temp2); | 290 void EmitIsConstructCall(Register temp1, Register temp2); |
299 | 291 |
300 void EmitLoadFieldOrConstantFunction(Register result, | 292 void EmitLoadFieldOrConstantFunction(Register result, |
301 Register object, | 293 Register object, |
302 Handle<Map> type, | 294 Handle<Map> type, |
303 Handle<String> name); | 295 Handle<String> name); |
304 | 296 |
305 struct JumpTableEntry { | 297 struct JumpTableEntry { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 LCodeGen* codegen_; | 401 LCodeGen* codegen_; |
410 Label entry_; | 402 Label entry_; |
411 Label exit_; | 403 Label exit_; |
412 Label* external_exit_; | 404 Label* external_exit_; |
413 int instruction_index_; | 405 int instruction_index_; |
414 }; | 406 }; |
415 | 407 |
416 } } // namespace v8::internal | 408 } } // namespace v8::internal |
417 | 409 |
418 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 410 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |