| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |