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

Side by Side Diff: src/bootstrapper.cc

Issue 2575313002: [promisehook] Implement PromiseHook (Closed)
Patch Set: rebase + add comments Created 4 years 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 | « src/assembler.cc ('k') | src/builtins/builtins.h » ('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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 Handle<Map> prototype_map(prototype->map()); 1883 Handle<Map> prototype_map(prototype->map());
1884 Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate); 1884 Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate);
1885 1885
1886 // Store the initial Promise.prototype map. This is used in fast-path 1886 // Store the initial Promise.prototype map. This is used in fast-path
1887 // checks. Do not alter the prototype after this point. 1887 // checks. Do not alter the prototype after this point.
1888 native_context()->set_promise_prototype_map(*prototype_map); 1888 native_context()->set_promise_prototype_map(*prototype_map);
1889 1889
1890 { // Internal: PromiseInternalConstructor 1890 { // Internal: PromiseInternalConstructor
1891 Handle<JSFunction> function = 1891 Handle<JSFunction> function =
1892 SimpleCreateFunction(isolate, factory->empty_string(), 1892 SimpleCreateFunction(isolate, factory->empty_string(),
1893 Builtins::kPromiseInternalConstructor, 0, false); 1893 Builtins::kPromiseInternalConstructor, 1, false);
1894 InstallWithIntrinsicDefaultProto( 1894 InstallWithIntrinsicDefaultProto(
1895 isolate, function, Context::PROMISE_INTERNAL_CONSTRUCTOR_INDEX); 1895 isolate, function, Context::PROMISE_INTERNAL_CONSTRUCTOR_INDEX);
1896 } 1896 }
1897 1897
1898 { // Internal: PromiseCreateAndSet 1898 { // Internal: PromiseCreateAndSet
1899 Handle<JSFunction> function = 1899 Handle<JSFunction> function =
1900 SimpleCreateFunction(isolate, factory->empty_string(), 1900 SimpleCreateFunction(isolate, factory->empty_string(),
1901 Builtins::kPromiseCreateAndSet, 2, false); 1901 Builtins::kPromiseCreateAndSet, 2, false);
1902 InstallWithIntrinsicDefaultProto(isolate, function, 1902 InstallWithIntrinsicDefaultProto(isolate, function,
1903 Context::PROMISE_CREATE_AND_SET_INDEX); 1903 Context::PROMISE_CREATE_AND_SET_INDEX);
(...skipping 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after
4672 } 4672 }
4673 4673
4674 4674
4675 // Called when the top-level V8 mutex is destroyed. 4675 // Called when the top-level V8 mutex is destroyed.
4676 void Bootstrapper::FreeThreadResources() { 4676 void Bootstrapper::FreeThreadResources() {
4677 DCHECK(!IsActive()); 4677 DCHECK(!IsActive());
4678 } 4678 }
4679 4679
4680 } // namespace internal 4680 } // namespace internal
4681 } // namespace v8 4681 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698