OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 * compiling it, and can be stored between compilations. When script | 938 * compiling it, and can be stored between compilations. When script |
939 * data is given to the compile method compilation will be faster. | 939 * data is given to the compile method compilation will be faster. |
940 */ | 940 */ |
941 class V8_EXPORT ScriptData { // NOLINT | 941 class V8_EXPORT ScriptData { // NOLINT |
942 public: | 942 public: |
943 virtual ~ScriptData() { } | 943 virtual ~ScriptData() { } |
944 | 944 |
945 /** | 945 /** |
946 * Pre-compiles the specified script (context-independent). | 946 * Pre-compiles the specified script (context-independent). |
947 * | 947 * |
948 * \param input Pointer to UTF-8 script source code. | |
949 * \param length Length of UTF-8 script source code. | |
950 */ | |
951 static ScriptData* PreCompile(Isolate* isolate, | |
952 const char* input, | |
953 int length); | |
954 | |
955 /** | |
956 * Pre-compiles the specified script (context-independent). | |
957 * | |
958 * NOTE: Pre-compilation using this method cannot happen on another thread | 948 * NOTE: Pre-compilation using this method cannot happen on another thread |
959 * without using Lockers. | 949 * without using Lockers. |
960 * | 950 * |
961 * \param source Script source code. | 951 * \param source Script source code. |
962 */ | 952 */ |
963 static ScriptData* PreCompile(Handle<String> source); | 953 static ScriptData* PreCompile(Handle<String> source); |
964 | 954 |
965 /** | 955 /** |
966 * Load previous pre-compilation data. | 956 * Load previous pre-compilation data. |
967 * | 957 * |
(...skipping 5460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6428 */ | 6418 */ |
6429 | 6419 |
6430 | 6420 |
6431 } // namespace v8 | 6421 } // namespace v8 |
6432 | 6422 |
6433 | 6423 |
6434 #undef TYPE_CHECK | 6424 #undef TYPE_CHECK |
6435 | 6425 |
6436 | 6426 |
6437 #endif // V8_H_ | 6427 #endif // V8_H_ |
OLD | NEW |