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

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: fix Created 4 years, 5 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
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/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3444 // exposing debug global object doesn't make much sense). 3444 // exposing debug global object doesn't make much sense).
3445 debug_context->set_security_token(native_context->security_token()); 3445 debug_context->set_security_token(native_context->security_token());
3446 Handle<String> debug_string = 3446 Handle<String> debug_string =
3447 factory->InternalizeUtf8String(FLAG_expose_debug_as); 3447 factory->InternalizeUtf8String(FLAG_expose_debug_as);
3448 uint32_t index; 3448 uint32_t index;
3449 if (debug_string->AsArrayIndex(&index)) return true; 3449 if (debug_string->AsArrayIndex(&index)) return true;
3450 Handle<Object> global_proxy(debug_context->global_proxy(), isolate); 3450 Handle<Object> global_proxy(debug_context->global_proxy(), isolate);
3451 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM); 3451 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM);
3452 } 3452 }
3453 3453
3454 if (FLAG_expose_wasm) { 3454 WasmJs::Install(isolate, global);
3455 WasmJs::Install(isolate, global);
3456 }
3457 3455
3458 return true; 3456 return true;
3459 } 3457 }
3460 3458
3461 3459
3462 static uint32_t Hash(RegisteredExtension* extension) { 3460 static uint32_t Hash(RegisteredExtension* extension) {
3463 return v8::internal::ComputePointerHash(extension); 3461 return v8::internal::ComputePointerHash(extension);
3464 } 3462 }
3465 3463
3466 Genesis::ExtensionStates::ExtensionStates() 3464 Genesis::ExtensionStates::ExtensionStates()
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3948 } 3946 }
3949 3947
3950 3948
3951 // Called when the top-level V8 mutex is destroyed. 3949 // Called when the top-level V8 mutex is destroyed.
3952 void Bootstrapper::FreeThreadResources() { 3950 void Bootstrapper::FreeThreadResources() {
3953 DCHECK(!IsActive()); 3951 DCHECK(!IsActive());
3954 } 3952 }
3955 3953
3956 } // namespace internal 3954 } // namespace internal
3957 } // namespace v8 3955 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698