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

Side by Side Diff: src/heap/heap.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: Make well-known symbols behave magically 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/api.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 2644 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 roots_[k##name##RootIndex] = *symbol; \ 2655 roots_[k##name##RootIndex] = *symbol; \
2656 } 2656 }
2657 PRIVATE_SYMBOL_LIST(SYMBOL_INIT) 2657 PRIVATE_SYMBOL_LIST(SYMBOL_INIT)
2658 #undef SYMBOL_INIT 2658 #undef SYMBOL_INIT
2659 } 2659 }
2660 2660
2661 { 2661 {
2662 HandleScope scope(isolate()); 2662 HandleScope scope(isolate());
2663 #define SYMBOL_INIT(name, description) \ 2663 #define SYMBOL_INIT(name, description) \
2664 Handle<Symbol> name = factory->NewSymbol(); \ 2664 Handle<Symbol> name = factory->NewSymbol(); \
2665 name->set_is_well_known_symbol(true); \
2665 Handle<String> name##d = factory->NewStringFromStaticChars(#description); \ 2666 Handle<String> name##d = factory->NewStringFromStaticChars(#description); \
2666 name->set_name(*name##d); \ 2667 name->set_name(*name##d); \
2667 roots_[k##name##RootIndex] = *name; 2668 roots_[k##name##RootIndex] = *name;
2668 PUBLIC_SYMBOL_LIST(SYMBOL_INIT) 2669 PUBLIC_SYMBOL_LIST(SYMBOL_INIT)
2669 #undef SYMBOL_INIT 2670 #undef SYMBOL_INIT
2670 } 2671 }
2671 2672
2672 CreateFixedStubs(); 2673 CreateFixedStubs();
2673 2674
2674 // Allocate the dictionary of intrinsic function names. 2675 // Allocate the dictionary of intrinsic function names.
(...skipping 3410 matching lines...) Expand 10 before | Expand all | Expand 10 after
6085 } 6086 }
6086 6087
6087 6088
6088 // static 6089 // static
6089 int Heap::GetStaticVisitorIdForMap(Map* map) { 6090 int Heap::GetStaticVisitorIdForMap(Map* map) {
6090 return StaticVisitorBase::GetVisitorId(map); 6091 return StaticVisitorBase::GetVisitorId(map);
6091 } 6092 }
6092 6093
6093 } // namespace internal 6094 } // namespace internal
6094 } // namespace v8 6095 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698