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 3238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3249 // '(' Expression ')' | 3249 // '(' Expression ')' |
3250 | 3250 |
3251 Expression* result = NULL; | 3251 Expression* result = NULL; |
3252 switch (peek()) { | 3252 switch (peek()) { |
3253 case Token::THIS: { | 3253 case Token::THIS: { |
3254 Consume(Token::THIS); | 3254 Consume(Token::THIS); |
3255 if (is_pre_parsing_) { | 3255 if (is_pre_parsing_) { |
3256 result = VariableProxySentinel::this_proxy(); | 3256 result = VariableProxySentinel::this_proxy(); |
3257 } else { | 3257 } else { |
3258 VariableProxy* recv = top_scope_->receiver(); | 3258 VariableProxy* recv = top_scope_->receiver(); |
3259 recv->var_uses()->RecordRead(1); | |
3260 result = recv; | 3259 result = recv; |
3261 } | 3260 } |
3262 break; | 3261 break; |
3263 } | 3262 } |
3264 | 3263 |
3265 case Token::NULL_LITERAL: | 3264 case Token::NULL_LITERAL: |
3266 Consume(Token::NULL_LITERAL); | 3265 Consume(Token::NULL_LITERAL); |
3267 result = NEW(Literal(Factory::null_value())); | 3266 result = NEW(Literal(Factory::null_value())); |
3268 break; | 3267 break; |
3269 | 3268 |
(...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5089 parser.ParseLazy(script_source, name, | 5088 parser.ParseLazy(script_source, name, |
5090 start_position, end_position, is_expression); | 5089 start_position, end_position, is_expression); |
5091 return result; | 5090 return result; |
5092 } | 5091 } |
5093 | 5092 |
5094 | 5093 |
5095 #undef NEW | 5094 #undef NEW |
5096 | 5095 |
5097 | 5096 |
5098 } } // namespace v8::internal | 5097 } } // namespace v8::internal |
OLD | NEW |