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

Side by Side Diff: src/objects-inl.h

Issue 10832365: Rename Context::global to Context::global_object, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 years, 4 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/mips/stub-cache-mips.cc ('k') | src/profile-generator.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4138 matching lines...) Expand 10 before | Expand all | Expand 10 after
4149 if (tries >= 16 && (((tries - 1) & tries) == 0)) { 4149 if (tries >= 16 && (((tries - 1) & tries) == 0)) {
4150 set_optimization_disabled(false); 4150 set_optimization_disabled(false);
4151 set_opt_count(0); 4151 set_opt_count(0);
4152 set_deopt_count(0); 4152 set_deopt_count(0);
4153 code()->set_optimizable(true); 4153 code()->set_optimizable(true);
4154 } 4154 }
4155 } 4155 }
4156 4156
4157 4157
4158 bool JSFunction::IsBuiltin() { 4158 bool JSFunction::IsBuiltin() {
4159 return context()->global()->IsJSBuiltinsObject(); 4159 return context()->global_object()->IsJSBuiltinsObject();
4160 } 4160 }
4161 4161
4162 4162
4163 bool JSFunction::NeedsArgumentsAdaption() { 4163 bool JSFunction::NeedsArgumentsAdaption() {
4164 return shared()->formal_parameter_count() != 4164 return shared()->formal_parameter_count() !=
4165 SharedFunctionInfo::kDontAdaptArgumentsSentinel; 4165 SharedFunctionInfo::kDontAdaptArgumentsSentinel;
4166 } 4166 }
4167 4167
4168 4168
4169 bool JSFunction::IsOptimized() { 4169 bool JSFunction::IsOptimized() {
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
5312 #undef WRITE_UINT32_FIELD 5312 #undef WRITE_UINT32_FIELD
5313 #undef READ_SHORT_FIELD 5313 #undef READ_SHORT_FIELD
5314 #undef WRITE_SHORT_FIELD 5314 #undef WRITE_SHORT_FIELD
5315 #undef READ_BYTE_FIELD 5315 #undef READ_BYTE_FIELD
5316 #undef WRITE_BYTE_FIELD 5316 #undef WRITE_BYTE_FIELD
5317 5317
5318 5318
5319 } } // namespace v8::internal 5319 } } // namespace v8::internal
5320 5320
5321 #endif // V8_OBJECTS_INL_H_ 5321 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698