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

Side by Side Diff: src/bootstrapper.cc

Issue 2174723002: Move CallSite.toString to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@callsite-port
Patch Set: Rebase Created 4 years, 4 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/builtins-callsite.cc » ('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 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 {"getLineNumber", Builtins::kCallSitePrototypeGetLineNumber}, 2664 {"getLineNumber", Builtins::kCallSitePrototypeGetLineNumber},
2665 {"getMethodName", Builtins::kCallSitePrototypeGetMethodName}, 2665 {"getMethodName", Builtins::kCallSitePrototypeGetMethodName},
2666 {"getPosition", Builtins::kCallSitePrototypeGetPosition}, 2666 {"getPosition", Builtins::kCallSitePrototypeGetPosition},
2667 {"getScriptNameOrSourceURL", 2667 {"getScriptNameOrSourceURL",
2668 Builtins::kCallSitePrototypeGetScriptNameOrSourceURL}, 2668 Builtins::kCallSitePrototypeGetScriptNameOrSourceURL},
2669 {"getThis", Builtins::kCallSitePrototypeGetThis}, 2669 {"getThis", Builtins::kCallSitePrototypeGetThis},
2670 {"getTypeName", Builtins::kCallSitePrototypeGetTypeName}, 2670 {"getTypeName", Builtins::kCallSitePrototypeGetTypeName},
2671 {"isConstructor", Builtins::kCallSitePrototypeIsConstructor}, 2671 {"isConstructor", Builtins::kCallSitePrototypeIsConstructor},
2672 {"isEval", Builtins::kCallSitePrototypeIsEval}, 2672 {"isEval", Builtins::kCallSitePrototypeIsEval},
2673 {"isNative", Builtins::kCallSitePrototypeIsNative}, 2673 {"isNative", Builtins::kCallSitePrototypeIsNative},
2674 {"isToplevel", Builtins::kCallSitePrototypeIsToplevel}}; 2674 {"isToplevel", Builtins::kCallSitePrototypeIsToplevel},
2675 {"toString", Builtins::kCallSitePrototypeToString}};
2675 2676
2676 PropertyAttributes attrs = 2677 PropertyAttributes attrs =
2677 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); 2678 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY);
2678 2679
2679 Handle<JSFunction> fun; 2680 Handle<JSFunction> fun;
2680 for (const FunctionInfo& info : infos) { 2681 for (const FunctionInfo& info : infos) {
2681 fun = SimpleInstallFunction(proto, info.name, info.id, 0, true, attrs); 2682 fun = SimpleInstallFunction(proto, info.name, info.id, 0, true, attrs);
2682 fun->shared()->set_native(true); 2683 fun->shared()->set_native(true);
2683 } 2684 }
2684 2685
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
4048 } 4049 }
4049 4050
4050 4051
4051 // Called when the top-level V8 mutex is destroyed. 4052 // Called when the top-level V8 mutex is destroyed.
4052 void Bootstrapper::FreeThreadResources() { 4053 void Bootstrapper::FreeThreadResources() {
4053 DCHECK(!IsActive()); 4054 DCHECK(!IsActive());
4054 } 4055 }
4055 4056
4056 } // namespace internal 4057 } // namespace internal
4057 } // namespace v8 4058 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-callsite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698