| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |