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

Side by Side Diff: src/factory.cc

Issue 460803003: Revert "Add "own" symbols support." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.h ('k') | src/lookup.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 #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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 } 657 }
658 658
659 659
660 Handle<Symbol> Factory::NewPrivateSymbol() { 660 Handle<Symbol> Factory::NewPrivateSymbol() {
661 Handle<Symbol> symbol = NewSymbol(); 661 Handle<Symbol> symbol = NewSymbol();
662 symbol->set_is_private(true); 662 symbol->set_is_private(true);
663 return symbol; 663 return symbol;
664 } 664 }
665 665
666 666
667 Handle<Symbol> Factory::NewPrivateOwnSymbol() {
668 Handle<Symbol> symbol = NewSymbol();
669 symbol->set_is_private(true);
670 symbol->set_is_own(true);
671 return symbol;
672 }
673
674
675 Handle<Context> Factory::NewNativeContext() { 667 Handle<Context> Factory::NewNativeContext() {
676 Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS); 668 Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS);
677 array->set_map_no_write_barrier(*native_context_map()); 669 array->set_map_no_write_barrier(*native_context_map());
678 Handle<Context> context = Handle<Context>::cast(array); 670 Handle<Context> context = Handle<Context>::cast(array);
679 context->set_js_array_maps(*undefined_value()); 671 context->set_js_array_maps(*undefined_value());
680 DCHECK(context->IsNativeContext()); 672 DCHECK(context->IsNativeContext());
681 return context; 673 return context;
682 } 674 }
683 675
684 676
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 return Handle<Object>::null(); 2367 return Handle<Object>::null();
2376 } 2368 }
2377 2369
2378 2370
2379 Handle<Object> Factory::ToBoolean(bool value) { 2371 Handle<Object> Factory::ToBoolean(bool value) {
2380 return value ? true_value() : false_value(); 2372 return value ? true_value() : false_value();
2381 } 2373 }
2382 2374
2383 2375
2384 } } // namespace v8::internal 2376 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698