| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 485 |
| 486 | 486 |
| 487 static void TraceTopFrame(Isolate* isolate) { | 487 static void TraceTopFrame(Isolate* isolate) { |
| 488 StackFrameIterator it(isolate); | 488 StackFrameIterator it(isolate); |
| 489 if (it.done()) { | 489 if (it.done()) { |
| 490 PrintF("unknown location (no JavaScript frames present)"); | 490 PrintF("unknown location (no JavaScript frames present)"); |
| 491 return; | 491 return; |
| 492 } | 492 } |
| 493 StackFrame* raw_frame = it.frame(); | 493 StackFrame* raw_frame = it.frame(); |
| 494 if (raw_frame->is_internal()) { | 494 if (raw_frame->is_internal()) { |
| 495 Isolate* isolate = Isolate::Current(); | |
| 496 Code* apply_builtin = isolate->builtins()->builtin( | 495 Code* apply_builtin = isolate->builtins()->builtin( |
| 497 Builtins::kFunctionApply); | 496 Builtins::kFunctionApply); |
| 498 if (raw_frame->unchecked_code() == apply_builtin) { | 497 if (raw_frame->unchecked_code() == apply_builtin) { |
| 499 PrintF("apply from "); | 498 PrintF("apply from "); |
| 500 it.Advance(); | 499 it.Advance(); |
| 501 raw_frame = it.frame(); | 500 raw_frame = it.frame(); |
| 502 } | 501 } |
| 503 } | 502 } |
| 504 JavaScriptFrame::PrintTop(isolate, stdout, false, true); | 503 JavaScriptFrame::PrintTop(isolate, stdout, false, true); |
| 505 } | 504 } |
| (...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 UNREACHABLE(); | 2057 UNREACHABLE(); |
| 2059 break; | 2058 break; |
| 2060 } | 2059 } |
| 2061 | 2060 |
| 2062 array->set_elements(elms); | 2061 array->set_elements(elms); |
| 2063 array->set_length(Smi::FromInt(number_of_elements)); | 2062 array->set_length(Smi::FromInt(number_of_elements)); |
| 2064 return array; | 2063 return array; |
| 2065 } | 2064 } |
| 2066 | 2065 |
| 2067 } } // namespace v8::internal | 2066 } } // namespace v8::internal |
| OLD | NEW |