Revision: 2806
Author: [email protected]
Date: Tue Sep  1 23:55:49 2009
Log: Add code creation logging for construct stubs.

Otherwise, tick processor reports unknown code deletes / moves for them.

Review URL: http://codereview.chromium.org/178060
http://code.google.com/p/v8/source/detail?r=2806

Modified:
  /branches/bleeding_edge/src/stub-cache.cc

=======================================
--- /branches/bleeding_edge/src/stub-cache.cc   Wed Aug 26 05:22:44 2009
+++ /branches/bleeding_edge/src/stub-cache.cc   Tue Sep  1 23:55:49 2009
@@ -1099,9 +1099,14 @@

  Object* ConstructStubCompiler::GetCode() {
    Code::Flags flags = Code::ComputeFlags(Code::STUB);
-  return GetCodeWithFlags(flags, "ConstructStub");
-}
-
+  Object* result = GetCodeWithFlags(flags, "ConstructStub");
+  if (!result->IsFailure()) {
+    Code* code = Code::cast(result);
+    USE(code);
+    LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub"));
+  }
+  return result;
+}


  } }  // namespace v8::internal

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to