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 7813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7824 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7824 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7825 return Utils::ToLocal(i_isolate->factory()->iterator_symbol()); | 7825 return Utils::ToLocal(i_isolate->factory()->iterator_symbol()); |
7826 } | 7826 } |
7827 | 7827 |
7828 | 7828 |
7829 Local<Symbol> v8::Symbol::GetUnscopables(Isolate* isolate) { | 7829 Local<Symbol> v8::Symbol::GetUnscopables(Isolate* isolate) { |
7830 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7830 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7831 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol()); | 7831 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol()); |
7832 } | 7832 } |
7833 | 7833 |
| 7834 Local<Symbol> v8::Symbol::GetToPrimitive(Isolate* isolate) { |
| 7835 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
| 7836 return Utils::ToLocal(i_isolate->factory()->to_primitive_symbol()); |
| 7837 } |
7834 | 7838 |
7835 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { | 7839 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { |
7836 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7840 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7837 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); | 7841 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); |
7838 } | 7842 } |
7839 | 7843 |
7840 | 7844 |
7841 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { | 7845 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { |
7842 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7846 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7843 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); | 7847 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); |
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10056 Address callback_address = | 10060 Address callback_address = |
10057 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10061 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10058 VMState<EXTERNAL> state(isolate); | 10062 VMState<EXTERNAL> state(isolate); |
10059 ExternalCallbackScope call_scope(isolate, callback_address); | 10063 ExternalCallbackScope call_scope(isolate, callback_address); |
10060 callback(info); | 10064 callback(info); |
10061 } | 10065 } |
10062 | 10066 |
10063 | 10067 |
10064 } // namespace internal | 10068 } // namespace internal |
10065 } // namespace v8 | 10069 } // namespace v8 |
OLD | NEW |