OLD | NEW |
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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 static Local<Script> Compile(Handle<String> source, | 1004 static Local<Script> Compile(Handle<String> source, |
1005 ScriptOrigin* origin = NULL); | 1005 ScriptOrigin* origin = NULL); |
1006 | 1006 |
1007 // To be decprecated, use the Compile above. | 1007 // To be decprecated, use the Compile above. |
1008 static Local<Script> Compile(Handle<String> source, | 1008 static Local<Script> Compile(Handle<String> source, |
1009 Handle<String> file_name); | 1009 Handle<String> file_name); |
1010 | 1010 |
1011 /** | 1011 /** |
1012 * Runs the script returning the resulting value. It will be run in the | 1012 * Runs the script returning the resulting value. It will be run in the |
1013 * context in which it was created (ScriptCompiler::CompileBound or | 1013 * context in which it was created (ScriptCompiler::CompileBound or |
1014 * UnboundScript::BindToGlobalContext()). | 1014 * UnboundScript::BindToCurrentContext()). |
1015 */ | 1015 */ |
1016 Local<Value> Run(); | 1016 Local<Value> Run(); |
1017 | 1017 |
1018 /** | 1018 /** |
1019 * Returns the corresponding context-unbound script. | 1019 * Returns the corresponding context-unbound script. |
1020 */ | 1020 */ |
1021 Local<UnboundScript> GetUnboundScript(); | 1021 Local<UnboundScript> GetUnboundScript(); |
1022 | 1022 |
1023 V8_DEPRECATED("Use GetUnboundScript()->GetId()", | 1023 V8_DEPRECATED("Use GetUnboundScript()->GetId()", |
1024 int GetId()) { | 1024 int GetId()) { |
(...skipping 6382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7407 */ | 7407 */ |
7408 | 7408 |
7409 | 7409 |
7410 } // namespace v8 | 7410 } // namespace v8 |
7411 | 7411 |
7412 | 7412 |
7413 #undef TYPE_CHECK | 7413 #undef TYPE_CHECK |
7414 | 7414 |
7415 | 7415 |
7416 #endif // V8_H_ | 7416 #endif // V8_H_ |
OLD | NEW |