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

Side by Side Diff: src/runtime.cc

Issue 10532021: Keep track of which maps are associated with prototype objects so we can tune the fast-case vs. has… (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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
« no previous file with comments | « src/runtime.h ('k') | test/cctest/test-heap.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 13455 matching lines...) Expand 10 before | Expand all | Expand 10 after
13466 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) 13466 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements)
13467 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) 13467 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements)
13468 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) 13468 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements)
13469 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) 13469 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements)
13470 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) 13470 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements)
13471 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) 13471 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements)
13472 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) 13472 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements)
13473 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) 13473 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements)
13474 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements) 13474 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements)
13475 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements) 13475 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements)
13476 // Properties test sitting with elements tests - not fooling anyone.
13477 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastProperties)
13476 13478
13477 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION 13479 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION
13478 13480
13479 13481
13480 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { 13482 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) {
13481 ASSERT(args.length() == 2); 13483 ASSERT(args.length() == 2);
13482 CONVERT_ARG_CHECKED(JSObject, obj1, 0); 13484 CONVERT_ARG_CHECKED(JSObject, obj1, 0);
13483 CONVERT_ARG_CHECKED(JSObject, obj2, 1); 13485 CONVERT_ARG_CHECKED(JSObject, obj2, 1);
13484 return isolate->heap()->ToBoolean(obj1->map() == obj2->map()); 13486 return isolate->heap()->ToBoolean(obj1->map() == obj2->map());
13485 } 13487 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
13563 // Handle last resort GC and make sure to allow future allocations 13565 // Handle last resort GC and make sure to allow future allocations
13564 // to grow the heap without causing GCs (if possible). 13566 // to grow the heap without causing GCs (if possible).
13565 isolate->counters()->gc_last_resort_from_js()->Increment(); 13567 isolate->counters()->gc_last_resort_from_js()->Increment();
13566 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13568 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13567 "Runtime::PerformGC"); 13569 "Runtime::PerformGC");
13568 } 13570 }
13569 } 13571 }
13570 13572
13571 13573
13572 } } // namespace v8::internal 13574 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698