| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 21 matching lines...) Expand all Loading... |
| 32 #include "bootstrapper.h" | 32 #include "bootstrapper.h" |
| 33 #include "char-predicates-inl.h" | 33 #include "char-predicates-inl.h" |
| 34 #include "codegen.h" | 34 #include "codegen.h" |
| 35 #include "compiler.h" | 35 #include "compiler.h" |
| 36 #include "func-name-inferrer.h" | 36 #include "func-name-inferrer.h" |
| 37 #include "messages.h" | 37 #include "messages.h" |
| 38 #include "parser.h" | 38 #include "parser.h" |
| 39 #include "platform.h" | 39 #include "platform.h" |
| 40 #include "preparser.h" | 40 #include "preparser.h" |
| 41 #include "runtime.h" | 41 #include "runtime.h" |
| 42 #include "scanner-character-streams.h" |
| 42 #include "scopeinfo.h" | 43 #include "scopeinfo.h" |
| 43 #include "string-stream.h" | 44 #include "string-stream.h" |
| 44 | 45 |
| 45 namespace v8 { | 46 namespace v8 { |
| 46 namespace internal { | 47 namespace internal { |
| 47 | 48 |
| 48 // PositionStack is used for on-stack allocation of token positions for | 49 // PositionStack is used for on-stack allocation of token positions for |
| 49 // new expressions. Please look at ParseNewExpression. | 50 // new expressions. Please look at ParseNewExpression. |
| 50 | 51 |
| 51 class PositionStack { | 52 class PositionStack { |
| (...skipping 5170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5222 result = parser.ParseProgram(source, | 5223 result = parser.ParseProgram(source, |
| 5223 info->is_global(), | 5224 info->is_global(), |
| 5224 info->StrictMode()); | 5225 info->StrictMode()); |
| 5225 } | 5226 } |
| 5226 } | 5227 } |
| 5227 info->SetFunction(result); | 5228 info->SetFunction(result); |
| 5228 return (result != NULL); | 5229 return (result != NULL); |
| 5229 } | 5230 } |
| 5230 | 5231 |
| 5231 } } // namespace v8::internal | 5232 } } // namespace v8::internal |
| OLD | NEW |