Commit e5f5cc95 authored by marja@chromium.org's avatar marja@chromium.org

Fix component build some more.

Not V8_EXPORTing ScriptCompiler::Source got rid of the last errors. This fixes
the new ones created by it. V8_INLINEing these funcs makes sense anyway.

In addition, added declared-private-and-unimplemented assignment operators
which were accidentally omitted.

R=dcarney@chromium.org
BUG=

Review URL: https://codereview.chromium.org/209873004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20188 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 49a7de45
...@@ -1120,6 +1120,7 @@ class V8_EXPORT ScriptCompiler { ...@@ -1120,6 +1120,7 @@ class V8_EXPORT ScriptCompiler {
private: private:
// Prevent copying. Not implemented. // Prevent copying. Not implemented.
CachedData(const CachedData&); CachedData(const CachedData&);
CachedData& operator=(const CachedData&);
}; };
/** /**
...@@ -1129,20 +1130,22 @@ class V8_EXPORT ScriptCompiler { ...@@ -1129,20 +1130,22 @@ class V8_EXPORT ScriptCompiler {
class Source { class Source {
public: public:
// Source takes ownership of CachedData. // Source takes ownership of CachedData.
Source(Local<String> source_string, const ScriptOrigin& origin, V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
CachedData* cached_data = NULL); CachedData* cached_data = NULL);
Source(Local<String> source_string, CachedData* cached_data = NULL); V8_INLINE Source(Local<String> source_string,
~Source(); CachedData* cached_data = NULL);
V8_INLINE ~Source();
// Ownership of the CachedData or its buffers is *not* transferred to the // Ownership of the CachedData or its buffers is *not* transferred to the
// caller. The CachedData object is alive as long as the Source object is // caller. The CachedData object is alive as long as the Source object is
// alive. // alive.
const CachedData* GetCachedData() const; V8_INLINE const CachedData* GetCachedData() const;
private: private:
friend class ScriptCompiler; friend class ScriptCompiler;
// Prevent copying. Not implemented. // Prevent copying. Not implemented.
Source(const Source&); Source(const Source&);
Source& operator=(const Source&);
Local<String> source_string; Local<String> source_string;
...@@ -6073,6 +6076,32 @@ Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const { ...@@ -6073,6 +6076,32 @@ Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const {
} }
ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
CachedData* data)
: source_string(string),
resource_name(origin.ResourceName()),
resource_line_offset(origin.ResourceLineOffset()),
resource_column_offset(origin.ResourceColumnOffset()),
resource_is_shared_cross_origin(origin.ResourceIsSharedCrossOrigin()),
cached_data(data) {}
ScriptCompiler::Source::Source(Local<String> string,
CachedData* data)
: source_string(string), cached_data(data) {}
ScriptCompiler::Source::~Source() {
delete cached_data;
}
const ScriptCompiler::CachedData* ScriptCompiler::Source::GetCachedData()
const {
return cached_data;
}
Handle<Boolean> Boolean::New(Isolate* isolate, bool value) { Handle<Boolean> Boolean::New(Isolate* isolate, bool value) {
return value ? True(isolate) : False(isolate); return value ? True(isolate) : False(isolate);
} }
......
...@@ -1624,32 +1624,6 @@ ScriptCompiler::CachedData::~CachedData() { ...@@ -1624,32 +1624,6 @@ ScriptCompiler::CachedData::~CachedData() {
} }
ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
CachedData* data)
: source_string(string),
resource_name(origin.ResourceName()),
resource_line_offset(origin.ResourceLineOffset()),
resource_column_offset(origin.ResourceColumnOffset()),
resource_is_shared_cross_origin(origin.ResourceIsSharedCrossOrigin()),
cached_data(data) {}
ScriptCompiler::Source::Source(Local<String> string,
CachedData* data)
: source_string(string), cached_data(data) {}
ScriptCompiler::Source::~Source() {
delete cached_data;
}
const ScriptCompiler::CachedData* ScriptCompiler::Source::GetCachedData()
const {
return cached_data;
}
Local<Script> UnboundScript::BindToCurrentContext() { Local<Script> UnboundScript::BindToCurrentContext() {
i::Handle<i::HeapObject> obj = i::Handle<i::HeapObject> obj =
i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this)); i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this));
......
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