| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-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 3151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3162 // code is executed during bootstrapping. | 3162 // code is executed during bootstrapping. |
| 3163 v8::RegisterExtension(new v8::Extension("simpletest", | 3163 v8::RegisterExtension(new v8::Extension("simpletest", |
| 3164 kSimpleExtensionSource)); | 3164 kSimpleExtensionSource)); |
| 3165 const char* extension_names[] = { "simpletest" }; | 3165 const char* extension_names[] = { "simpletest" }; |
| 3166 v8::ExtensionConfiguration extensions(1, extension_names); | 3166 v8::ExtensionConfiguration extensions(1, extension_names); |
| 3167 v8::Persistent<v8::Context> context = v8::Context::New(&extensions); | 3167 v8::Persistent<v8::Context> context = v8::Context::New(&extensions); |
| 3168 context.Dispose(); | 3168 context.Dispose(); |
| 3169 } | 3169 } |
| 3170 // Check that no DebugBreak events occured during the context creation. | 3170 // Check that no DebugBreak events occured during the context creation. |
| 3171 CHECK_EQ(0, break_point_hit_count); | 3171 CHECK_EQ(0, break_point_hit_count); |
| 3172 | 3172 |
| 3173 // Get rid of the debug event listener. | 3173 // Get rid of the debug event listener. |
| 3174 v8::Debug::SetDebugEventListener(NULL); | 3174 v8::Debug::SetDebugEventListener(NULL); |
| 3175 CheckDebuggerUnloaded(); | 3175 CheckDebuggerUnloaded(); |
| 3176 } | 3176 } |
| 3177 | 3177 |
| 3178 static v8::Handle<v8::Array> NamedEnum(const v8::AccessorInfo&) { | 3178 static v8::Handle<v8::Array> NamedEnum(const v8::AccessorInfo&) { |
| 3179 v8::Handle<v8::Array> result = v8::Array::New(3); | 3179 v8::Handle<v8::Array> result = v8::Array::New(3); |
| 3180 result->Set(v8::Integer::New(0), v8::String::New("a")); | 3180 result->Set(v8::Integer::New(0), v8::String::New("a")); |
| 3181 result->Set(v8::Integer::New(1), v8::String::New("b")); | 3181 result->Set(v8::Integer::New(1), v8::String::New("b")); |
| 3182 result->Set(v8::Integer::New(2), v8::String::New("c")); | 3182 result->Set(v8::Integer::New(2), v8::String::New("c")); |
| (...skipping 2596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5779 | 5779 |
| 5780 break_point_hit_count = 0; | 5780 break_point_hit_count = 0; |
| 5781 foo->Call(env->Global(), 0, NULL); | 5781 foo->Call(env->Global(), 0, NULL); |
| 5782 CHECK_EQ(1, break_point_hit_count); | 5782 CHECK_EQ(1, break_point_hit_count); |
| 5783 | 5783 |
| 5784 v8::Debug::SetDebugEventListener(NULL); | 5784 v8::Debug::SetDebugEventListener(NULL); |
| 5785 debugee_context = v8::Handle<v8::Context>(); | 5785 debugee_context = v8::Handle<v8::Context>(); |
| 5786 debugger_context = v8::Handle<v8::Context>(); | 5786 debugger_context = v8::Handle<v8::Context>(); |
| 5787 CheckDebuggerUnloaded(); | 5787 CheckDebuggerUnloaded(); |
| 5788 } | 5788 } |
| OLD | NEW |