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

Side by Side Diff: src/parser.cc

Issue 7383013: Avoid TLS load in AstNode constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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
« no previous file with comments | « src/parser.h ('k') | src/rewriter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/parser.h ('k') | src/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698