Chromium Code Reviews| 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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 971 Handle<Integer> resource_column_offset_; | 971 Handle<Integer> resource_column_offset_; |
| 972 Handle<Boolean> resource_is_shared_cross_origin_; | 972 Handle<Boolean> resource_is_shared_cross_origin_; |
| 973 }; | 973 }; |
| 974 | 974 |
| 975 | 975 |
| 976 /** | 976 /** |
| 977 * A compiled JavaScript script. | 977 * A compiled JavaScript script. |
| 978 */ | 978 */ |
| 979 class V8_EXPORT Script { | 979 class V8_EXPORT Script { |
| 980 public: | 980 public: |
| 981 // Script compilation types. | |
| 982 enum CompilationType { | |
|
Michael Starzinger
2013/08/19 19:42:28
We try not to expose internal behavior (and consta
| |
| 983 COMPILATION_TYPE_HOST = 0, | |
| 984 COMPILATION_TYPE_EVAL = 1 | |
| 985 }; | |
| 986 | |
| 981 /** | 987 /** |
| 982 * Compiles the specified script (context-independent). | 988 * Compiles the specified script (context-independent). |
| 983 * | 989 * |
| 984 * \param source Script source code. | 990 * \param source Script source code. |
| 985 * \param origin Script origin, owned by caller, no references are kept | 991 * \param origin Script origin, owned by caller, no references are kept |
| 986 * when New() returns | 992 * when New() returns |
| 987 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile() | 993 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile() |
| 988 * using pre_data speeds compilation if it's done multiple times. | 994 * using pre_data speeds compilation if it's done multiple times. |
| 989 * Owned by caller, no references are kept when New() returns. | 995 * Owned by caller, no references are kept when New() returns. |
| 990 * \param script_data Arbitrary data associated with script. Using | 996 * \param script_data Arbitrary data associated with script. Using |
| (...skipping 5595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6586 */ | 6592 */ |
| 6587 | 6593 |
| 6588 | 6594 |
| 6589 } // namespace v8 | 6595 } // namespace v8 |
| 6590 | 6596 |
| 6591 | 6597 |
| 6592 #undef TYPE_CHECK | 6598 #undef TYPE_CHECK |
| 6593 | 6599 |
| 6594 | 6600 |
| 6595 #endif // V8_H_ | 6601 #endif // V8_H_ |
| OLD | NEW |