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

Unified Diff: include/v8.h

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/toolchain.gypi ('k') | src/accessors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index eb166ab68d2e53745f8659ae1c1648785488d215..36077402a287046e84cf5f4dc8c1d6bd120a3ab3 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2719,15 +2719,11 @@ class V8EXPORT Date : public Object {
public:
static Local<Value> New(double time);
- // Deprecated, use Date::ValueOf() instead.
- // TODO(svenpanne) Actually deprecate when Chrome is adapted.
- double NumberValue() const { return ValueOf(); }
-
/**
* A specialization of Value::NumberValue that is more efficient
* because we know the structure of this object.
*/
- double ValueOf() const;
+ double NumberValue() const;
V8_INLINE(static Date* Cast(v8::Value* obj));
@@ -2757,14 +2753,10 @@ class V8EXPORT NumberObject : public Object {
public:
static Local<Value> New(double value);
- // Deprecated, use NumberObject::ValueOf() instead.
- // TODO(svenpanne) Actually deprecate when Chrome is adapted.
- double NumberValue() const { return ValueOf(); }
-
/**
* Returns the Number held by the object.
*/
- double ValueOf() const;
+ double NumberValue() const;
V8_INLINE(static NumberObject* Cast(v8::Value* obj));
@@ -2780,14 +2772,10 @@ class V8EXPORT BooleanObject : public Object {
public:
static Local<Value> New(bool value);
- // Deprecated, use BooleanObject::ValueOf() instead.
- // TODO(svenpanne) Actually deprecate when Chrome is adapted.
- bool BooleanValue() const { return ValueOf(); }
-
/**
* Returns the Boolean held by the object.
*/
- bool ValueOf() const;
+ bool BooleanValue() const;
V8_INLINE(static BooleanObject* Cast(v8::Value* obj));
@@ -2803,14 +2791,10 @@ class V8EXPORT StringObject : public Object {
public:
static Local<Value> New(Handle<String> value);
- // Deprecated, use StringObject::ValueOf() instead.
- // TODO(svenpanne) Actually deprecate when Chrome is adapted.
- Local<String> StringValue() const { return ValueOf(); }
-
/**
* Returns the String held by the object.
*/
- Local<String> ValueOf() const;
+ Local<String> StringValue() const;
V8_INLINE(static StringObject* Cast(v8::Value* obj));
@@ -2828,14 +2812,10 @@ class V8EXPORT SymbolObject : public Object {
public:
static Local<Value> New(Isolate* isolate, Handle<Symbol> value);
- // Deprecated, use SymbolObject::ValueOf() instead.
- // TODO(svenpanne) Actually deprecate when Chrome is adapted.
- Local<Symbol> SymbolValue() const { return ValueOf(); }
-
/**
* Returns the Symbol held by the object.
*/
- Local<Symbol> ValueOf() const;
+ Local<Symbol> SymbolValue() const;
V8_INLINE(static SymbolObject* Cast(v8::Value* obj));
« no previous file with comments | « build/toolchain.gypi ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698