| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 8863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8874 StackFrameLocator locator; | 8874 StackFrameLocator locator; |
| 8875 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0); | 8875 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0); |
| 8876 for (ScopeIterator it(frame); !it.Done(); it.Next()) { | 8876 for (ScopeIterator it(frame); !it.Done(); it.Next()) { |
| 8877 it.DebugPrint(); | 8877 it.DebugPrint(); |
| 8878 } | 8878 } |
| 8879 #endif | 8879 #endif |
| 8880 return Heap::undefined_value(); | 8880 return Heap::undefined_value(); |
| 8881 } | 8881 } |
| 8882 | 8882 |
| 8883 | 8883 |
| 8884 static MaybeObject* Runtime_GetCFrames(Arguments args) { | |
| 8885 // See bug 906. | |
| 8886 return Heap::undefined_value(); | |
| 8887 } | |
| 8888 | |
| 8889 | |
| 8890 static MaybeObject* Runtime_GetThreadCount(Arguments args) { | 8884 static MaybeObject* Runtime_GetThreadCount(Arguments args) { |
| 8891 HandleScope scope; | 8885 HandleScope scope; |
| 8892 ASSERT(args.length() == 1); | 8886 ASSERT(args.length() == 1); |
| 8893 | 8887 |
| 8894 // Check arguments. | 8888 // Check arguments. |
| 8895 Object* result; | 8889 Object* result; |
| 8896 { MaybeObject* maybe_result = Runtime_CheckExecutionState(args); | 8890 { MaybeObject* maybe_result = Runtime_CheckExecutionState(args); |
| 8897 if (!maybe_result->ToObject(&result)) return maybe_result; | 8891 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 8898 } | 8892 } |
| 8899 | 8893 |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10378 } else { | 10372 } else { |
| 10379 // Handle last resort GC and make sure to allow future allocations | 10373 // Handle last resort GC and make sure to allow future allocations |
| 10380 // to grow the heap without causing GCs (if possible). | 10374 // to grow the heap without causing GCs (if possible). |
| 10381 Counters::gc_last_resort_from_js.Increment(); | 10375 Counters::gc_last_resort_from_js.Increment(); |
| 10382 Heap::CollectAllGarbage(false); | 10376 Heap::CollectAllGarbage(false); |
| 10383 } | 10377 } |
| 10384 } | 10378 } |
| 10385 | 10379 |
| 10386 | 10380 |
| 10387 } } // namespace v8::internal | 10381 } } // namespace v8::internal |
| OLD | NEW |