Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: src/objects.h

Issue 316173002: Handle "//# sourceURL" comments in the Parser instead of the JS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.js ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 1a0c47a79f4c611eff49f39fb3c5d2037e88949d..a9d255c24170f15b6ee971053f88023afdf7cfe2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6779,6 +6779,9 @@ class Script: public Struct {
// [flags]: Holds an exciting bitfield.
DECL_ACCESSORS(flags, Smi)
+ // [source_url]: the source url (from source map comment)
+ DECL_ACCESSORS(source_url, Object)
+
// [compilation_type]: how the the script was compiled. Encoded in the
// 'flags' field.
inline CompilationType compilation_type();
@@ -6835,7 +6838,9 @@ class Script: public Struct {
kEvalFromSharedOffset + kPointerSize;
static const int kFlagsOffset =
kEvalFrominstructionsOffsetOffset + kPointerSize;
- static const int kSize = kFlagsOffset + kPointerSize;
+ static const int kSourceUrlOffset =
+ kEvalFrominstructionsOffsetOffset + kPointerSize;
yurys 2014/06/05 13:13:39 This should be kFlagsOffset + kPointerSize
marja 2014/06/05 13:19:25 Oops, done.
+ static const int kSize = kSourceUrlOffset + kPointerSize;
private:
int GetLineNumberWithArray(int code_pos);
« no previous file with comments | « src/messages.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698