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

Side by Side Diff: src/mark-compact.cc

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/isolate.cc ('k') | src/mips/builtins-mips.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 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 // decision until we see all functions that point to the same 1262 // decision until we see all functions that point to the same
1263 // SharedFunctionInfo because some of them might be optimized. 1263 // SharedFunctionInfo because some of them might be optimized.
1264 // That would make the nonoptimized version of the code nonflushable, 1264 // That would make the nonoptimized version of the code nonflushable,
1265 // because it is required for bailing out from optimized code. 1265 // because it is required for bailing out from optimized code.
1266 heap->mark_compact_collector()->code_flusher()->AddCandidate(function); 1266 heap->mark_compact_collector()->code_flusher()->AddCandidate(function);
1267 return true; 1267 return true;
1268 } 1268 }
1269 1269
1270 static inline bool IsValidNotBuiltinContext(Object* ctx) { 1270 static inline bool IsValidNotBuiltinContext(Object* ctx) {
1271 return ctx->IsContext() && 1271 return ctx->IsContext() &&
1272 !Context::cast(ctx)->global()->IsJSBuiltinsObject(); 1272 !Context::cast(ctx)->global_object()->IsJSBuiltinsObject();
1273 } 1273 }
1274 1274
1275 1275
1276 static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) { 1276 static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) {
1277 SharedFunctionInfo::cast(object)->BeforeVisitingPointers(); 1277 SharedFunctionInfo::cast(object)->BeforeVisitingPointers();
1278 1278
1279 FixedBodyVisitor<MarkCompactMarkingVisitor, 1279 FixedBodyVisitor<MarkCompactMarkingVisitor,
1280 SharedFunctionInfo::BodyDescriptor, 1280 SharedFunctionInfo::BodyDescriptor,
1281 void>::Visit(map, object); 1281 void>::Visit(map, object);
1282 } 1282 }
(...skipping 2859 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 while (buffer != NULL) { 4142 while (buffer != NULL) {
4143 SlotsBuffer* next_buffer = buffer->next(); 4143 SlotsBuffer* next_buffer = buffer->next();
4144 DeallocateBuffer(buffer); 4144 DeallocateBuffer(buffer);
4145 buffer = next_buffer; 4145 buffer = next_buffer;
4146 } 4146 }
4147 *buffer_address = NULL; 4147 *buffer_address = NULL;
4148 } 4148 }
4149 4149
4150 4150
4151 } } // namespace v8::internal 4151 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698