OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1495 matching lines...) Loading... |
1506 static int SafepointRegisterStackIndex(int reg_code); | 1506 static int SafepointRegisterStackIndex(int reg_code); |
1507 MemOperand SafepointRegisterSlot(Register reg); | 1507 MemOperand SafepointRegisterSlot(Register reg); |
1508 MemOperand SafepointRegistersAndDoublesSlot(Register reg); | 1508 MemOperand SafepointRegistersAndDoublesSlot(Register reg); |
1509 | 1509 |
1510 bool generating_stub_; | 1510 bool generating_stub_; |
1511 bool allow_stub_calls_; | 1511 bool allow_stub_calls_; |
1512 bool has_frame_; | 1512 bool has_frame_; |
1513 // This handle will be patched with the code object on installation. | 1513 // This handle will be patched with the code object on installation. |
1514 Handle<Object> code_object_; | 1514 Handle<Object> code_object_; |
1515 | 1515 |
1516 // Needs access to SafepointRegisterStackIndex for optimized frame | 1516 // Needs access to SafepointRegisterStackIndex for compiled frame |
1517 // traversal. | 1517 // traversal. |
1518 friend class OptimizedFrame; | 1518 friend class StandardFrame; |
1519 }; | 1519 }; |
1520 | 1520 |
1521 | 1521 |
1522 // The code patcher is used to patch (typically) small parts of code e.g. for | 1522 // The code patcher is used to patch (typically) small parts of code e.g. for |
1523 // debugging and other types of instrumentation. When using the code patcher | 1523 // debugging and other types of instrumentation. When using the code patcher |
1524 // the exact number of bytes specified must be emitted. It is not legal to emit | 1524 // the exact number of bytes specified must be emitted. It is not legal to emit |
1525 // relocation information. If any of these constraints are violated it causes | 1525 // relocation information. If any of these constraints are violated it causes |
1526 // an assertion to fail. | 1526 // an assertion to fail. |
1527 class CodePatcher { | 1527 class CodePatcher { |
1528 public: | 1528 public: |
(...skipping 27 matching lines...) Loading... |
1556 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1556 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1557 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1557 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1559 #else | 1559 #else |
1560 #define ACCESS_MASM(masm) masm-> | 1560 #define ACCESS_MASM(masm) masm-> |
1561 #endif | 1561 #endif |
1562 | 1562 |
1563 } } // namespace v8::internal | 1563 } } // namespace v8::internal |
1564 | 1564 |
1565 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1565 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |