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/builtins.cc

Issue 1316943002: Move (uppercase) JS builtins from js builtins object to native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove Isolate::js_builtins_object Created 5 years, 3 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 | « src/builtins.h ('k') | src/compiler/ast-graph-builder.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/builtins.h" 5 #include "src/builtins.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 Builtins::~Builtins() { 1310 Builtins::~Builtins() {
1311 } 1311 }
1312 1312
1313 1313
1314 #define DEF_ENUM_C(name, ignore) FUNCTION_ADDR(Builtin_##name), 1314 #define DEF_ENUM_C(name, ignore) FUNCTION_ADDR(Builtin_##name),
1315 Address const Builtins::c_functions_[cfunction_count] = { 1315 Address const Builtins::c_functions_[cfunction_count] = {
1316 BUILTIN_LIST_C(DEF_ENUM_C) 1316 BUILTIN_LIST_C(DEF_ENUM_C)
1317 }; 1317 };
1318 #undef DEF_ENUM_C 1318 #undef DEF_ENUM_C
1319 1319
1320 #define DEF_JS_NAME(name, ignore) #name,
1321 #define DEF_JS_ARGC(ignore, argc) argc,
1322 const char* const Builtins::javascript_names_[id_count] = {
1323 BUILTINS_LIST_JS(DEF_JS_NAME)
1324 };
1325
1326 int const Builtins::javascript_argc_[id_count] = {
1327 BUILTINS_LIST_JS(DEF_JS_ARGC)
1328 };
1329 #undef DEF_JS_NAME
1330 #undef DEF_JS_ARGC
1331 1320
1332 struct BuiltinDesc { 1321 struct BuiltinDesc {
1333 byte* generator; 1322 byte* generator;
1334 byte* c_code; 1323 byte* c_code;
1335 const char* s_name; // name is only used for generating log information. 1324 const char* s_name; // name is only used for generating log information.
1336 int name; 1325 int name;
1337 Code::Flags flags; 1326 Code::Flags flags;
1338 BuiltinExtraArguments extra_args; 1327 BuiltinExtraArguments extra_args;
1339 }; 1328 };
1340 1329
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1516 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1528 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1517 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1529 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 1518 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
1530 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1519 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1531 #undef DEFINE_BUILTIN_ACCESSOR_C 1520 #undef DEFINE_BUILTIN_ACCESSOR_C
1532 #undef DEFINE_BUILTIN_ACCESSOR_A 1521 #undef DEFINE_BUILTIN_ACCESSOR_A
1533 1522
1534 1523
1535 } // namespace internal 1524 } // namespace internal
1536 } // namespace v8 1525 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698