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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 while (!it.done()) { | 934 while (!it.done()) { |
935 JavaScriptFrame* frame = it.frame(); | 935 JavaScriptFrame* frame = it.frame(); |
936 Context* context = Context::cast(frame->context()); | 936 Context* context = Context::cast(frame->context()); |
937 if (context->global_context() == *Debug::debug_context()) { | 937 if (context->global_context() == *Debug::debug_context()) { |
938 it.Advance(); | 938 it.Advance(); |
939 } else { | 939 } else { |
940 break; | 940 break; |
941 } | 941 } |
942 } | 942 } |
943 } | 943 } |
944 #endif // ENABLE_DEBUGGER_SUPPORT | 944 #endif // ENABLE_DEBUGGER_SUPPORT |
945 if (it.done()) return Handle<Context>::null(); | 945 if (it.done()) return Handle<Context>::null(); |
946 JavaScriptFrame* frame = it.frame(); | 946 JavaScriptFrame* frame = it.frame(); |
947 Context* context = Context::cast(frame->context()); | 947 Context* context = Context::cast(frame->context()); |
948 return Handle<Context>(context->global_context()); | 948 return Handle<Context>(context->global_context()); |
949 } | 949 } |
950 | 950 |
951 | 951 |
952 Object* Top::LookupSpecialFunction(JSObject* receiver, | 952 Object* Top::LookupSpecialFunction(JSObject* receiver, |
953 JSObject* prototype, | 953 JSObject* prototype, |
954 JSFunction* function) { | 954 JSFunction* function) { |
(...skipping 27 matching lines...) Expand all Loading... |
982 Top::break_access_->Lock(); | 982 Top::break_access_->Lock(); |
983 } | 983 } |
984 | 984 |
985 | 985 |
986 ExecutionAccess::~ExecutionAccess() { | 986 ExecutionAccess::~ExecutionAccess() { |
987 Top::break_access_->Unlock(); | 987 Top::break_access_->Unlock(); |
988 } | 988 } |
989 | 989 |
990 | 990 |
991 } } // namespace v8::internal | 991 } } // namespace v8::internal |
OLD | NEW |