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

Side by Side Diff: src/runtime.cc

Issue 6685073: Remember and reuse derived map for external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 9 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/property.cc ('k') | src/stub-cache.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 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 9290 matching lines...) Expand 10 before | Expand all | Expand 10 after
9301 } 9301 }
9302 return maybe_value; 9302 return maybe_value;
9303 } 9303 }
9304 return value; 9304 return value;
9305 } else { 9305 } else {
9306 return heap->undefined_value(); 9306 return heap->undefined_value();
9307 } 9307 }
9308 } 9308 }
9309 case INTERCEPTOR: 9309 case INTERCEPTOR:
9310 case MAP_TRANSITION: 9310 case MAP_TRANSITION:
9311 case EXTERNAL_ARRAY_TRANSITION:
9311 case CONSTANT_TRANSITION: 9312 case CONSTANT_TRANSITION:
9312 case NULL_DESCRIPTOR: 9313 case NULL_DESCRIPTOR:
9313 return heap->undefined_value(); 9314 return heap->undefined_value();
9314 default: 9315 default:
9315 UNREACHABLE(); 9316 UNREACHABLE();
9316 } 9317 }
9317 UNREACHABLE(); 9318 UNREACHABLE();
9318 return heap->undefined_value(); 9319 return heap->undefined_value();
9319 } 9320 }
9320 9321
(...skipping 2904 matching lines...) Expand 10 before | Expand all | Expand 10 after
12225 } else { 12226 } else {
12226 // Handle last resort GC and make sure to allow future allocations 12227 // Handle last resort GC and make sure to allow future allocations
12227 // to grow the heap without causing GCs (if possible). 12228 // to grow the heap without causing GCs (if possible).
12228 COUNTERS->gc_last_resort_from_js()->Increment(); 12229 COUNTERS->gc_last_resort_from_js()->Increment();
12229 HEAP->CollectAllGarbage(false); 12230 HEAP->CollectAllGarbage(false);
12230 } 12231 }
12231 } 12232 }
12232 12233
12233 12234
12234 } } // namespace v8::internal 12235 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698