| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |