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

Side by Side Diff: src/heap/heap.cc

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/heap/heap.h ('k') | src/ia32/builtins-ia32.cc » ('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 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/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2821 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 set_empty_script(*script); 2832 set_empty_script(*script);
2833 2833
2834 Handle<PropertyCell> cell = factory->NewPropertyCell(); 2834 Handle<PropertyCell> cell = factory->NewPropertyCell();
2835 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 2835 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2836 set_array_protector(*cell); 2836 set_array_protector(*cell);
2837 2837
2838 cell = factory->NewPropertyCell(); 2838 cell = factory->NewPropertyCell();
2839 cell->set_value(the_hole_value()); 2839 cell->set_value(the_hole_value());
2840 set_empty_property_cell(*cell); 2840 set_empty_property_cell(*cell);
2841 2841
2842 cell = factory->NewPropertyCell();
2843 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2844 set_has_instance_protector(*cell);
2845
2842 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( 2846 Handle<Cell> is_concat_spreadable_cell = factory->NewCell(
2843 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); 2847 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
2844 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); 2848 set_is_concat_spreadable_protector(*is_concat_spreadable_cell);
2845 2849
2846 Handle<Cell> species_cell = factory->NewCell( 2850 Handle<Cell> species_cell = factory->NewCell(
2847 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); 2851 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
2848 set_species_protector(*species_cell); 2852 set_species_protector(*species_cell);
2849 2853
2850 set_weak_stack_trace_list(Smi::FromInt(0)); 2854 set_weak_stack_trace_list(Smi::FromInt(0));
2851 2855
(...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after
6356 } 6360 }
6357 6361
6358 6362
6359 // static 6363 // static
6360 int Heap::GetStaticVisitorIdForMap(Map* map) { 6364 int Heap::GetStaticVisitorIdForMap(Map* map) {
6361 return StaticVisitorBase::GetVisitorId(map); 6365 return StaticVisitorBase::GetVisitorId(map);
6362 } 6366 }
6363 6367
6364 } // namespace internal 6368 } // namespace internal
6365 } // namespace v8 6369 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698