namespace internal {
// A SourceCodeCache uses a FixedArray to store pairs of
-// (AsciiString*, JSFunction*), mapping names of native code files
+// (OneByteString*, JSFunction*), mapping names of native code files
// (runtime.js, etc.) to precompiled functions. Instead of mapping
// names to functions it might make sense to let the JS2C tool
// generate an index for each native JS file.
-class SourceCodeCache V8_FINAL BASE_EMBEDDED {
+class SourceCodeCache FINAL BASE_EMBEDDED {
public:
explicit SourceCodeCache(Script::Type type): type_(type), cache_(NULL) { }
}
void Iterate(ObjectVisitor* v) {
- v->VisitPointer(BitCast<Object**, FixedArray**>(&cache_));
+ v->VisitPointer(bit_cast<Object**, FixedArray**>(&cache_));
}
bool Lookup(Vector<const char> name, Handle<SharedFunctionInfo>* handle) {
// The Boostrapper is the public interface for creating a JavaScript global
// context.
-class Bootstrapper V8_FINAL {
+class Bootstrapper FINAL {
public:
static void InitializeOncePerProcess();
static void TearDownExtensions();
};
-class BootstrapperActive V8_FINAL BASE_EMBEDDED {
+class BootstrapperActive FINAL BASE_EMBEDDED {
public:
explicit BootstrapperActive(Bootstrapper* bootstrapper)
: bootstrapper_(bootstrapper) {
};
-class NativesExternalStringResource V8_FINAL
- : public v8::String::ExternalAsciiStringResource {
+class NativesExternalStringResource FINAL
+ : public v8::String::ExternalOneByteStringResource {
public:
NativesExternalStringResource(Bootstrapper* bootstrapper,
const char* source,
size_t length);
- virtual const char* data() const V8_OVERRIDE { return data_; }
- virtual size_t length() const V8_OVERRIDE { return length_; }
+ virtual const char* data() const OVERRIDE { return data_; }
+ virtual size_t length() const OVERRIDE { return length_; }
private:
const char* data_;