| 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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 masm->set_has_frame(true); | 1521 masm->set_has_frame(true); |
| 1522 masm->set_constant_pool_available(true); | 1522 masm->set_constant_pool_available(true); |
| 1523 if (type_ != StackFrame::MANUAL && type_ != StackFrame::NONE) { | 1523 if (type_ != StackFrame::MANUAL && type_ != StackFrame::NONE) { |
| 1524 masm->EnterFrame(type, !old_constant_pool_available_); | 1524 masm->EnterFrame(type, !old_constant_pool_available_); |
| 1525 } | 1525 } |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 ~FrameAndConstantPoolScope() { | 1528 ~FrameAndConstantPoolScope() { |
| 1529 masm_->LeaveFrame(type_); | 1529 masm_->LeaveFrame(type_); |
| 1530 masm_->set_has_frame(old_has_frame_); | 1530 masm_->set_has_frame(old_has_frame_); |
| 1531 masm_->set_constant_pool_available(old_has_frame_); | 1531 masm_->set_constant_pool_available(old_constant_pool_available_); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 // Normally we generate the leave-frame code when this object goes | 1534 // Normally we generate the leave-frame code when this object goes |
| 1535 // out of scope. Sometimes we may need to generate the code somewhere else | 1535 // out of scope. Sometimes we may need to generate the code somewhere else |
| 1536 // in addition. Calling this will achieve that, but the object stays in | 1536 // in addition. Calling this will achieve that, but the object stays in |
| 1537 // scope, the MacroAssembler is still marked as being in a frame scope, and | 1537 // scope, the MacroAssembler is still marked as being in a frame scope, and |
| 1538 // the code will be generated again when it goes out of scope. | 1538 // the code will be generated again when it goes out of scope. |
| 1539 void GenerateLeaveFrame() { | 1539 void GenerateLeaveFrame() { |
| 1540 ASSERT(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); | 1540 ASSERT(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); |
| 1541 masm_->LeaveFrame(type_); | 1541 masm_->LeaveFrame(type_); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1594 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1595 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1595 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1596 #else | 1596 #else |
| 1597 #define ACCESS_MASM(masm) masm-> | 1597 #define ACCESS_MASM(masm) masm-> |
| 1598 #endif | 1598 #endif |
| 1599 | 1599 |
| 1600 | 1600 |
| 1601 } } // namespace v8::internal | 1601 } } // namespace v8::internal |
| 1602 | 1602 |
| 1603 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1603 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |