OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 9211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9222 PrintF(" {\n"); | 9222 PrintF(" {\n"); |
9223 } else { | 9223 } else { |
9224 // function result | 9224 // function result |
9225 PrintF("} -> "); | 9225 PrintF("} -> "); |
9226 result->ShortPrint(); | 9226 result->ShortPrint(); |
9227 PrintF("\n"); | 9227 PrintF("\n"); |
9228 } | 9228 } |
9229 } | 9229 } |
9230 | 9230 |
9231 | 9231 |
9232 RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceElementsKindTransition) { | |
9233 ASSERT(args.length() == 5); | |
9234 CONVERT_ARG_CHECKED(JSObject, obj, 0); | |
9235 CONVERT_SMI_ARG_CHECKED(from_kind, 1); | |
9236 CONVERT_ARG_CHECKED(FixedArrayBase, from_elements, 2); | |
9237 CONVERT_SMI_ARG_CHECKED(to_kind, 3); | |
9238 CONVERT_ARG_CHECKED(FixedArrayBase, to_elements, 4); | |
9239 NoHandleAllocation ha; | |
9240 PrintF("*"); | |
9241 obj->PrintElementsTransition(stdout, | |
9242 static_cast<ElementsKind>(from_kind), *from_elements, | |
9243 static_cast<ElementsKind>(to_kind), *to_elements); | |
9244 return isolate->heap()->undefined_value(); | |
9245 } | |
9246 | |
9247 | |
9248 RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceEnter) { | 9232 RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceEnter) { |
9249 ASSERT(args.length() == 0); | 9233 ASSERT(args.length() == 0); |
9250 NoHandleAllocation ha; | 9234 NoHandleAllocation ha; |
9251 PrintTransition(NULL); | 9235 PrintTransition(NULL); |
9252 return isolate->heap()->undefined_value(); | 9236 return isolate->heap()->undefined_value(); |
9253 } | 9237 } |
9254 | 9238 |
9255 | 9239 |
9256 RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceExit) { | 9240 RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceExit) { |
9257 NoHandleAllocation ha; | 9241 NoHandleAllocation ha; |
(...skipping 4327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13585 } else { | 13569 } else { |
13586 // Handle last resort GC and make sure to allow future allocations | 13570 // Handle last resort GC and make sure to allow future allocations |
13587 // to grow the heap without causing GCs (if possible). | 13571 // to grow the heap without causing GCs (if possible). |
13588 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13572 isolate->counters()->gc_last_resort_from_js()->Increment(); |
13589 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags); | 13573 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags); |
13590 } | 13574 } |
13591 } | 13575 } |
13592 | 13576 |
13593 | 13577 |
13594 } } // namespace v8::internal | 13578 } } // namespace v8::internal |
OLD | NEW |