Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1234833003: Debugger: use debug break slots to break at function exit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for arm Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 1526
1527 1527
1528 // The code patcher is used to patch (typically) small parts of code e.g. for 1528 // The code patcher is used to patch (typically) small parts of code e.g. for
1529 // debugging and other types of instrumentation. When using the code patcher 1529 // debugging and other types of instrumentation. When using the code patcher
1530 // the exact number of bytes specified must be emitted. Is not legal to emit 1530 // the exact number of bytes specified must be emitted. Is not legal to emit
1531 // relocation information. If any of these constraints are violated it causes 1531 // relocation information. If any of these constraints are violated it causes
1532 // an assertion. 1532 // an assertion.
1533 class CodePatcher { 1533 class CodePatcher {
1534 public: 1534 public:
1535 CodePatcher(byte* address, int size); 1535 CodePatcher(byte* address, int size);
1536 virtual ~CodePatcher(); 1536 ~CodePatcher();
1537 1537
1538 // Macro assembler to emit code. 1538 // Macro assembler to emit code.
1539 MacroAssembler* masm() { return &masm_; } 1539 MacroAssembler* masm() { return &masm_; }
1540 1540
1541 private: 1541 private:
1542 byte* address_; // The address of the code being patched. 1542 byte* address_; // The address of the code being patched.
1543 int size_; // Number of bytes of the expected patch size. 1543 int size_; // Number of bytes of the expected patch size.
1544 MacroAssembler masm_; // Macro assembler used to generate the code. 1544 MacroAssembler masm_; // Macro assembler used to generate the code.
1545 }; 1545 };
1546 1546
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 masm->popfq(); \ 1605 masm->popfq(); \
1606 } \ 1606 } \
1607 masm-> 1607 masm->
1608 #else 1608 #else
1609 #define ACCESS_MASM(masm) masm-> 1609 #define ACCESS_MASM(masm) masm->
1610 #endif 1610 #endif
1611 1611
1612 } } // namespace v8::internal 1612 } } // namespace v8::internal
1613 1613
1614 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1614 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698