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

Unified Diff: src/macro-assembler.h

Issue 2843933002: [cleanup] Minor cleanups concerning assemblers and code generation. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/macro-assembler.h
diff --git a/src/macro-assembler.h b/src/macro-assembler.h
index 783713fd26b89d754d292b8222d2a319d4a31505..77a402d5ca77b83bed8a958229f646385ea5ab9a 100644
--- a/src/macro-assembler.h
+++ b/src/macro-assembler.h
@@ -148,22 +148,22 @@ class FrameAndConstantPoolScope {
// Class for scoping the the unavailability of constant pool access.
class ConstantPoolUnavailableScope {
public:
- explicit ConstantPoolUnavailableScope(MacroAssembler* masm)
- : masm_(masm),
+ explicit ConstantPoolUnavailableScope(Assembler* assembler)
+ : assembler_(assembler),
old_constant_pool_available_(FLAG_enable_embedded_constant_pool &&
- masm->is_constant_pool_available()) {
+ assembler->is_constant_pool_available()) {
if (FLAG_enable_embedded_constant_pool) {
- masm_->set_constant_pool_available(false);
+ assembler->set_constant_pool_available(false);
}
}
~ConstantPoolUnavailableScope() {
if (FLAG_enable_embedded_constant_pool) {
- masm_->set_constant_pool_available(old_constant_pool_available_);
+ assembler_->set_constant_pool_available(old_constant_pool_available_);
}
}
private:
- MacroAssembler* masm_;
+ Assembler* assembler_;
int old_constant_pool_available_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ConstantPoolUnavailableScope);
@@ -199,11 +199,11 @@ class NoCurrentFrameScope {
class Comment {
public:
- Comment(MacroAssembler* masm, const char* msg);
+ Comment(Assembler* assembler, const char* msg);
~Comment();
private:
- MacroAssembler* masm_;
+ Assembler* assembler_;
const char* msg_;
};
@@ -211,7 +211,7 @@ class Comment {
class Comment {
public:
- Comment(MacroAssembler*, const char*) {}
+ Comment(Assembler*, const char*) {}
};
#endif // DEBUG
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698