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/counters.h" | 9 #include "src/counters.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 }; | 232 }; |
233 | 233 |
234 for (unsigned i = 0; i < arraysize(c_builtins); ++i) { | 234 for (unsigned i = 0; i < arraysize(c_builtins); ++i) { |
235 ExternalReference ref(static_cast<Builtins::CFunctionId>(c_builtins[i].id), | 235 ExternalReference ref(static_cast<Builtins::CFunctionId>(c_builtins[i].id), |
236 isolate); | 236 isolate); |
237 Add(ref.address(), c_builtins[i].name); | 237 Add(ref.address(), c_builtins[i].name); |
238 } | 238 } |
239 | 239 |
240 static const RefTableEntry builtins[] = { | 240 static const RefTableEntry builtins[] = { |
241 #define DEF_ENTRY_C(name, ignored) {Builtins::k##name, "Builtins::" #name}, | 241 #define DEF_ENTRY_C(name, ignored) {Builtins::k##name, "Builtins::" #name}, |
242 #define DEF_ENTRY_A(name, i1, i2, i3) {Builtins::k##name, "Builtins::" #name}, | 242 #define DEF_ENTRY_A(name, i1, i2) {Builtins::k##name, "Builtins::" #name}, |
243 BUILTIN_LIST_C(DEF_ENTRY_C) BUILTIN_LIST_A(DEF_ENTRY_A) | 243 BUILTIN_LIST_C(DEF_ENTRY_C) BUILTIN_LIST_A(DEF_ENTRY_A) |
244 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) | 244 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) |
245 #undef DEF_ENTRY_C | 245 #undef DEF_ENTRY_C |
246 #undef DEF_ENTRY_A | 246 #undef DEF_ENTRY_A |
247 }; | 247 }; |
248 | 248 |
249 for (unsigned i = 0; i < arraysize(builtins); ++i) { | 249 for (unsigned i = 0; i < arraysize(builtins); ++i) { |
250 ExternalReference ref(static_cast<Builtins::Name>(builtins[i].id), isolate); | 250 ExternalReference ref(static_cast<Builtins::Name>(builtins[i].id), isolate); |
251 Add(ref.address(), builtins[i].name); | 251 Add(ref.address(), builtins[i].name); |
252 } | 252 } |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 363 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
364 Address address = Deoptimizer::GetDeoptimizationEntry( | 364 Address address = Deoptimizer::GetDeoptimizationEntry( |
365 isolate, entry, Deoptimizer::LAZY, | 365 isolate, entry, Deoptimizer::LAZY, |
366 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 366 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
367 Add(address, "lazy_deopt"); | 367 Add(address, "lazy_deopt"); |
368 } | 368 } |
369 } | 369 } |
370 | 370 |
371 } // namespace internal | 371 } // namespace internal |
372 } // namespace v8 | 372 } // namespace v8 |
OLD | NEW |