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 7817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 7837 |
7838 Local<Symbol> v8::Symbol::GetToPrimitive(Isolate* isolate) { | |
7839 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | |
7840 return Utils::ToLocal(i_isolate->factory()->to_primitive_symbol()); | |
7841 } | |
7842 | |
7843 | |
jochen (gone - plz use gerrit)
2017/01/27 04:08:07
just one empty line between functions
Yuki
2017/01/27 06:53:27
Done.
| |
7838 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { | 7844 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { |
7839 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7845 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7840 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); | 7846 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); |
7841 } | 7847 } |
7842 | 7848 |
7843 | 7849 |
7844 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { | 7850 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) { |
7845 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 7851 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
7846 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); | 7852 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol()); |
7847 } | 7853 } |
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10023 Address callback_address = | 10029 Address callback_address = |
10024 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10030 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10025 VMState<EXTERNAL> state(isolate); | 10031 VMState<EXTERNAL> state(isolate); |
10026 ExternalCallbackScope call_scope(isolate, callback_address); | 10032 ExternalCallbackScope call_scope(isolate, callback_address); |
10027 callback(info); | 10033 callback(info); |
10028 } | 10034 } |
10029 | 10035 |
10030 | 10036 |
10031 } // namespace internal | 10037 } // namespace internal |
10032 } // namespace v8 | 10038 } // namespace v8 |
OLD | NEW |