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

Side by Side Diff: src/runtime.cc

Issue 22545007: Hack forEach to use HasFastPackedElements (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Branch on proxies Created 7 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
« src/array.js ('K') | « src/runtime.h ('k') | test.js » ('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 14100 matching lines...) Expand 10 before | Expand all | Expand 10 after
14111 RUNTIME_FUNCTION(MaybeObject*, Runtime_Has##Name) { \ 14111 RUNTIME_FUNCTION(MaybeObject*, Runtime_Has##Name) { \
14112 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 14112 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
14113 return isolate->heap()->ToBoolean(obj->Has##Name()); \ 14113 return isolate->heap()->ToBoolean(obj->Has##Name()); \
14114 } 14114 }
14115 14115
14116 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiElements) 14116 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiElements)
14117 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastObjectElements) 14117 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastObjectElements)
14118 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiOrObjectElements) 14118 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiOrObjectElements)
14119 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastDoubleElements) 14119 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastDoubleElements)
14120 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastHoleyElements) 14120 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastHoleyElements)
14121 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastPackedElements)
14121 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(DictionaryElements) 14122 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(DictionaryElements)
14122 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(NonStrictArgumentsElements) 14123 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(NonStrictArgumentsElements)
14123 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) 14124 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements)
14124 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) 14125 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements)
14125 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) 14126 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements)
14126 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) 14127 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements)
14127 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) 14128 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements)
14128 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) 14129 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements)
14129 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) 14130 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements)
14130 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) 14131 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements)
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
14404 // Handle last resort GC and make sure to allow future allocations 14405 // Handle last resort GC and make sure to allow future allocations
14405 // to grow the heap without causing GCs (if possible). 14406 // to grow the heap without causing GCs (if possible).
14406 isolate->counters()->gc_last_resort_from_js()->Increment(); 14407 isolate->counters()->gc_last_resort_from_js()->Increment();
14407 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14408 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14408 "Runtime::PerformGC"); 14409 "Runtime::PerformGC");
14409 } 14410 }
14410 } 14411 }
14411 14412
14412 14413
14413 } } // namespace v8::internal 14414 } } // namespace v8::internal
OLDNEW
« src/array.js ('K') | « src/runtime.h ('k') | test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698