~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/JavaScriptCore/runtime/Completion.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
     */
40
40
    class Completion {
41
41
    public:
42
 
        Completion(ComplType type = Normal, JSValuePtr value = noValue())
 
42
        Completion(ComplType type = Normal, JSValue value = JSValue())
43
43
            : m_type(type)
44
44
            , m_value(value)
45
45
        {
46
46
        }
47
47
 
48
48
        ComplType complType() const { return m_type; }
49
 
        JSValuePtr value() const { return m_value; }
50
 
        void setValue(JSValuePtr v) { m_value = v; }
 
49
        JSValue value() const { return m_value; }
 
50
        void setValue(JSValue v) { m_value = v; }
51
51
        bool isValueCompletion() const { return m_value; }
52
52
 
53
53
    private:
54
54
        ComplType m_type;
55
 
        JSValuePtr m_value;
 
55
        JSValue m_value;
56
56
    };
57
57
 
58
58
    Completion checkSyntax(ExecState*, const SourceCode&);
59
 
    Completion evaluate(ExecState*, ScopeChain&, const SourceCode&, JSValuePtr thisValue = noValue());
 
59
    Completion evaluate(ExecState*, ScopeChain&, const SourceCode&, JSValue thisValue = JSValue());
60
60
 
61
61
} // namespace JSC
62
62