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

Side by Side Diff: src/runtime.cc

Issue 10448011: Keep track of which maps are associated with prototype objects (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
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 13431 matching lines...) Expand 10 before | Expand all | Expand 10 after
13442 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) 13442 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements)
13443 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) 13443 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements)
13444 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) 13444 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements)
13445 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) 13445 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements)
13446 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) 13446 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements)
13447 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) 13447 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements)
13448 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) 13448 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements)
13449 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) 13449 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements)
13450 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements) 13450 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements)
13451 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements) 13451 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements)
13452 // Properties test sitting with elements tests - not fooling anyone.
13453 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastProperties)
13452 13454
13453 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION 13455 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION
13454 13456
13455 13457
13456 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { 13458 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) {
13457 ASSERT(args.length() == 2); 13459 ASSERT(args.length() == 2);
13458 CONVERT_ARG_CHECKED(JSObject, obj1, 0); 13460 CONVERT_ARG_CHECKED(JSObject, obj1, 0);
13459 CONVERT_ARG_CHECKED(JSObject, obj2, 1); 13461 CONVERT_ARG_CHECKED(JSObject, obj2, 1);
13460 return isolate->heap()->ToBoolean(obj1->map() == obj2->map()); 13462 return isolate->heap()->ToBoolean(obj1->map() == obj2->map());
13461 } 13463 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
13539 // Handle last resort GC and make sure to allow future allocations 13541 // Handle last resort GC and make sure to allow future allocations
13540 // to grow the heap without causing GCs (if possible). 13542 // to grow the heap without causing GCs (if possible).
13541 isolate->counters()->gc_last_resort_from_js()->Increment(); 13543 isolate->counters()->gc_last_resort_from_js()->Increment();
13542 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13544 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13543 "Runtime::PerformGC"); 13545 "Runtime::PerformGC");
13544 } 13546 }
13545 } 13547 }
13546 13548
13547 13549
13548 } } // namespace v8::internal 13550 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698