| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Abstracted to work | 49 // Abstracted to work |
| 50 int isfinite(double value); | 50 int isfinite(double value); |
| 51 | 51 |
| 52 } // namespace std | 52 } // namespace std |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 namespace v8 { | 55 namespace v8 { |
| 56 namespace internal { | 56 namespace internal { |
| 57 | 57 |
| 58 | 58 |
| 59 void PreParserTraits::CheckStrictModeLValue(PreParserExpression expression, | |
| 60 bool* ok) { | |
| 61 if (expression.IsIdentifier() && | |
| 62 expression.AsIdentifier().IsEvalOrArguments()) { | |
| 63 pre_parser_->ReportMessage("strict_eval_arguments", | |
| 64 Vector<const char*>::empty()); | |
| 65 *ok = false; | |
| 66 } | |
| 67 } | |
| 68 | |
| 69 | |
| 70 void PreParserTraits::ReportMessageAt(Scanner::Location location, | 59 void PreParserTraits::ReportMessageAt(Scanner::Location location, |
| 71 const char* message, | 60 const char* message, |
| 72 Vector<const char*> args, | 61 Vector<const char*> args, |
| 73 bool is_reference_error) { | 62 bool is_reference_error) { |
| 74 ReportMessageAt(location.beg_pos, | 63 ReportMessageAt(location.beg_pos, |
| 75 location.end_pos, | 64 location.end_pos, |
| 76 message, | 65 message, |
| 77 args.length() > 0 ? args[0] : NULL, | 66 args.length() > 0 ? args[0] : NULL, |
| 78 is_reference_error); | 67 is_reference_error); |
| 79 } | 68 } |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 | 966 |
| 978 | 967 |
| 979 void PreParser::LogSymbol() { | 968 void PreParser::LogSymbol() { |
| 980 if (log_->ShouldLogSymbols()) { | 969 if (log_->ShouldLogSymbols()) { |
| 981 scanner()->LogSymbol(log_, position()); | 970 scanner()->LogSymbol(log_, position()); |
| 982 } | 971 } |
| 983 } | 972 } |
| 984 | 973 |
| 985 | 974 |
| 986 } } // v8::internal | 975 } } // v8::internal |
| OLD | NEW |