OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |