[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

ariya at webkit.org ariya at webkit.org
Wed Dec 22 18:43:32 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit fa69ec940800c13e0632b757a592588385e09ef2
Author: ariya at webkit.org <ariya at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Dec 16 16:32:14 2010 +0000

    2010-12-16  Ariya Hidayat  <ariya at sencha.com>
    
            Reviewed by Andreas Kling.
    
            [JSC] Const correctness in ASTBuilder and SyntaxChecker
            https://bugs.webkit.org/show_bug.cgi?id=51141
    
            * parser/ASTBuilder.h:
            (JSC::ASTBuilder::getName):
            (JSC::ASTBuilder::getType):
            (JSC::ASTBuilder::isResolve):
            * parser/SyntaxChecker.h:
            (JSC::SyntaxChecker::operatorStackPop):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74192 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index e5d64f4..c205af6 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,17 @@
+2010-12-16  Ariya Hidayat  <ariya at sencha.com>
+
+        Reviewed by Andreas Kling.
+
+        [JSC] Const correctness in ASTBuilder and SyntaxChecker
+        https://bugs.webkit.org/show_bug.cgi?id=51141
+
+        * parser/ASTBuilder.h:
+        (JSC::ASTBuilder::getName):
+        (JSC::ASTBuilder::getType):
+        (JSC::ASTBuilder::isResolve):
+        * parser/SyntaxChecker.h:
+        (JSC::SyntaxChecker::operatorStackPop):
+
 2010-12-15  Kenneth Russell  <kbr at google.com>
 
         Reviewed by James Robinson.
diff --git a/JavaScriptCore/parser/ASTBuilder.h b/JavaScriptCore/parser/ASTBuilder.h
index 9a68144..04cf272 100644
--- a/JavaScriptCore/parser/ASTBuilder.h
+++ b/JavaScriptCore/parser/ASTBuilder.h
@@ -576,10 +576,10 @@ public:
         return result;
     }
     
-    const Identifier& getName(Property property) { return property->name(); }
-    PropertyNode::Type getType(Property property) { return property->type(); }
+    const Identifier& getName(Property property) const { return property->name(); }
+    PropertyNode::Type getType(Property property) const { return property->type(); }
 
-    bool isResolve(ExpressionNode* expr) { return expr->isResolveNode(); }
+    bool isResolve(ExpressionNode* expr) const { return expr->isResolveNode(); }
 
 private:
     struct Scope {
diff --git a/JavaScriptCore/parser/SyntaxChecker.h b/JavaScriptCore/parser/SyntaxChecker.h
index f9093a7..b00e710 100644
--- a/JavaScriptCore/parser/SyntaxChecker.h
+++ b/JavaScriptCore/parser/SyntaxChecker.h
@@ -203,9 +203,9 @@ public:
     
     void assignmentStackAppend(int, int, int, int, int, Operator) { }
     int createAssignment(int, int, int, int, int) { ASSERT_NOT_REACHED(); return 1; }
-    const Identifier& getName(const Property& property) { ASSERT(property.name); return *property.name; }
-    PropertyNode::Type getType(const Property& property) { return property.type; }
-    bool isResolve(ExpressionType expr) { return expr == ResolveExpr || expr == ResolveEvalExpr; }
+    const Identifier& getName(const Property& property) const { ASSERT(property.name); return *property.name; }
+    PropertyNode::Type getType(const Property& property) const { return property.type; }
+    bool isResolve(ExpressionType expr) const { return expr == ResolveExpr || expr == ResolveEvalExpr; }
     
 private:
     int m_topBinaryExpr;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list