Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/parser.cc

Issue 6758007: Increase coverage of global loads in optimized code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2865 matching lines...) Expand 10 before | Expand all | Expand 10 after
2876 2876
2877 case Token::FALSE_LITERAL: 2877 case Token::FALSE_LITERAL:
2878 Consume(Token::FALSE_LITERAL); 2878 Consume(Token::FALSE_LITERAL);
2879 result = new Literal(isolate()->factory()->false_value()); 2879 result = new Literal(isolate()->factory()->false_value());
2880 break; 2880 break;
2881 2881
2882 case Token::IDENTIFIER: 2882 case Token::IDENTIFIER:
2883 case Token::FUTURE_RESERVED_WORD: { 2883 case Token::FUTURE_RESERVED_WORD: {
2884 Handle<String> name = ParseIdentifier(CHECK_OK); 2884 Handle<String> name = ParseIdentifier(CHECK_OK);
2885 if (fni_ != NULL) fni_->PushVariableName(name); 2885 if (fni_ != NULL) fni_->PushVariableName(name);
2886 result = top_scope_->NewUnresolved(name, inside_with()); 2886 result = top_scope_->NewUnresolved(name,
2887 inside_with(),
2888 scanner().location().beg_pos);
2887 break; 2889 break;
2888 } 2890 }
2889 2891
2890 case Token::NUMBER: { 2892 case Token::NUMBER: {
2891 Consume(Token::NUMBER); 2893 Consume(Token::NUMBER);
2892 ASSERT(scanner().is_literal_ascii()); 2894 ASSERT(scanner().is_literal_ascii());
2893 double value = StringToDouble(scanner().literal_ascii_string(), 2895 double value = StringToDouble(scanner().literal_ascii_string(),
2894 ALLOW_HEX | ALLOW_OCTALS); 2896 ALLOW_HEX | ALLOW_OCTALS);
2895 result = NewNumberLiteral(value); 2897 result = NewNumberLiteral(value);
2896 break; 2898 break;
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after
5146 info->is_global(), 5148 info->is_global(),
5147 info->StrictMode()); 5149 info->StrictMode());
5148 } 5150 }
5149 } 5151 }
5150 5152
5151 info->SetFunction(result); 5153 info->SetFunction(result);
5152 return (result != NULL); 5154 return (result != NULL);
5153 } 5155 }
5154 5156
5155 } } // namespace v8::internal 5157 } } // namespace v8::internal
OLDNEW
« src/ast.cc ('K') | « src/ia32/lithium-ia32.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698