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

Side by Side Diff: src/bootstrapper.cc

Issue 2798403004: [SAB] Fix {newtarget-prototype-is-not-object,proto-from-ctor-realm} tests (Closed)
Patch Set: skip test that fails because of ASAN allocation failure Created 3 years, 8 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/js/typedarray.js » ('j') | no next file with comments »
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/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after
3894 3894
3895 Handle<JSGlobalObject> global(native_context()->global_object()); 3895 Handle<JSGlobalObject> global(native_context()->global_object());
3896 Isolate* isolate = global->GetIsolate(); 3896 Isolate* isolate = global->GetIsolate();
3897 Factory* factory = isolate->factory(); 3897 Factory* factory = isolate->factory();
3898 3898
3899 Handle<JSFunction> shared_array_buffer_fun = 3899 Handle<JSFunction> shared_array_buffer_fun =
3900 InstallArrayBuffer(global, "SharedArrayBuffer", 3900 InstallArrayBuffer(global, "SharedArrayBuffer",
3901 Builtins::kSharedArrayBufferPrototypeGetByteLength, 3901 Builtins::kSharedArrayBufferPrototypeGetByteLength,
3902 BuiltinFunctionId::kSharedArrayBufferByteLength, 3902 BuiltinFunctionId::kSharedArrayBufferByteLength,
3903 Builtins::kSharedArrayBufferPrototypeSlice); 3903 Builtins::kSharedArrayBufferPrototypeSlice);
3904 native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun); 3904 InstallWithIntrinsicDefaultProto(isolate, shared_array_buffer_fun,
3905 Context::SHARED_ARRAY_BUFFER_FUN_INDEX);
3906 InstallSpeciesGetter(shared_array_buffer_fun);
3905 3907
3906 Handle<String> name = factory->InternalizeUtf8String("Atomics"); 3908 Handle<String> name = factory->InternalizeUtf8String("Atomics");
3907 Handle<JSFunction> cons = factory->NewFunction(name); 3909 Handle<JSFunction> cons = factory->NewFunction(name);
3908 JSFunction::SetInstancePrototype( 3910 JSFunction::SetInstancePrototype(
3909 cons, 3911 cons,
3910 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 3912 Handle<Object>(native_context()->initial_object_prototype(), isolate));
3911 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); 3913 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED);
3912 DCHECK(atomics_object->IsJSObject()); 3914 DCHECK(atomics_object->IsJSObject());
3913 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); 3915 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM);
3914 JSObject::AddProperty(atomics_object, factory->to_string_tag_symbol(), name, 3916 JSObject::AddProperty(atomics_object, factory->to_string_tag_symbol(), name,
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
5290 } 5292 }
5291 5293
5292 5294
5293 // Called when the top-level V8 mutex is destroyed. 5295 // Called when the top-level V8 mutex is destroyed.
5294 void Bootstrapper::FreeThreadResources() { 5296 void Bootstrapper::FreeThreadResources() {
5295 DCHECK(!IsActive()); 5297 DCHECK(!IsActive());
5296 } 5298 }
5297 5299
5298 } // namespace internal 5300 } // namespace internal
5299 } // namespace v8 5301 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/js/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698