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 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2861 Handle<String> name = ParseIdentifierName(CHECK_OK); | 2861 Handle<String> name = ParseIdentifierName(CHECK_OK); |
2862 result = new(zone()) Property(result, new(zone()) Literal(name), pos); | 2862 result = new(zone()) Property(result, new(zone()) Literal(name), pos); |
2863 if (fni_ != NULL) fni_->PushLiteralName(name); | 2863 if (fni_ != NULL) fni_->PushLiteralName(name); |
2864 break; | 2864 break; |
2865 } | 2865 } |
2866 case Token::LPAREN: { | 2866 case Token::LPAREN: { |
2867 if ((stack == NULL) || stack->is_empty()) return result; | 2867 if ((stack == NULL) || stack->is_empty()) return result; |
2868 // Consume one of the new prefixes (already parsed). | 2868 // Consume one of the new prefixes (already parsed). |
2869 ZoneList<Expression*>* args = ParseArguments(CHECK_OK); | 2869 ZoneList<Expression*>* args = ParseArguments(CHECK_OK); |
2870 int last = stack->pop(); | 2870 int last = stack->pop(); |
2871 result = new CallNew(result, args, last); | 2871 result = new(zone()) CallNew(result, args, last); |
2872 break; | 2872 break; |
2873 } | 2873 } |
2874 default: | 2874 default: |
2875 return result; | 2875 return result; |
2876 } | 2876 } |
2877 } | 2877 } |
2878 } | 2878 } |
2879 | 2879 |
2880 | 2880 |
2881 DebuggerStatement* Parser::ParseDebuggerStatement(bool* ok) { | 2881 DebuggerStatement* Parser::ParseDebuggerStatement(bool* ok) { |
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5085 info->is_global(), | 5085 info->is_global(), |
5086 info->StrictMode()); | 5086 info->StrictMode()); |
5087 } | 5087 } |
5088 } | 5088 } |
5089 | 5089 |
5090 info->SetFunction(result); | 5090 info->SetFunction(result); |
5091 return (result != NULL); | 5091 return (result != NULL); |
5092 } | 5092 } |
5093 | 5093 |
5094 } } // namespace v8::internal | 5094 } } // namespace v8::internal |
OLD | NEW |