Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 6607c45f6ea9290f63775a3b6b421ecd9e10372b..fa8632077d4bfad77d0191705906512798a35fae 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -916,20 +916,24 @@ class ScriptOrigin { |
Handle<Value> resource_name, |
Handle<Integer> resource_line_offset = Handle<Integer>(), |
Handle<Integer> resource_column_offset = Handle<Integer>(), |
- Handle<Boolean> resource_is_shared_cross_origin = Handle<Boolean>()) |
+ Handle<Boolean> resource_is_shared_cross_origin = Handle<Boolean>(), |
+ Handle<Integer> script_id = Handle<Integer>()) |
: resource_name_(resource_name), |
resource_line_offset_(resource_line_offset), |
resource_column_offset_(resource_column_offset), |
- resource_is_shared_cross_origin_(resource_is_shared_cross_origin) { } |
+ resource_is_shared_cross_origin_(resource_is_shared_cross_origin), |
+ script_id_(script_id) { } |
V8_INLINE Handle<Value> ResourceName() const; |
V8_INLINE Handle<Integer> ResourceLineOffset() const; |
V8_INLINE Handle<Integer> ResourceColumnOffset() const; |
V8_INLINE Handle<Boolean> ResourceIsSharedCrossOrigin() const; |
+ V8_INLINE Handle<Integer> ScriptID() const; |
private: |
Handle<Value> resource_name_; |
Handle<Integer> resource_line_offset_; |
Handle<Integer> resource_column_offset_; |
Handle<Boolean> resource_is_shared_cross_origin_; |
+ Handle<Integer> script_id_; |
}; |
@@ -6119,11 +6123,17 @@ Handle<Integer> ScriptOrigin::ResourceColumnOffset() const { |
return resource_column_offset_; |
} |
+ |
Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const { |
return resource_is_shared_cross_origin_; |
} |
+Handle<Integer> ScriptOrigin::ScriptID() const { |
+ return script_id_; |
+} |
+ |
+ |
ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin, |
CachedData* data) |
: source_string(string), |