OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 // Verify restrictions about code generated in stubs. | 419 // Verify restrictions about code generated in stubs. |
420 void set_generating_stub(bool value) { generating_stub_ = value; } | 420 void set_generating_stub(bool value) { generating_stub_ = value; } |
421 bool generating_stub() { return generating_stub_; } | 421 bool generating_stub() { return generating_stub_; } |
422 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 422 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
423 bool allow_stub_calls() { return allow_stub_calls_; } | 423 bool allow_stub_calls() { return allow_stub_calls_; } |
424 | 424 |
425 // --------------------------------------------------------------------------- | 425 // --------------------------------------------------------------------------- |
426 // String utilities. | 426 // String utilities. |
427 | 427 |
| 428 // Check whether the instance type represents a flat ascii string. Jump to the |
| 429 // label if not. If the instance type can be scratched specify same register |
| 430 // for both instance type and scratch. |
| 431 void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type, |
| 432 Register scratch, |
| 433 Label *on_not_flat_ascii_string); |
| 434 |
428 // Checks if both objects are sequential ASCII strings, and jumps to label | 435 // Checks if both objects are sequential ASCII strings, and jumps to label |
429 // if either is not. | 436 // if either is not. |
430 void JumpIfNotBothSequentialAsciiStrings(Register object1, | 437 void JumpIfNotBothSequentialAsciiStrings(Register object1, |
431 Register object2, | 438 Register object2, |
432 Register scratch1, | 439 Register scratch1, |
433 Register scratch2, | 440 Register scratch2, |
434 Label *on_not_flat_ascii_strings); | 441 Label *on_not_flat_ascii_strings); |
435 | 442 |
436 private: | 443 private: |
437 bool generating_stub_; | 444 bool generating_stub_; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 } \ | 533 } \ |
527 masm-> | 534 masm-> |
528 #else | 535 #else |
529 #define ACCESS_MASM(masm) masm-> | 536 #define ACCESS_MASM(masm) masm-> |
530 #endif | 537 #endif |
531 | 538 |
532 | 539 |
533 } } // namespace v8::internal | 540 } } // namespace v8::internal |
534 | 541 |
535 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 542 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |