]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - profiler/ProfilerBytecodes.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / profiler / ProfilerBytecodes.h
index 47d856cb472c0f89d108da8f2602963f28fd4a1a..e445980197571a9a9d49b4a7756a29341bd76118 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -40,8 +40,8 @@ public:
     ~Bytecodes();
     
     size_t id() const { return m_id; }
     ~Bytecodes();
     
     size_t id() const { return m_id; }
-    const String& inferredName() const { return m_inferredName; }
-    const String& sourceCode() const { return m_sourceCode; }
+    const CString& inferredName() const { return m_inferredName; }
+    const CString& sourceCode() const { return m_sourceCode; }
     unsigned instructionCount() const { return m_instructionCount; }
     CodeBlockHash hash() const { return m_hash; }
 
     unsigned instructionCount() const { return m_instructionCount; }
     CodeBlockHash hash() const { return m_hash; }
 
@@ -51,8 +51,8 @@ public:
     
 private:
     size_t m_id;
     
 private:
     size_t m_id;
-    String m_inferredName;
-    String m_sourceCode;
+    CString m_inferredName;
+    CString m_sourceCode;
     CodeBlockHash m_hash;
     unsigned m_instructionCount;
 };
     CodeBlockHash m_hash;
     unsigned m_instructionCount;
 };