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

Side by Side Diff: include/v8.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: Code review (svenpanne@) 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/accessors.h » ('j') | src/scanner.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 public: 940 public:
941 /** 941 /**
942 * Binds the script to the currently entered context. 942 * Binds the script to the currently entered context.
943 */ 943 */
944 Local<Script> BindToCurrentContext(); 944 Local<Script> BindToCurrentContext();
945 945
946 int GetId(); 946 int GetId();
947 Handle<Value> GetScriptName(); 947 Handle<Value> GetScriptName();
948 948
949 /** 949 /**
950 * Data read from magic sourceURL comments.
951 */
952 Handle<Value> GetSourceURL();
953 /**
954 * Data read from magic sourceMappingURL comments.
955 */
956 Handle<Value> GetSourceMappingURL();
957
958 /**
950 * Returns zero based line number of the code_pos location in the script. 959 * Returns zero based line number of the code_pos location in the script.
951 * -1 will be returned if no information available. 960 * -1 will be returned if no information available.
952 */ 961 */
953 int GetLineNumber(int code_pos); 962 int GetLineNumber(int code_pos);
954 963
955 static const int kNoScriptId = 0; 964 static const int kNoScriptId = 0;
956 }; 965 };
957 966
958 967
959 /** 968 /**
(...skipping 5694 matching lines...) Expand 10 before | Expand all | Expand 10 after
6654 */ 6663 */
6655 6664
6656 6665
6657 } // namespace v8 6666 } // namespace v8
6658 6667
6659 6668
6660 #undef TYPE_CHECK 6669 #undef TYPE_CHECK
6661 6670
6662 6671
6663 #endif // V8_H_ 6672 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.h » ('j') | src/scanner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698