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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 return Token::ILLEGAL; | 150 return Token::ILLEGAL; |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 bool FunctionLiteral::AllowsLazyCompilation() { | 154 bool FunctionLiteral::AllowsLazyCompilation() { |
155 return scope()->AllowsLazyCompilation(); | 155 return scope()->AllowsLazyCompilation(); |
156 } | 156 } |
157 | 157 |
158 | 158 |
| 159 bool FunctionLiteral::AllowsLazyCompilationWithoutContext() { |
| 160 return scope()->AllowsLazyCompilationWithoutContext(); |
| 161 } |
| 162 |
| 163 |
159 int FunctionLiteral::start_position() const { | 164 int FunctionLiteral::start_position() const { |
160 return scope()->start_position(); | 165 return scope()->start_position(); |
161 } | 166 } |
162 | 167 |
163 | 168 |
164 int FunctionLiteral::end_position() const { | 169 int FunctionLiteral::end_position() const { |
165 return scope()->end_position(); | 170 return scope()->end_position(); |
166 } | 171 } |
167 | 172 |
168 | 173 |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1116 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
1112 str = arr; | 1117 str = arr; |
1113 } else { | 1118 } else { |
1114 str = DoubleToCString(handle_->Number(), buffer); | 1119 str = DoubleToCString(handle_->Number(), buffer); |
1115 } | 1120 } |
1116 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1121 return FACTORY->NewStringFromAscii(CStrVector(str)); |
1117 } | 1122 } |
1118 | 1123 |
1119 | 1124 |
1120 } } // namespace v8::internal | 1125 } } // namespace v8::internal |
OLD | NEW |