2008-12-02 Geoffrey Garen <ggaren@apple.com>
[WebKit-https.git] / JavaScriptCore / runtime / JSNumberCell.h
index 8e23d62..f398362 100644 (file)
 #ifndef JSNumberCell_h
 #define JSNumberCell_h
 
-#include "ExecState.h"
+#include "CallFrame.h"
 #include "JSCell.h"
 #include "JSImmediate.h"
-#include "collector.h"
-#include "ustring.h"
+#include "Collector.h"
+#include "UString.h"
 #include <stddef.h> // for size_t
 
 namespace JSC {
@@ -42,7 +42,7 @@ namespace JSC {
     struct Instruction;
 
     class JSNumberCell : public JSCell {
-        friend class CTI;
+        friend class JIT;
         friend JSValue* jsNumberCell(JSGlobalData*, double);
         friend JSValue* jsNaN(JSGlobalData*);
         friend JSValue* jsNumberCell(ExecState*, double);
@@ -82,17 +82,17 @@ namespace JSC {
     #endif
         }
 
-        static PassRefPtr<StructureID> createStructureID(JSValue* proto) { return StructureID::create(proto, TypeInfo(NumberType, NeedsThisConversion)); }
+        static PassRefPtr<Structure> createStructure(JSValue* proto) { return Structure::create(proto, TypeInfo(NumberType, NeedsThisConversion)); }
 
     private:
         JSNumberCell(JSGlobalData* globalData, double value)
-            : JSCell(globalData->numberStructureID.get())
+            : JSCell(globalData->numberStructure.get())
             , m_value(value)
         {
         }
 
         JSNumberCell(ExecState* exec, double value)
-            : JSCell(exec->globalData().numberStructureID.get())
+            : JSCell(exec->globalData().numberStructure.get())
             , m_value(value)
         {
         }