| OLD | NEW |
| 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 #undef STRING_ACCESSOR | 608 #undef STRING_ACCESSOR |
| 609 | 609 |
| 610 #define SYMBOL_ACCESSOR(name) \ | 610 #define SYMBOL_ACCESSOR(name) \ |
| 611 inline Handle<Symbol> name() { \ | 611 inline Handle<Symbol> name() { \ |
| 612 return Handle<Symbol>(bit_cast<Symbol**>( \ | 612 return Handle<Symbol>(bit_cast<Symbol**>( \ |
| 613 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 613 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
| 614 } | 614 } |
| 615 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) | 615 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 616 #undef SYMBOL_ACCESSOR | 616 #undef SYMBOL_ACCESSOR |
| 617 | 617 |
| 618 #define SYMBOL_ACCESSOR(name, varname, description) \ | 618 #define SYMBOL_ACCESSOR(name, description) \ |
| 619 inline Handle<Symbol> name() { \ | 619 inline Handle<Symbol> name() { \ |
| 620 return Handle<Symbol>(bit_cast<Symbol**>( \ | 620 return Handle<Symbol>(bit_cast<Symbol**>( \ |
| 621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
| 622 } | 622 } |
| 623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 624 #undef SYMBOL_ACCESSOR | 624 #undef SYMBOL_ACCESSOR |
| 625 | 625 |
| 626 // Allocates a new SharedFunctionInfo object. | 626 // Allocates a new SharedFunctionInfo object. |
| 627 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 627 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 628 Handle<String> name, int number_of_literals, FunctionKind kind, | 628 Handle<String> name, int number_of_literals, FunctionKind kind, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 721 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 722 // size, but keeping the original prototype. The receiver must have at least | 722 // size, but keeping the original prototype. The receiver must have at least |
| 723 // the size of the new object. The object is reinitialized and behaves as an | 723 // the size of the new object. The object is reinitialized and behaves as an |
| 724 // object that has been freshly allocated. | 724 // object that has been freshly allocated. |
| 725 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 725 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 726 }; | 726 }; |
| 727 | 727 |
| 728 } } // namespace v8::internal | 728 } } // namespace v8::internal |
| 729 | 729 |
| 730 #endif // V8_FACTORY_H_ | 730 #endif // V8_FACTORY_H_ |
| OLD | NEW |