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

Unified Diff: runtime/vm/code_generator_ia32.cc

Issue 10407019: Extend assembler with ability to produce comments for the generated code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Srdjan comments Created 8 years, 7 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
Index: runtime/vm/code_generator_ia32.cc
diff --git a/runtime/vm/code_generator_ia32.cc b/runtime/vm/code_generator_ia32.cc
index 252159e67776d9b504e91975a01ae0fd70769167..8757b886b6677ed305ad5e69b103592f04407c05 100644
--- a/runtime/vm/code_generator_ia32.cc
+++ b/runtime/vm/code_generator_ia32.cc
@@ -267,6 +267,11 @@ void CodeGenerator::FinalizeExceptionHandlers(const Code& code) {
}
+void CodeGenerator::FinalizeComments(const Code& code) {
+ code.set_comments(assembler_->GetCodeComments());
+}
+
+
void CodeGenerator::GenerateLoadVariable(Register dst,
const LocalVariable& variable) {
if (variable.is_captured()) {

Powered by Google App Engine
This is Rietveld 408576698