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

Side by Side Diff: src/external-reference-table.cc

Issue 2930243002: [WIP] Refactor OrdinaryHasInstance to be self-contained.
Patch Set: Created 3 years, 6 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/code-stub-assembler.cc ('k') | src/runtime/runtime.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/external-reference-table.h" 5 #include "src/external-reference-table.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/builtins/builtins.h" 9 #include "src/builtins/builtins.h"
10 #include "src/counters.h" 10 #include "src/counters.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 c_builtins[i].name); 368 c_builtins[i].name);
369 } 369 }
370 370
371 struct BuiltinEntry { 371 struct BuiltinEntry {
372 Builtins::Name id; 372 Builtins::Name id;
373 const char* name; 373 const char* name;
374 }; 374 };
375 static const BuiltinEntry builtins[] = { 375 static const BuiltinEntry builtins[] = {
376 #define DEF_ENTRY(Name, ...) {Builtins::k##Name, "Builtin_" #Name}, 376 #define DEF_ENTRY(Name, ...) {Builtins::k##Name, "Builtin_" #Name},
377 BUILTIN_LIST_C(DEF_ENTRY) BUILTIN_LIST_A(DEF_ENTRY) 377 BUILTIN_LIST_C(DEF_ENTRY) BUILTIN_LIST_A(DEF_ENTRY)
378 BUILTIN_LIST_TFC(DEF_ENTRY)
378 #undef DEF_ENTRY 379 #undef DEF_ENTRY
379 }; 380 };
380 for (unsigned i = 0; i < arraysize(builtins); ++i) { 381 for (unsigned i = 0; i < arraysize(builtins); ++i) {
381 Add(isolate->builtins()->builtin_address(builtins[i].id), builtins[i].name); 382 Add(isolate->builtins()->builtin_address(builtins[i].id), builtins[i].name);
382 } 383 }
383 } 384 }
384 385
385 void ExternalReferenceTable::AddRuntimeFunctions(Isolate* isolate) { 386 void ExternalReferenceTable::AddRuntimeFunctions(Isolate* isolate) {
386 struct RuntimeEntry { 387 struct RuntimeEntry {
387 Runtime::FunctionId id; 388 Runtime::FunctionId id;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 #else 491 #else
491 Add(address, ResolveSymbol(address)); 492 Add(address, ResolveSymbol(address));
492 #endif 493 #endif
493 api_external_references++; 494 api_external_references++;
494 } 495 }
495 } 496 }
496 } 497 }
497 498
498 } // namespace internal 499 } // namespace internal
499 } // namespace v8 500 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698