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

Side by Side Diff: src/factory.h

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: Ensure @@isConcatSpreadable is actually installed now that its in a separate list Created 5 years, 2 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } 607 }
608 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) 608 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR)
609 #undef SYMBOL_ACCESSOR 609 #undef SYMBOL_ACCESSOR
610 610
611 #define SYMBOL_ACCESSOR(name, description) \ 611 #define SYMBOL_ACCESSOR(name, description) \
612 inline Handle<Symbol> name() { \ 612 inline Handle<Symbol> name() { \
613 return Handle<Symbol>(bit_cast<Symbol**>( \ 613 return Handle<Symbol>(bit_cast<Symbol**>( \
614 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ 614 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \
615 } 615 }
616 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) 616 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR)
617 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR)
617 #undef SYMBOL_ACCESSOR 618 #undef SYMBOL_ACCESSOR
618 619
619 // Allocates a new SharedFunctionInfo object. 620 // Allocates a new SharedFunctionInfo object.
620 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 621 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
621 Handle<String> name, int number_of_literals, FunctionKind kind, 622 Handle<String> name, int number_of_literals, FunctionKind kind,
622 Handle<Code> code, Handle<ScopeInfo> scope_info, 623 Handle<Code> code, Handle<ScopeInfo> scope_info,
623 Handle<TypeFeedbackVector> feedback_vector); 624 Handle<TypeFeedbackVector> feedback_vector);
624 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 625 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
625 MaybeHandle<Code> code); 626 MaybeHandle<Code> code);
626 627
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 // size, but keeping the original prototype. The receiver must have at least 712 // size, but keeping the original prototype. The receiver must have at least
712 // the size of the new object. The object is reinitialized and behaves as an 713 // the size of the new object. The object is reinitialized and behaves as an
713 // object that has been freshly allocated. 714 // object that has been freshly allocated.
714 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 715 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
715 }; 716 };
716 717
717 } // namespace internal 718 } // namespace internal
718 } // namespace v8 719 } // namespace v8
719 720
720 #endif // V8_FACTORY_H_ 721 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698