| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 408 |
| 409 // Print a message to stdout and abort execution. | 409 // Print a message to stdout and abort execution. |
| 410 void Abort(const char* msg); | 410 void Abort(const char* msg); |
| 411 | 411 |
| 412 // Verify restrictions about code generated in stubs. | 412 // Verify restrictions about code generated in stubs. |
| 413 void set_generating_stub(bool value) { generating_stub_ = value; } | 413 void set_generating_stub(bool value) { generating_stub_ = value; } |
| 414 bool generating_stub() { return generating_stub_; } | 414 bool generating_stub() { return generating_stub_; } |
| 415 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 415 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
| 416 bool allow_stub_calls() { return allow_stub_calls_; } | 416 bool allow_stub_calls() { return allow_stub_calls_; } |
| 417 | 417 |
| 418 // --------------------------------------------------------------------------- |
| 419 // String utilities. |
| 420 |
| 421 // Checks if both objects are sequential ASCII strings, and jumps to label |
| 422 // if either is not. |
| 423 void JumpIfNotBothSequentialAsciiStrings(Register object1, |
| 424 Register object2, |
| 425 Register scratch1, |
| 426 Register scratch2, |
| 427 Label *on_not_flat_ascii_strings); |
| 428 |
| 418 private: | 429 private: |
| 419 List<Unresolved> unresolved_; | 430 List<Unresolved> unresolved_; |
| 420 bool generating_stub_; | 431 bool generating_stub_; |
| 421 bool allow_stub_calls_; | 432 bool allow_stub_calls_; |
| 422 Handle<Object> code_object_; // This handle will be patched with the | 433 Handle<Object> code_object_; // This handle will be patched with the |
| 423 // code object on installation. | 434 // code object on installation. |
| 424 | 435 |
| 425 // Helper functions for generating invokes. | 436 // Helper functions for generating invokes. |
| 426 void InvokePrologue(const ParameterCount& expected, | 437 void InvokePrologue(const ParameterCount& expected, |
| 427 const ParameterCount& actual, | 438 const ParameterCount& actual, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 } \ | 532 } \ |
| 522 masm-> | 533 masm-> |
| 523 #else | 534 #else |
| 524 #define ACCESS_MASM(masm) masm-> | 535 #define ACCESS_MASM(masm) masm-> |
| 525 #endif | 536 #endif |
| 526 | 537 |
| 527 | 538 |
| 528 } } // namespace v8::internal | 539 } } // namespace v8::internal |
| 529 | 540 |
| 530 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 541 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |