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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 330 |
331 // Print a message to stdout and abort execution. | 331 // Print a message to stdout and abort execution. |
332 void Abort(const char* msg); | 332 void Abort(const char* msg); |
333 | 333 |
334 // Verify restrictions about code generated in stubs. | 334 // Verify restrictions about code generated in stubs. |
335 void set_generating_stub(bool value) { generating_stub_ = value; } | 335 void set_generating_stub(bool value) { generating_stub_ = value; } |
336 bool generating_stub() { return generating_stub_; } | 336 bool generating_stub() { return generating_stub_; } |
337 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 337 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
338 bool allow_stub_calls() { return allow_stub_calls_; } | 338 bool allow_stub_calls() { return allow_stub_calls_; } |
339 | 339 |
| 340 // --------------------------------------------------------------------------- |
| 341 // String utilities |
| 342 |
| 343 // Checks if both objects are sequential ASCII strings and jumps to label |
| 344 // if either is not. Assumes that neither object is a smi. |
| 345 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, |
| 346 Register object2, |
| 347 Register scratch1, |
| 348 Register scratch2, |
| 349 Label *failure); |
| 350 |
| 351 // Checks if both objects are sequential ASCII strings and jumps to label |
| 352 // if either is not. |
| 353 void JumpIfNotBothSequentialAsciiStrings(Register first, |
| 354 Register second, |
| 355 Register scratch1, |
| 356 Register scratch2, |
| 357 Label* not_flat_ascii_strings); |
| 358 |
340 private: | 359 private: |
341 List<Unresolved> unresolved_; | 360 List<Unresolved> unresolved_; |
342 bool generating_stub_; | 361 bool generating_stub_; |
343 bool allow_stub_calls_; | 362 bool allow_stub_calls_; |
344 Handle<Object> code_object_; // This handle will be patched with the code | 363 Handle<Object> code_object_; // This handle will be patched with the code |
345 // object on installation. | 364 // object on installation. |
346 | 365 |
347 // Helper functions for generating invokes. | 366 // Helper functions for generating invokes. |
348 void InvokePrologue(const ParameterCount& expected, | 367 void InvokePrologue(const ParameterCount& expected, |
349 const ParameterCount& actual, | 368 const ParameterCount& actual, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 433 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
415 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 434 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
416 #else | 435 #else |
417 #define ACCESS_MASM(masm) masm-> | 436 #define ACCESS_MASM(masm) masm-> |
418 #endif | 437 #endif |
419 | 438 |
420 | 439 |
421 } } // namespace v8::internal | 440 } } // namespace v8::internal |
422 | 441 |
423 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 442 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |