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

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

Issue 1474763008: Always pass an Isolate to AssemblerBase (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years 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/mips/deoptimizer-mips.cc ('k') | src/mips/macro-assembler-mips.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_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 // the exact number of bytes specified must be emitted. It is not legal to emit 1715 // the exact number of bytes specified must be emitted. It is not legal to emit
1716 // relocation information. If any of these constraints are violated it causes 1716 // relocation information. If any of these constraints are violated it causes
1717 // an assertion to fail. 1717 // an assertion to fail.
1718 class CodePatcher { 1718 class CodePatcher {
1719 public: 1719 public:
1720 enum FlushICache { 1720 enum FlushICache {
1721 FLUSH, 1721 FLUSH,
1722 DONT_FLUSH 1722 DONT_FLUSH
1723 }; 1723 };
1724 1724
1725 CodePatcher(byte* address, 1725 CodePatcher(Isolate* isolate, byte* address, int instructions,
1726 int instructions,
1727 FlushICache flush_cache = FLUSH); 1726 FlushICache flush_cache = FLUSH);
1728 ~CodePatcher(); 1727 ~CodePatcher();
1729 1728
1730 // Macro assembler to emit code. 1729 // Macro assembler to emit code.
1731 MacroAssembler* masm() { return &masm_; } 1730 MacroAssembler* masm() { return &masm_; }
1732 1731
1733 // Emit an instruction directly. 1732 // Emit an instruction directly.
1734 void Emit(Instr instr); 1733 void Emit(Instr instr);
1735 1734
1736 // Emit an address directly. 1735 // Emit an address directly.
(...skipping 18 matching lines...) Expand all
1755 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1754 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1756 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1755 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1757 #else 1756 #else
1758 #define ACCESS_MASM(masm) masm-> 1757 #define ACCESS_MASM(masm) masm->
1759 #endif 1758 #endif
1760 1759
1761 } // namespace internal 1760 } // namespace internal
1762 } // namespace v8 1761 } // namespace v8
1763 1762
1764 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1763 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698