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

Side by Side Diff: src/factory.cc

Issue 2036493006: Keep prototype maps in dictionary mode until ICs see them (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make ignition tests happy Created 4 years, 6 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/crankshaft/hydrogen.cc ('k') | src/globals.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/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return result; 89 return result;
90 } 90 }
91 91
92 92
93 Handle<PrototypeInfo> Factory::NewPrototypeInfo() { 93 Handle<PrototypeInfo> Factory::NewPrototypeInfo() {
94 Handle<PrototypeInfo> result = 94 Handle<PrototypeInfo> result =
95 Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE)); 95 Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE));
96 result->set_prototype_users(WeakFixedArray::Empty()); 96 result->set_prototype_users(WeakFixedArray::Empty());
97 result->set_registry_slot(PrototypeInfo::UNREGISTERED); 97 result->set_registry_slot(PrototypeInfo::UNREGISTERED);
98 result->set_validity_cell(Smi::FromInt(0)); 98 result->set_validity_cell(Smi::FromInt(0));
99 result->set_bit_field(0);
99 return result; 100 return result;
100 } 101 }
101 102
102 103
103 Handle<SloppyBlockWithEvalContextExtension> 104 Handle<SloppyBlockWithEvalContextExtension>
104 Factory::NewSloppyBlockWithEvalContextExtension( 105 Factory::NewSloppyBlockWithEvalContextExtension(
105 Handle<ScopeInfo> scope_info, Handle<JSObject> extension) { 106 Handle<ScopeInfo> scope_info, Handle<JSObject> extension) {
106 DCHECK(scope_info->is_declaration_scope()); 107 DCHECK(scope_info->is_declaration_scope());
107 Handle<SloppyBlockWithEvalContextExtension> result = 108 Handle<SloppyBlockWithEvalContextExtension> result =
108 Handle<SloppyBlockWithEvalContextExtension>::cast( 109 Handle<SloppyBlockWithEvalContextExtension>::cast(
(...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 } 2395 }
2395 2396
2396 2397
2397 Handle<Object> Factory::ToBoolean(bool value) { 2398 Handle<Object> Factory::ToBoolean(bool value) {
2398 return value ? true_value() : false_value(); 2399 return value ? true_value() : false_value();
2399 } 2400 }
2400 2401
2401 2402
2402 } // namespace internal 2403 } // namespace internal
2403 } // namespace v8 2404 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698