| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" | 
| 6 | 6 | 
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" | 
| 8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" | 
| 9 #include "src/base/utils/random-number-generator.h" | 9 #include "src/base/utils/random-number-generator.h" | 
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" | 
| (...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2735 | 2735 | 
| 2736   // Expose the stack trace symbol to native JS. | 2736   // Expose the stack trace symbol to native JS. | 
| 2737   RETURN_ON_EXCEPTION_VALUE(isolate, | 2737   RETURN_ON_EXCEPTION_VALUE(isolate, | 
| 2738                             JSObject::SetOwnPropertyIgnoreAttributes( | 2738                             JSObject::SetOwnPropertyIgnoreAttributes( | 
| 2739                                 handle(native_context->builtins(), isolate), | 2739                                 handle(native_context->builtins(), isolate), | 
| 2740                                 factory->InternalizeOneByteString( | 2740                                 factory->InternalizeOneByteString( | 
| 2741                                     STATIC_CHAR_VECTOR("$stackTraceSymbol")), | 2741                                     STATIC_CHAR_VECTOR("$stackTraceSymbol")), | 
| 2742                                 factory->stack_trace_symbol(), NONE), | 2742                                 factory->stack_trace_symbol(), NONE), | 
| 2743                             false); | 2743                             false); | 
| 2744 | 2744 | 
|  | 2745   // Expose the internal error symbol to native JS | 
|  | 2746   RETURN_ON_EXCEPTION_VALUE(isolate, | 
|  | 2747                             JSObject::SetOwnPropertyIgnoreAttributes( | 
|  | 2748                                 handle(native_context->builtins(), isolate), | 
|  | 2749                                 factory->InternalizeOneByteString( | 
|  | 2750                                     STATIC_CHAR_VECTOR("$internalErrorSymbol")), | 
|  | 2751                                 factory->internal_error_symbol(), NONE), | 
|  | 2752                             false); | 
|  | 2753 | 
| 2745   // Expose the debug global object in global if a name for it is specified. | 2754   // Expose the debug global object in global if a name for it is specified. | 
| 2746   if (FLAG_expose_debug_as != NULL && strlen(FLAG_expose_debug_as) != 0) { | 2755   if (FLAG_expose_debug_as != NULL && strlen(FLAG_expose_debug_as) != 0) { | 
| 2747     // If loading fails we just bail out without installing the | 2756     // If loading fails we just bail out without installing the | 
| 2748     // debugger but without tanking the whole context. | 2757     // debugger but without tanking the whole context. | 
| 2749     Debug* debug = isolate->debug(); | 2758     Debug* debug = isolate->debug(); | 
| 2750     if (!debug->Load()) return true; | 2759     if (!debug->Load()) return true; | 
| 2751     Handle<Context> debug_context = debug->debug_context(); | 2760     Handle<Context> debug_context = debug->debug_context(); | 
| 2752     // Set the security token for the debugger context to the same as | 2761     // Set the security token for the debugger context to the same as | 
| 2753     // the shell native context to allow calling between these (otherwise | 2762     // the shell native context to allow calling between these (otherwise | 
| 2754     // exposing debug global object doesn't make much sense). | 2763     // exposing debug global object doesn't make much sense). | 
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3251 } | 3260 } | 
| 3252 | 3261 | 
| 3253 | 3262 | 
| 3254 // Called when the top-level V8 mutex is destroyed. | 3263 // Called when the top-level V8 mutex is destroyed. | 
| 3255 void Bootstrapper::FreeThreadResources() { | 3264 void Bootstrapper::FreeThreadResources() { | 
| 3256   DCHECK(!IsActive()); | 3265   DCHECK(!IsActive()); | 
| 3257 } | 3266 } | 
| 3258 | 3267 | 
| 3259 }  // namespace internal | 3268 }  // namespace internal | 
| 3260 }  // namespace v8 | 3269 }  // namespace v8 | 
| OLD | NEW | 
|---|