Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/bootstrapper.cc

Issue 2057403003: Hooking up asm-wasm conversion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mrege Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins.h » ('j') | src/builtins.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 3419 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 // exposing debug global object doesn't make much sense). 3430 // exposing debug global object doesn't make much sense).
3431 debug_context->set_security_token(native_context->security_token()); 3431 debug_context->set_security_token(native_context->security_token());
3432 Handle<String> debug_string = 3432 Handle<String> debug_string =
3433 factory->InternalizeUtf8String(FLAG_expose_debug_as); 3433 factory->InternalizeUtf8String(FLAG_expose_debug_as);
3434 uint32_t index; 3434 uint32_t index;
3435 if (debug_string->AsArrayIndex(&index)) return true; 3435 if (debug_string->AsArrayIndex(&index)) return true;
3436 Handle<Object> global_proxy(debug_context->global_proxy(), isolate); 3436 Handle<Object> global_proxy(debug_context->global_proxy(), isolate);
3437 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM); 3437 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM);
3438 } 3438 }
3439 3439
3440 if (FLAG_expose_wasm) { 3440 WasmJs::Install(isolate, global);
3441 WasmJs::Install(isolate, global);
3442 }
3443 3441
3444 return true; 3442 return true;
3445 } 3443 }
3446 3444
3447 3445
3448 static uint32_t Hash(RegisteredExtension* extension) { 3446 static uint32_t Hash(RegisteredExtension* extension) {
3449 return v8::internal::ComputePointerHash(extension); 3447 return v8::internal::ComputePointerHash(extension);
3450 } 3448 }
3451 3449
3452 Genesis::ExtensionStates::ExtensionStates() 3450 Genesis::ExtensionStates::ExtensionStates()
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3934 } 3932 }
3935 3933
3936 3934
3937 // Called when the top-level V8 mutex is destroyed. 3935 // Called when the top-level V8 mutex is destroyed.
3938 void Bootstrapper::FreeThreadResources() { 3936 void Bootstrapper::FreeThreadResources() {
3939 DCHECK(!IsActive()); 3937 DCHECK(!IsActive());
3940 } 3938 }
3941 3939
3942 } // namespace internal 3940 } // namespace internal
3943 } // namespace v8 3941 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698