| 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 #include "src/factory.h" | 5 #include "src/factory.h" |
| 6 | 6 |
| 7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
| 8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
| 9 #include "src/isolate-inl.h" | 9 #include "src/isolate-inl.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 } | 656 } |
| 657 | 657 |
| 658 | 658 |
| 659 Handle<Symbol> Factory::NewPrivateSymbol() { | 659 Handle<Symbol> Factory::NewPrivateSymbol() { |
| 660 Handle<Symbol> symbol = NewSymbol(); | 660 Handle<Symbol> symbol = NewSymbol(); |
| 661 symbol->set_is_private(true); | 661 symbol->set_is_private(true); |
| 662 return symbol; | 662 return symbol; |
| 663 } | 663 } |
| 664 | 664 |
| 665 | 665 |
| 666 Handle<Symbol> Factory::NewPrivateOwnSymbol() { |
| 667 Handle<Symbol> symbol = NewSymbol(); |
| 668 symbol->set_is_private(true); |
| 669 symbol->set_is_own(true); |
| 670 return symbol; |
| 671 } |
| 672 |
| 673 |
| 666 Handle<Context> Factory::NewNativeContext() { | 674 Handle<Context> Factory::NewNativeContext() { |
| 667 Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS); | 675 Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS); |
| 668 array->set_map_no_write_barrier(*native_context_map()); | 676 array->set_map_no_write_barrier(*native_context_map()); |
| 669 Handle<Context> context = Handle<Context>::cast(array); | 677 Handle<Context> context = Handle<Context>::cast(array); |
| 670 context->set_js_array_maps(*undefined_value()); | 678 context->set_js_array_maps(*undefined_value()); |
| 671 DCHECK(context->IsNativeContext()); | 679 DCHECK(context->IsNativeContext()); |
| 672 return context; | 680 return context; |
| 673 } | 681 } |
| 674 | 682 |
| 675 | 683 |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2365 return Handle<Object>::null(); | 2373 return Handle<Object>::null(); |
| 2366 } | 2374 } |
| 2367 | 2375 |
| 2368 | 2376 |
| 2369 Handle<Object> Factory::ToBoolean(bool value) { | 2377 Handle<Object> Factory::ToBoolean(bool value) { |
| 2370 return value ? true_value() : false_value(); | 2378 return value ? true_value() : false_value(); |
| 2371 } | 2379 } |
| 2372 | 2380 |
| 2373 | 2381 |
| 2374 } } // namespace v8::internal | 2382 } } // namespace v8::internal |
| OLD | NEW |