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

Side by Side Diff: src/runtime.cc

Issue 10575032: In-place shrinking of descriptor arrays with non-live transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments Created 8 years, 6 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
« src/objects.cc ('K') | « src/property-details.h ('k') | no next file » | 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 10268 matching lines...) Expand 10 before | Expand all | Expand 10 after
10279 return maybe_value; 10279 return maybe_value;
10280 } 10280 }
10281 return value; 10281 return value;
10282 } else { 10282 } else {
10283 return heap->undefined_value(); 10283 return heap->undefined_value();
10284 } 10284 }
10285 } 10285 }
10286 case INTERCEPTOR: 10286 case INTERCEPTOR:
10287 case MAP_TRANSITION: 10287 case MAP_TRANSITION:
10288 case CONSTANT_TRANSITION: 10288 case CONSTANT_TRANSITION:
10289 case NULL_DESCRIPTOR:
10290 return heap->undefined_value(); 10289 return heap->undefined_value();
10291 case HANDLER: 10290 case HANDLER:
10291 case NONEXISTENT:
10292 UNREACHABLE(); 10292 UNREACHABLE();
10293 return heap->undefined_value(); 10293 return heap->undefined_value();
10294 } 10294 }
10295 UNREACHABLE(); // keep the compiler happy 10295 UNREACHABLE(); // keep the compiler happy
10296 return heap->undefined_value(); 10296 return heap->undefined_value();
10297 } 10297 }
10298 10298
10299 10299
10300 // Get debugger related details for an object property. 10300 // Get debugger related details for an object property.
10301 // args[0]: object holding property 10301 // args[0]: object holding property
(...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after
13652 // Handle last resort GC and make sure to allow future allocations 13652 // Handle last resort GC and make sure to allow future allocations
13653 // to grow the heap without causing GCs (if possible). 13653 // to grow the heap without causing GCs (if possible).
13654 isolate->counters()->gc_last_resort_from_js()->Increment(); 13654 isolate->counters()->gc_last_resort_from_js()->Increment();
13655 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13655 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13656 "Runtime::PerformGC"); 13656 "Runtime::PerformGC");
13657 } 13657 }
13658 } 13658 }
13659 13659
13660 13660
13661 } } // namespace v8::internal 13661 } } // namespace v8::internal
OLDNEW
« src/objects.cc ('K') | « src/property-details.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698