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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 Register scratch, | 664 Register scratch, |
665 Label* fail); | 665 Label* fail); |
666 | 666 |
667 #ifdef ENABLE_DEBUGGER_SUPPORT | 667 #ifdef ENABLE_DEBUGGER_SUPPORT |
668 // ------------------------------------------------------------------------- | 668 // ------------------------------------------------------------------------- |
669 // Debugger Support. | 669 // Debugger Support. |
670 | 670 |
671 void DebugBreak(); | 671 void DebugBreak(); |
672 #endif | 672 #endif |
673 | 673 |
| 674 void InitializeRootRegister() { |
| 675 ExternalReference roots_address = |
| 676 ExternalReference::roots_address(isolate()); |
| 677 li(kRootRegister, Operand(roots_address)); |
| 678 } |
674 | 679 |
675 // ------------------------------------------------------------------------- | 680 // ------------------------------------------------------------------------- |
676 // Exception handling. | 681 // Exception handling. |
677 | 682 |
678 // Push a new try handler and link into try handler chain. | 683 // Push a new try handler and link into try handler chain. |
679 // The return address must be passed in register ra. | 684 // The return address must be passed in register ra. |
680 // Clobber t0, t1, t2. | 685 // Clobber t0, t1, t2. |
681 void PushTryHandler(CodeLocation try_location, HandlerType type); | 686 void PushTryHandler(CodeLocation try_location, HandlerType type); |
682 | 687 |
683 // Unlink the stack handler on top of the stack from the try handler chain. | 688 // Unlink the stack handler on top of the stack from the try handler chain. |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1230 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1226 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1231 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1227 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1232 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1228 #else | 1233 #else |
1229 #define ACCESS_MASM(masm) masm-> | 1234 #define ACCESS_MASM(masm) masm-> |
1230 #endif | 1235 #endif |
1231 | 1236 |
1232 } } // namespace v8::internal | 1237 } } // namespace v8::internal |
1233 | 1238 |
1234 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1239 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |