Remove some unnecessary namespace alias definitions.

We can pick the namespace alias 'i' from v8.h which is already included
in those files.

BUG=None
TEST=None

R=mnaganov@chromium.org
Signed-off-by: 's avatarThiago Farina <tfarina@chromium.org>

Review URL: http://codereview.chromium.org/7621035

--------------

Inline the implementation of Handle default ctor.

BUG=None
TEST=None

R=mnaganov@chromium.org
Signed-off-by: 's avatarThiago Farina <tfarina@chromium.org>

Review URL: http://codereview.chromium.org/7669013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8953 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4b941373
......@@ -171,12 +171,12 @@ template <class T> class Handle {
/**
* Creates an empty handle.
*/
inline Handle();
inline Handle() : val_(0) {}
/**
* Creates a new handle for the specified value.
*/
inline explicit Handle(T* val) : val_(val) { }
inline explicit Handle(T* val) : val_(val) {}
/**
* Creates a handle for the contents of the specified handle. This
......@@ -203,14 +203,14 @@ template <class T> class Handle {
*/
inline bool IsEmpty() const { return val_ == 0; }
inline T* operator->() const { return val_; }
inline T* operator*() const { return val_; }
/**
* Sets the handle to be empty. IsEmpty() will then return true.
*/
inline void Clear() { this->val_ = 0; }
inline void Clear() { val_ = 0; }
inline T* operator->() const { return val_; }
inline T* operator*() const { return val_; }
/**
* Checks whether two handles are the same.
......@@ -3826,10 +3826,6 @@ class Internals {
} // namespace internal
template <class T>
Handle<T>::Handle() : val_(0) { }
template <class T>
Local<T>::Local() : Handle<T>() { }
......
......@@ -72,8 +72,6 @@ using ::v8::Undefined;
using ::v8::V8;
using ::v8::Value;
namespace i = ::i;
static void ExpectString(const char* code, const char* expected) {
Local<Value> result = CompileRun(code);
......
......@@ -54,10 +54,6 @@ using ::v8::String;
using ::v8::Value;
using ::v8::V8;
namespace i = ::i;
// Migrating an isolate
class KangarooThread : public v8::internal::Thread {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment