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

Side by Side Diff: src/factory.h

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)
Patch Set: Only specialize if compiling from bytecode Created 3 years, 10 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/debug/liveedit.cc ('k') | src/factory.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 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/feedback-vector.h" 8 #include "src/feedback-vector.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 Handle<FixedTypedArrayBase> NewFixedTypedArray( 366 Handle<FixedTypedArrayBase> NewFixedTypedArray(
367 int length, ExternalArrayType array_type, bool initialize, 367 int length, ExternalArrayType array_type, bool initialize,
368 PretenureFlag pretenure = NOT_TENURED); 368 PretenureFlag pretenure = NOT_TENURED);
369 369
370 Handle<Cell> NewCell(Handle<Object> value); 370 Handle<Cell> NewCell(Handle<Object> value);
371 371
372 Handle<PropertyCell> NewPropertyCell(); 372 Handle<PropertyCell> NewPropertyCell();
373 373
374 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value); 374 Handle<WeakCell> NewWeakCell(Handle<HeapObject> value);
375 375
376 Handle<Cell> NewNoClosuresCell(Handle<Object> value);
377 Handle<Cell> NewOneClosureCell(Handle<Object> value);
378 Handle<Cell> NewManyClosuresCell(Handle<Object> value);
379
376 Handle<TransitionArray> NewTransitionArray(int capacity); 380 Handle<TransitionArray> NewTransitionArray(int capacity);
377 381
378 // Allocate a tenured AllocationSite. It's payload is null. 382 // Allocate a tenured AllocationSite. It's payload is null.
379 Handle<AllocationSite> NewAllocationSite(); 383 Handle<AllocationSite> NewAllocationSite();
380 384
381 Handle<Map> NewMap( 385 Handle<Map> NewMap(
382 InstanceType type, 386 InstanceType type,
383 int instance_size, 387 int instance_size,
384 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 388 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
385 389
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 845 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
842 FunctionMode function_mode); 846 FunctionMode function_mode);
843 847
844 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 848 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
845 }; 849 };
846 850
847 } // namespace internal 851 } // namespace internal
848 } // namespace v8 852 } // namespace v8
849 853
850 #endif // V8_FACTORY_H_ 854 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698