Revision: 21487
Author: [email protected]
Date: Mon May 26 09:36:13 2014 UTC
Log: Always fully qualify the namespace to use in v8.h
Also, remove some unused methods.
BUG=none
[email protected]
LOG=n
Review URL: https://codereview.chromium.org/297223006
http://code.google.com/p/v8/source/detail?r=21487
Modified:
/branches/bleeding_edge/include/v8.h
=======================================
--- /branches/bleeding_edge/include/v8.h Thu May 22 15:27:57 2014 UTC
+++ /branches/bleeding_edge/include/v8.h Mon May 26 09:36:13 2014 UTC
@@ -5648,13 +5648,14 @@
return reinterpret_cast<internal::Object**>(addr + index *
kApiPointerSize);
}
- template <typename T> V8_INLINE static T ReadField(Object* ptr, int
offset) {
+ template <typename T>
+ V8_INLINE static T ReadField(internal::Object* ptr, int offset) {
uint8_t* addr = reinterpret_cast<uint8_t*>(ptr) + offset -
kHeapObjectTag;
return *reinterpret_cast<T*>(addr);
}
template <typename T>
- V8_INLINE static T ReadEmbedderData(Context* context, int index) {
+ V8_INLINE static T ReadEmbedderData(v8::Context* context, int index) {
typedef internal::Object O;
typedef internal::Internals I;
O* ctx = *reinterpret_cast<O**>(context);
@@ -5665,14 +5666,6 @@
I::kFixedArrayHeaderSize + (internal::kApiPointerSize * index);
return I::ReadField<T>(embedder_data, value_offset);
}
-
- V8_INLINE static bool CanCastToHeapObject(void* o) { return false; }
- V8_INLINE static bool CanCastToHeapObject(Context* o) { return true; }
- V8_INLINE static bool CanCastToHeapObject(String* o) { return true; }
- V8_INLINE static bool CanCastToHeapObject(Object* o) { return true; }
- V8_INLINE static bool CanCastToHeapObject(Message* o) { return true; }
- V8_INLINE static bool CanCastToHeapObject(StackTrace* o) { return true; }
- V8_INLINE static bool CanCastToHeapObject(StackFrame* o) { return true; }
};
} // namespace internal
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.