Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Side by Side Diff: JavaScriptCore/runtime/JSCell.h

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « JavaScriptCore/runtime/JSByteArray.h ('k') | JavaScriptCore/runtime/JSFunction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
4 * Copyright (C) 2003, 2004, 2005, 2007, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2007, 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 25
26 #include <wtf/Noncopyable.h> 26 #include <wtf/Noncopyable.h>
27 #include "Structure.h" 27 #include "Structure.h"
28 #include "JSValue.h" 28 #include "JSValue.h"
29 #include "JSImmediate.h" 29 #include "JSImmediate.h"
30 #include "Collector.h" 30 #include "Collector.h"
31 31
32 namespace JSC { 32 namespace JSC {
33 33
34 class JSCell : Noncopyable { 34 class JSCell : Noncopyable {
35 friend class JIT;
36 friend class GetterSetter; 35 friend class GetterSetter;
37 friend class Heap; 36 friend class Heap;
37 friend class JIT;
38 friend class JSNumberCell; 38 friend class JSNumberCell;
39 friend class JSObject; 39 friend class JSObject;
40 friend class JSPropertyNameIterator; 40 friend class JSPropertyNameIterator;
41 friend class JSString; 41 friend class JSString;
42 friend class JSValuePtr; 42 friend class JSValuePtr;
43 friend class Interpreter; 43 friend class VPtrSet;
44 44
45 private: 45 private:
46 explicit JSCell(Structure*); 46 explicit JSCell(Structure*);
47 virtual ~JSCell(); 47 virtual ~JSCell();
48 48
49 public: 49 public:
50 // Querying the type. 50 // Querying the type.
51 bool isNumber() const; 51 bool isNumber() const;
52 bool isString() const; 52 bool isString() const;
53 bool isObject() const; 53 bool isObject() const;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 inline JSValuePtr JSValuePtr::getJSNumber() 293 inline JSValuePtr JSValuePtr::getJSNumber()
294 { 294 {
295 return JSImmediate::isNumber(asValue()) ? asValue() : JSImmediate::isImm ediate(asValue()) ? noValue() : asCell()->getJSNumber(); 295 return JSImmediate::isNumber(asValue()) ? asValue() : JSImmediate::isImm ediate(asValue()) ? noValue() : asCell()->getJSNumber();
296 } 296 }
297 297
298 } // namespace JSC 298 } // namespace JSC
299 299
300 #endif // JSCell_h 300 #endif // JSCell_h
301 301
302 302
OLDNEW
« no previous file with comments | « JavaScriptCore/runtime/JSByteArray.h ('k') | JavaScriptCore/runtime/JSFunction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698