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

Side by Side Diff: include/v8.h

Issue 22831010: Move enum CompilationType from objects.h to include/v8.h, (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »
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 // 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698