| 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 13437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13448 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) | 13448 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) |
| 13449 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) | 13449 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) |
| 13450 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) | 13450 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) |
| 13451 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) | 13451 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) |
| 13452 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) | 13452 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) |
| 13453 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) | 13453 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) |
| 13454 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) | 13454 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) |
| 13455 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) | 13455 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) |
| 13456 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements) | 13456 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalFloatElements) |
| 13457 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements) | 13457 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalDoubleElements) |
| 13458 // Properties test sitting with elements tests - not fooling anyone. | |
| 13459 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastProperties) | |
| 13460 | 13458 |
| 13461 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION | 13459 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION |
| 13462 | 13460 |
| 13463 | 13461 |
| 13464 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { | 13462 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { |
| 13465 ASSERT(args.length() == 2); | 13463 ASSERT(args.length() == 2); |
| 13466 CONVERT_ARG_CHECKED(JSObject, obj1, 0); | 13464 CONVERT_ARG_CHECKED(JSObject, obj1, 0); |
| 13467 CONVERT_ARG_CHECKED(JSObject, obj2, 1); | 13465 CONVERT_ARG_CHECKED(JSObject, obj2, 1); |
| 13468 return isolate->heap()->ToBoolean(obj1->map() == obj2->map()); | 13466 return isolate->heap()->ToBoolean(obj1->map() == obj2->map()); |
| 13469 } | 13467 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13547 // Handle last resort GC and make sure to allow future allocations | 13545 // Handle last resort GC and make sure to allow future allocations |
| 13548 // to grow the heap without causing GCs (if possible). | 13546 // to grow the heap without causing GCs (if possible). |
| 13549 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13547 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 13550 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 13548 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 13551 "Runtime::PerformGC"); | 13549 "Runtime::PerformGC"); |
| 13552 } | 13550 } |
| 13553 } | 13551 } |
| 13554 | 13552 |
| 13555 | 13553 |
| 13556 } } // namespace v8::internal | 13554 } } // namespace v8::internal |
| OLD | NEW |