| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 614 |
| 615 | 615 |
| 616 Object* Top::PromoteScheduledException() { | 616 Object* Top::PromoteScheduledException() { |
| 617 Object* thrown = scheduled_exception(); | 617 Object* thrown = scheduled_exception(); |
| 618 clear_scheduled_exception(); | 618 clear_scheduled_exception(); |
| 619 // Re-throw the exception to avoid getting repeated error reporting. | 619 // Re-throw the exception to avoid getting repeated error reporting. |
| 620 return ReThrow(thrown); | 620 return ReThrow(thrown); |
| 621 } | 621 } |
| 622 | 622 |
| 623 | 623 |
| 624 // TODO(1233523): Get rid of this hackish abstraction once all | |
| 625 // JavaScript frames have a function associated with them. | |
| 626 | |
| 627 // NOTE: The stack trace frame iterator is an iterator that only | 624 // NOTE: The stack trace frame iterator is an iterator that only |
| 628 // traverse proper JavaScript frames; that is JavaScript frames that | 625 // traverse proper JavaScript frames; that is JavaScript frames that |
| 629 // have proper JavaScript functions. This excludes the problematic | 626 // have proper JavaScript functions. This excludes the problematic |
| 630 // functions in runtime.js. | 627 // functions in runtime.js. |
| 631 class StackTraceFrameIterator: public JavaScriptFrameIterator { | 628 class StackTraceFrameIterator: public JavaScriptFrameIterator { |
| 632 public: | 629 public: |
| 633 StackTraceFrameIterator() { | 630 StackTraceFrameIterator() { |
| 634 if (!done() && !frame()->function()->IsJSFunction()) Advance(); | 631 if (!done() && !frame()->function()->IsJSFunction()) Advance(); |
| 635 } | 632 } |
| 636 | 633 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 Top::break_access_->Lock(); | 886 Top::break_access_->Lock(); |
| 890 } | 887 } |
| 891 | 888 |
| 892 | 889 |
| 893 ExecutionAccess::~ExecutionAccess() { | 890 ExecutionAccess::~ExecutionAccess() { |
| 894 Top::break_access_->Unlock(); | 891 Top::break_access_->Unlock(); |
| 895 } | 892 } |
| 896 | 893 |
| 897 | 894 |
| 898 } } // namespace v8::internal | 895 } } // namespace v8::internal |
| OLD | NEW |