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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 | 63 |
64 // Compile a String source within a context for Eval. | 64 // Compile a String source within a context for Eval. |
65 static Handle<JSFunction> CompileEval(Handle<String> source, | 65 static Handle<JSFunction> CompileEval(Handle<String> source, |
66 Handle<Context> context, | 66 Handle<Context> context, |
67 bool is_global, | 67 bool is_global, |
68 ValidationState validation); | 68 ValidationState validation); |
69 | 69 |
70 // Compile from function info (used for lazy compilation). Returns | 70 // Compile from function info (used for lazy compilation). Returns |
71 // true on success and false if the compilation resulted in a stack | 71 // true on success and false if the compilation resulted in a stack |
72 // overflow. | 72 // overflow. |
73 static bool CompileLazy(Handle<SharedFunctionInfo> shared, int loop_nesting); | 73 static bool CompileLazy(Handle<SharedFunctionInfo> shared, |
74 Handle<Object> receiver, | |
Kasper Lund
2010/01/28 16:28:51
I think you would do yourself a favor by wrapping
| |
75 int loop_nesting); | |
74 | 76 |
75 // Compile a function boilerplate object (the function is possibly | 77 // Compile a function boilerplate object (the function is possibly |
76 // lazily compiled). Called recursively from a backend code | 78 // lazily compiled). Called recursively from a backend code |
77 // generator 'caller' to build the boilerplate. | 79 // generator 'caller' to build the boilerplate. |
78 static Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node, | 80 static Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node, |
79 Handle<Script> script, | 81 Handle<Script> script, |
80 AstVisitor* caller); | 82 AstVisitor* caller); |
81 | 83 |
82 // Set the function info for a newly compiled function. | 84 // Set the function info for a newly compiled function. |
83 static void SetFunctionInfo(Handle<JSFunction> fun, | 85 static void SetFunctionInfo(Handle<JSFunction> fun, |
(...skipping 14 matching lines...) Expand all Loading... | |
98 FrameElement::ClearConstantList(); | 100 FrameElement::ClearConstantList(); |
99 Result::ClearConstantList(); | 101 Result::ClearConstantList(); |
100 } | 102 } |
101 } | 103 } |
102 }; | 104 }; |
103 | 105 |
104 | 106 |
105 } } // namespace v8::internal | 107 } } // namespace v8::internal |
106 | 108 |
107 #endif // V8_COMPILER_H_ | 109 #endif // V8_COMPILER_H_ |
OLD | NEW |