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

Side by Side Diff: src/arm/macro-assembler-arm.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/arm/deoptimizer-arm.cc ('k') | src/arm/macro-assembler-arm.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_ARM_MACRO_ASSEMBLER_ARM_H_ 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_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/frames.h" 10 #include "src/frames.h"
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 // the exact number of bytes specified must be emitted. It is not legal to emit 1498 // the exact number of bytes specified must be emitted. It is not legal to emit
1499 // relocation information. If any of these constraints are violated it causes 1499 // relocation information. If any of these constraints are violated it causes
1500 // an assertion to fail. 1500 // an assertion to fail.
1501 class CodePatcher { 1501 class CodePatcher {
1502 public: 1502 public:
1503 enum FlushICache { 1503 enum FlushICache {
1504 FLUSH, 1504 FLUSH,
1505 DONT_FLUSH 1505 DONT_FLUSH
1506 }; 1506 };
1507 1507
1508 CodePatcher(byte* address, 1508 CodePatcher(Isolate* isolate, byte* address, int instructions,
1509 int instructions,
1510 FlushICache flush_cache = FLUSH); 1509 FlushICache flush_cache = FLUSH);
1511 ~CodePatcher(); 1510 ~CodePatcher();
1512 1511
1513 // Macro assembler to emit code. 1512 // Macro assembler to emit code.
1514 MacroAssembler* masm() { return &masm_; } 1513 MacroAssembler* masm() { return &masm_; }
1515 1514
1516 // Emit an instruction directly. 1515 // Emit an instruction directly.
1517 void Emit(Instr instr); 1516 void Emit(Instr instr);
1518 1517
1519 // Emit an address directly. 1518 // Emit an address directly.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1550 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1552 #else 1551 #else
1553 #define ACCESS_MASM(masm) masm-> 1552 #define ACCESS_MASM(masm) masm->
1554 #endif 1553 #endif
1555 1554
1556 1555
1557 } // namespace internal 1556 } // namespace internal
1558 } // namespace v8 1557 } // namespace v8
1559 1558
1560 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698