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

Side by Side Diff: src/parser.cc

Issue 4070003: [Isolates] Convert more static data either to read-only or to per-isolate. (Closed)
Patch Set: Created 10 years, 1 month 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
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 4022 matching lines...) Expand 10 before | Expand all | Expand 10 after
4033 Handle<String> name = ParseIdentifier(CHECK_OK); 4033 Handle<String> name = ParseIdentifier(CHECK_OK);
4034 ZoneList<Expression*>* args = ParseArguments(CHECK_OK); 4034 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);
4035 if (is_pre_parsing_) return NULL; 4035 if (is_pre_parsing_) return NULL;
4036 4036
4037 if (extension_ != NULL) { 4037 if (extension_ != NULL) {
4038 // The extension structures are only accessible while parsing the 4038 // The extension structures are only accessible while parsing the
4039 // very first time not when reparsing because of lazy compilation. 4039 // very first time not when reparsing because of lazy compilation.
4040 top_scope_->ForceEagerCompilation(); 4040 top_scope_->ForceEagerCompilation();
4041 } 4041 }
4042 4042
4043 Runtime::Function* function = Runtime::FunctionForSymbol(name); 4043 const Runtime::Function* function = Runtime::FunctionForSymbol(name);
4044 4044
4045 // Check for built-in IS_VAR macro. 4045 // Check for built-in IS_VAR macro.
4046 if (function != NULL && 4046 if (function != NULL &&
4047 function->intrinsic_type == Runtime::RUNTIME && 4047 function->intrinsic_type == Runtime::RUNTIME &&
4048 function->function_id == Runtime::kIS_VAR) { 4048 function->function_id == Runtime::kIS_VAR) {
4049 // %IS_VAR(x) evaluates to x if x is a variable, 4049 // %IS_VAR(x) evaluates to x if x is a variable,
4050 // leads to a parse error otherwise. Could be implemented as an 4050 // leads to a parse error otherwise. Could be implemented as an
4051 // inline function %_IS_VAR(x) to eliminate this special case. 4051 // inline function %_IS_VAR(x) to eliminate this special case.
4052 if (args->length() == 1 && args->at(0)->AsVariableProxy() != NULL) { 4052 if (args->length() == 1 && args->at(0)->AsVariableProxy() != NULL) {
4053 return args->at(0); 4053 return args->at(0);
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
5356 } 5356 }
5357 } 5357 }
5358 5358
5359 info->SetFunction(result); 5359 info->SetFunction(result);
5360 return (result != NULL); 5360 return (result != NULL);
5361 } 5361 }
5362 5362
5363 #undef NEW 5363 #undef NEW
5364 5364
5365 } } // namespace v8::internal 5365 } } // namespace v8::internal
OLDNEW
« src/frames.h ('K') | « src/mark-compact.cc ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698