Revision: 3932
Author: [email protected]
Date: Tue Feb 23 04:40:36 2010
Log: Add comment to generated code that says which code generator compiled
it.
Review URL: http://codereview.chromium.org/652110
http://code.google.com/p/v8/source/detail?r=3932
Modified:
/branches/bleeding_edge/src/arm/codegen-arm.cc
/branches/bleeding_edge/src/arm/fast-codegen-arm.cc
/branches/bleeding_edge/src/arm/full-codegen-arm.cc
/branches/bleeding_edge/src/ia32/codegen-ia32.cc
/branches/bleeding_edge/src/ia32/fast-codegen-ia32.cc
/branches/bleeding_edge/src/ia32/full-codegen-ia32.cc
/branches/bleeding_edge/src/x64/codegen-x64.cc
/branches/bleeding_edge/src/x64/fast-codegen-x64.cc
/branches/bleeding_edge/src/x64/full-codegen-x64.cc
=======================================
--- /branches/bleeding_edge/src/arm/codegen-arm.cc Tue Feb 23 02:29:02 2010
+++ /branches/bleeding_edge/src/arm/codegen-arm.cc Tue Feb 23 04:40:36 2010
@@ -145,6 +145,7 @@
void CodeGenerator::Generate(CompilationInfo* info) {
// Record the position for debugging purposes.
CodeForFunctionPosition(info->function());
+ Comment cmnt(masm_, "[ function compiled by virtual frame code
generator");
// Initialize state.
info_ = info;
=======================================
--- /branches/bleeding_edge/src/arm/fast-codegen-arm.cc Fri Feb 19 06:52:39
2010
+++ /branches/bleeding_edge/src/arm/fast-codegen-arm.cc Tue Feb 23 04:40:36
2010
@@ -179,6 +179,7 @@
void FastCodeGenerator::Generate(CompilationInfo* compilation_info) {
ASSERT(info_ == NULL);
info_ = compilation_info;
+ Comment cmnt(masm_, "[ function compiled by fast code generator");
// Save the caller's frame pointer and set up our own.
Comment prologue_cmnt(masm(), ";; Prologue");
=======================================
--- /branches/bleeding_edge/src/arm/full-codegen-arm.cc Thu Feb 18 04:59:41
2010
+++ /branches/bleeding_edge/src/arm/full-codegen-arm.cc Tue Feb 23 04:40:36
2010
@@ -56,6 +56,7 @@
ASSERT(info_ == NULL);
info_ = info;
SetFunctionPosition(function());
+ Comment cmnt(masm_, "[ function compiled by full code generator");
if (mode == PRIMARY) {
int locals_count = scope()->num_stack_slots();
=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Tue Feb 23 02:29:02
2010
+++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Tue Feb 23 04:40:36
2010
@@ -128,6 +128,7 @@
void CodeGenerator::Generate(CompilationInfo* info) {
// Record the position for debugging purposes.
CodeForFunctionPosition(info->function());
+ Comment cmnt(masm_, "[ function compiled by virtual frame code
generator");
// Initialize state.
info_ = info;
=======================================
--- /branches/bleeding_edge/src/ia32/fast-codegen-ia32.cc Fri Feb 19
06:52:39 2010
+++ /branches/bleeding_edge/src/ia32/fast-codegen-ia32.cc Tue Feb 23
04:40:36 2010
@@ -621,6 +621,7 @@
void FastCodeGenerator::Generate(CompilationInfo* compilation_info) {
ASSERT(info_ == NULL);
info_ = compilation_info;
+ Comment cmnt(masm_, "[ function compiled by fast code generator");
// Save the caller's frame pointer and set up our own.
Comment prologue_cmnt(masm(), ";; Prologue");
=======================================
--- /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Thu Feb 18
04:59:41 2010
+++ /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Tue Feb 23
04:40:36 2010
@@ -55,6 +55,7 @@
ASSERT(info_ == NULL);
info_ = info;
SetFunctionPosition(function());
+ Comment cmnt(masm_, "[ function compiled by full code generator");
if (mode == PRIMARY) {
__ push(ebp); // Caller's frame pointer.
=======================================
--- /branches/bleeding_edge/src/x64/codegen-x64.cc Tue Feb 23 02:29:02 2010
+++ /branches/bleeding_edge/src/x64/codegen-x64.cc Tue Feb 23 04:40:36 2010
@@ -280,6 +280,7 @@
void CodeGenerator::Generate(CompilationInfo* info) {
// Record the position for debugging purposes.
CodeForFunctionPosition(info->function());
+ Comment cmnt(masm_, "[ function compiled by virtual frame code
generator");
// Initialize state.
info_ = info;
=======================================
--- /branches/bleeding_edge/src/x64/fast-codegen-x64.cc Fri Feb 19 06:52:39
2010
+++ /branches/bleeding_edge/src/x64/fast-codegen-x64.cc Tue Feb 23 04:40:36
2010
@@ -188,6 +188,7 @@
void FastCodeGenerator::Generate(CompilationInfo* compilation_info) {
ASSERT(info_ == NULL);
info_ = compilation_info;
+ Comment cmnt(masm_, "[ function compiled by fast code generator");
// Save the caller's frame pointer and set up our own.
Comment prologue_cmnt(masm(), ";; Prologue");
=======================================
--- /branches/bleeding_edge/src/x64/full-codegen-x64.cc Thu Feb 18 04:59:41
2010
+++ /branches/bleeding_edge/src/x64/full-codegen-x64.cc Tue Feb 23 04:40:36
2010
@@ -55,6 +55,7 @@
ASSERT(info_ == NULL);
info_ = info;
SetFunctionPosition(function());
+ Comment cmnt(masm_, "[ function compiled by full code generator");
if (mode == PRIMARY) {
__ push(rbp); // Caller's frame pointer.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev