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

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 + less whitespaces allowed. 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.cc » ('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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 class V8_EXPORT UnboundScript { 939 class V8_EXPORT UnboundScript {
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 // Data read from magic sourceURL and sourceMappingURL comments.
yurys 2014/06/10 14:41:04 Please use /** */ style annotations.
950 Handle<Value> GetSourceURL();
951 Handle<Value> GetSourceMappingURL();
952
949 /** 953 /**
950 * Returns zero based line number of the code_pos location in the script. 954 * Returns zero based line number of the code_pos location in the script.
951 * -1 will be returned if no information available. 955 * -1 will be returned if no information available.
952 */ 956 */
953 int GetLineNumber(int code_pos); 957 int GetLineNumber(int code_pos);
954 958
955 static const int kNoScriptId = 0; 959 static const int kNoScriptId = 0;
956 }; 960 };
957 961
958 962
(...skipping 5685 matching lines...) Expand 10 before | Expand all | Expand 10 after
6644 */ 6648 */
6645 6649
6646 6650
6647 } // namespace v8 6651 } // namespace v8
6648 6652
6649 6653
6650 #undef TYPE_CHECK 6654 #undef TYPE_CHECK
6651 6655
6652 6656
6653 #endif // V8_H_ 6657 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.h » ('j') | src/scanner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698