Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: src/api.cc

Issue 1230793002: [es6] silence access-check failure for well-known symbol properties (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove pointless test part Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6839 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol()); 6839 return Utils::ToLocal(i_isolate->factory()->unscopables_symbol());
6840 } 6840 }
6841 6841
6842 6842
6843 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) { 6843 Local<Symbol> v8::Symbol::GetToStringTag(Isolate* isolate) {
6844 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); 6844 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
6845 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol()); 6845 return Utils::ToLocal(i_isolate->factory()->to_string_tag_symbol());
6846 } 6846 }
6847 6847
6848 6848
6849 Local<Symbol> v8::Symbol::GetIsConcatSpreadable(Isolate* isolate) {
6850 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
6851 return Utils::ToLocal(i_isolate->factory()->is_concat_spreadable_symbol());
6852 }
6853
6854
6849 Local<Number> v8::Number::New(Isolate* isolate, double value) { 6855 Local<Number> v8::Number::New(Isolate* isolate, double value) {
6850 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); 6856 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
6851 if (std::isnan(value)) { 6857 if (std::isnan(value)) {
6852 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs. 6858 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs.
6853 value = std::numeric_limits<double>::quiet_NaN(); 6859 value = std::numeric_limits<double>::quiet_NaN();
6854 } 6860 }
6855 ENTER_V8(internal_isolate); 6861 ENTER_V8(internal_isolate);
6856 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value); 6862 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
6857 return Utils::NumberToLocal(result); 6863 return Utils::NumberToLocal(result);
6858 } 6864 }
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
8411 Address callback_address = 8417 Address callback_address =
8412 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8418 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8413 VMState<EXTERNAL> state(isolate); 8419 VMState<EXTERNAL> state(isolate);
8414 ExternalCallbackScope call_scope(isolate, callback_address); 8420 ExternalCallbackScope call_scope(isolate, callback_address);
8415 callback(info); 8421 callback(info);
8416 } 8422 }
8417 8423
8418 8424
8419 } // namespace internal 8425 } // namespace internal
8420 } // namespace v8 8426 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/objects.h » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698