OLD | NEW |
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/api.h" | 5 #include "src/api.h" |
6 | 6 |
7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
(...skipping 7816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7827 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7827 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7828 return Utils::ToLocal(i_isolate->factory()->iterator_symbol()); | 7828 return Utils::ToLocal(i_isolate->factory()->iterator_symbol()); |
7829 } | 7829 } |
7830 | 7830 |
7831 | 7831 |
7832 Local<Symbol> v8::Symbol::GetUnscopables(Isolate* isolate) { | 7832 Local<Symbol> v8::Symbol::GetUnscopables(Isolate* isolate) { |
7833 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7833 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7834 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol()); | 7834 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol()); |
7835 } | 7835 } |
7836 | 7836 |
| 7837 Local<Symbol> v8::Symbol::GetToPrimitive(Isolate* isolate) { |
| 7838 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
| 7839 return Utils::ToLocal(i_isolate->factory()->to_primitive_symbol()); |
| 7840 } |
7837 | 7841 |
7838 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { | 7842 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { |
7839 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7843 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7840 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); | 7844 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); |
7841 } | 7845 } |
7842 | 7846 |
7843 | 7847 |
7844 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { | 7848 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { |
7845 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7849 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7846 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); | 7850 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); |
(...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10023 Address callback_address = | 10027 Address callback_address = |
10024 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10028 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10025 VMState<EXTERNAL> state(isolate); | 10029 VMState<EXTERNAL> state(isolate); |
10026 ExternalCallbackScope call_scope(isolate, callback_address); | 10030 ExternalCallbackScope call_scope(isolate, callback_address); |
10027 callback(info); | 10031 callback(info); |
10028 } | 10032 } |
10029 | 10033 |
10030 | 10034 |
10031 } // namespace internal | 10035 } // namespace internal |
10032 } // namespace v8 | 10036 } // namespace v8 |
OLD | NEW |