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

Side by Side Diff: src/factory.h

Issue 1217943004: Vector ICs: Introduce an InstanceType for the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for failing test. Created 5 years, 5 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 | « include/v8.h ('k') | src/factory.cc » ('j') | src/objects.h » ('J')
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/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 324 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
325 325
326 // This method expects a COW array in new space, and creates a copy 326 // This method expects a COW array in new space, and creates a copy
327 // of it in old space. 327 // of it in old space.
328 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); 328 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array);
329 329
330 Handle<FixedDoubleArray> CopyFixedDoubleArray( 330 Handle<FixedDoubleArray> CopyFixedDoubleArray(
331 Handle<FixedDoubleArray> array); 331 Handle<FixedDoubleArray> array);
332 332
333 Handle<TypeFeedbackVector> CopyTypeFeedbackVector(
334 Handle<TypeFeedbackVector> vector);
335
333 // Numbers (e.g. literals) are pretenured by the parser. 336 // Numbers (e.g. literals) are pretenured by the parser.
334 // The return value may be a smi or a heap number. 337 // The return value may be a smi or a heap number.
335 Handle<Object> NewNumber(double value, 338 Handle<Object> NewNumber(double value,
336 PretenureFlag pretenure = NOT_TENURED); 339 PretenureFlag pretenure = NOT_TENURED);
337 340
338 Handle<Object> NewNumberFromInt(int32_t value, 341 Handle<Object> NewNumberFromInt(int32_t value,
339 PretenureFlag pretenure = NOT_TENURED); 342 PretenureFlag pretenure = NOT_TENURED);
340 Handle<Object> NewNumberFromUint(uint32_t value, 343 Handle<Object> NewNumberFromUint(uint32_t value,
341 PretenureFlag pretenure = NOT_TENURED); 344 PretenureFlag pretenure = NOT_TENURED);
342 Handle<Object> NewNumberFromSize(size_t value, 345 Handle<Object> NewNumberFromSize(size_t value,
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // Reinitialize a JSProxy into an (empty) JS object of respective type and 740 // Reinitialize a JSProxy into an (empty) JS object of respective type and
738 // size, but keeping the original prototype. The receiver must have at least 741 // size, but keeping the original prototype. The receiver must have at least
739 // the size of the new object. The object is reinitialized and behaves as an 742 // the size of the new object. The object is reinitialized and behaves as an
740 // object that has been freshly allocated. 743 // object that has been freshly allocated.
741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
742 }; 745 };
743 746
744 } } // namespace v8::internal 747 } } // namespace v8::internal
745 748
746 #endif // V8_FACTORY_H_ 749 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/factory.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698