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

Side by Side Diff: src/compiler.h

Issue 606053: Enable passing of script data via script creation methods (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 10 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 | « src/bootstrapper.cc ('k') | src/compiler.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // All routines return a JSFunction. 88 // All routines return a JSFunction.
89 // If an error occurs an exception is raised and 89 // If an error occurs an exception is raised and
90 // the return handle contains NULL. 90 // the return handle contains NULL.
91 91
92 // Compile a String source within a context. 92 // Compile a String source within a context.
93 static Handle<JSFunction> Compile(Handle<String> source, 93 static Handle<JSFunction> Compile(Handle<String> source,
94 Handle<Object> script_name, 94 Handle<Object> script_name,
95 int line_offset, int column_offset, 95 int line_offset, int column_offset,
96 v8::Extension* extension, 96 v8::Extension* extension,
97 ScriptDataImpl* script_Data); 97 ScriptDataImpl* pre_data,
98 Handle<Object> script_data);
98 99
99 // Compile a String source within a context for Eval. 100 // Compile a String source within a context for Eval.
100 static Handle<JSFunction> CompileEval(Handle<String> source, 101 static Handle<JSFunction> CompileEval(Handle<String> source,
101 Handle<Context> context, 102 Handle<Context> context,
102 bool is_global, 103 bool is_global,
103 ValidationState validation); 104 ValidationState validation);
104 105
105 // Compile from function info (used for lazy compilation). Returns 106 // Compile from function info (used for lazy compilation). Returns
106 // true on success and false if the compilation resulted in a stack 107 // true on success and false if the compilation resulted in a stack
107 // overflow. 108 // overflow.
(...skipping 25 matching lines...) Expand all
133 FrameElement::ClearConstantList(); 134 FrameElement::ClearConstantList();
134 Result::ClearConstantList(); 135 Result::ClearConstantList();
135 } 136 }
136 } 137 }
137 }; 138 };
138 139
139 140
140 } } // namespace v8::internal 141 } } // namespace v8::internal
141 142
142 #endif // V8_COMPILER_H_ 143 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698