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

Unified Diff: src/codegen.cc

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/assembler.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
diff --git a/src/codegen.cc b/src/codegen.cc
index 11837e97ba838a6c922e550da0425e2f476ad3b6..d43d1f47b442f3d0ff5fbb452592a670a3262e2f 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -69,24 +69,20 @@ UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction)
#undef UNARY_MATH_FUNCTION
-#define __ ACCESS_MASM(masm_)
-
#ifdef DEBUG
-Comment::Comment(MacroAssembler* masm, const char* msg)
- : masm_(masm), msg_(msg) {
- __ RecordComment(msg);
+Comment::Comment(Assembler* assembler, const char* msg)
+ : assembler_(assembler), msg_(msg) {
+ assembler_->RecordComment(msg);
}
Comment::~Comment() {
- if (msg_[0] == '[') __ RecordComment("]");
+ if (msg_[0] == '[') assembler_->RecordComment("]");
}
#endif // DEBUG
-#undef __
-
void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) {
bool print_ast = false;
« no previous file with comments | « src/assembler.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698