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

Side by Side Diff: src/code-stub-assembler.h

Issue 2206333003: [stubs] Convert GrowElementsStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove dead code Created 4 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
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stubs.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 compiler::Node* HeapNumberMapConstant(); 45 compiler::Node* HeapNumberMapConstant();
46 compiler::Node* NoContextConstant(); 46 compiler::Node* NoContextConstant();
47 compiler::Node* NanConstant(); 47 compiler::Node* NanConstant();
48 compiler::Node* NullConstant(); 48 compiler::Node* NullConstant();
49 compiler::Node* MinusZeroConstant(); 49 compiler::Node* MinusZeroConstant();
50 compiler::Node* UndefinedConstant(); 50 compiler::Node* UndefinedConstant();
51 compiler::Node* TheHoleConstant(); 51 compiler::Node* TheHoleConstant();
52 compiler::Node* HashSeed(); 52 compiler::Node* HashSeed();
53 compiler::Node* StaleRegisterConstant(); 53 compiler::Node* StaleRegisterConstant();
54 54
55 compiler::Node* IntPtrOrSmiConstant(int value, ParameterMode mode);
56
55 // Float64 operations. 57 // Float64 operations.
56 compiler::Node* Float64Ceil(compiler::Node* x); 58 compiler::Node* Float64Ceil(compiler::Node* x);
57 compiler::Node* Float64Floor(compiler::Node* x); 59 compiler::Node* Float64Floor(compiler::Node* x);
58 compiler::Node* Float64Round(compiler::Node* x); 60 compiler::Node* Float64Round(compiler::Node* x);
59 compiler::Node* Float64Trunc(compiler::Node* x); 61 compiler::Node* Float64Trunc(compiler::Node* x);
60 62
61 // Tag a Word as a Smi value. 63 // Tag a Word as a Smi value.
62 compiler::Node* SmiTag(compiler::Node* value); 64 compiler::Node* SmiTag(compiler::Node* value);
63 // Untag a Smi value as a Word. 65 // Untag a Smi value as a Word.
64 compiler::Node* SmiUntag(compiler::Node* value); 66 compiler::Node* SmiUntag(compiler::Node* value);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 compiler::Node* AllocateSeqTwoByteString(int length); 262 compiler::Node* AllocateSeqTwoByteString(int length);
261 compiler::Node* AllocateSeqTwoByteString(compiler::Node* context, 263 compiler::Node* AllocateSeqTwoByteString(compiler::Node* context,
262 compiler::Node* length); 264 compiler::Node* length);
263 // Allocated an JSArray 265 // Allocated an JSArray
264 compiler::Node* AllocateJSArray(ElementsKind kind, compiler::Node* array_map, 266 compiler::Node* AllocateJSArray(ElementsKind kind, compiler::Node* array_map,
265 compiler::Node* capacity, 267 compiler::Node* capacity,
266 compiler::Node* length, 268 compiler::Node* length,
267 compiler::Node* allocation_site = nullptr, 269 compiler::Node* allocation_site = nullptr,
268 ParameterMode mode = INTEGER_PARAMETERS); 270 ParameterMode mode = INTEGER_PARAMETERS);
269 271
272 compiler::Node* AllocateFixedArray(ElementsKind kind,
273 compiler::Node* capacity,
274 ParameterMode mode = INTEGER_PARAMETERS);
275
276 void FillFixedArrayWithHole(ElementsKind kind, compiler::Node* array,
277 compiler::Node* from_index,
278 compiler::Node* to_index,
279 ParameterMode mode = INTEGER_PARAMETERS);
280
281 void CopyFixedArrayElements(
282 ElementsKind kind, compiler::Node* from_array, compiler::Node* to_array,
283 compiler::Node* element_count,
284 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER,
285 ParameterMode mode = INTEGER_PARAMETERS);
286
287 compiler::Node* CalculateNewElementsCapacity(
288 compiler::Node* old_capacity, ParameterMode mode = INTEGER_PARAMETERS);
289
290 compiler::Node* CheckAndGrowElementsCapacity(
291 compiler::Node* context, compiler::Node* object, compiler::Node* elements,
292 ElementsKind kind, compiler::Node* capacity, compiler::Node* key,
293 Label* fail);
294
270 // Allocation site manipulation 295 // Allocation site manipulation
271 void InitializeAllocationMemento(compiler::Node* base_allocation, 296 void InitializeAllocationMemento(compiler::Node* base_allocation,
272 int base_allocation_size, 297 int base_allocation_size,
273 compiler::Node* allocation_site); 298 compiler::Node* allocation_site);
274 299
275 compiler::Node* TruncateTaggedToFloat64(compiler::Node* context, 300 compiler::Node* TruncateTaggedToFloat64(compiler::Node* context,
276 compiler::Node* value); 301 compiler::Node* value);
277 compiler::Node* TruncateTaggedToWord32(compiler::Node* context, 302 compiler::Node* TruncateTaggedToWord32(compiler::Node* context,
278 compiler::Node* value); 303 compiler::Node* value);
279 // Truncate the floating point value of a HeapNumber to an Int32. 304 // Truncate the floating point value of a HeapNumber to an Int32.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 AllocationFlags flags, 547 AllocationFlags flags,
523 compiler::Node* top_adddress, 548 compiler::Node* top_adddress,
524 compiler::Node* limit_address); 549 compiler::Node* limit_address);
525 550
526 static const int kElementLoopUnrollThreshold = 8; 551 static const int kElementLoopUnrollThreshold = 8;
527 }; 552 };
528 553
529 } // namespace internal 554 } // namespace internal
530 } // namespace v8 555 } // namespace v8
531 #endif // V8_CODE_STUB_ASSEMBLER_H_ 556 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698