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

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

Issue 2330063002: [stubs] Port StoreFastElementsStub to TurboFan. (Closed)
Patch Set: Retain removed, a comment added Created 4 years, 3 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/code-stubs-hydrogen.cc ('k') | src/compiler/code-assembler.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_COMPILER_CODE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 V(Int32GreaterThan) \ 47 V(Int32GreaterThan) \
48 V(Int32GreaterThanOrEqual) \ 48 V(Int32GreaterThanOrEqual) \
49 V(Int32LessThan) \ 49 V(Int32LessThan) \
50 V(Int32LessThanOrEqual) \ 50 V(Int32LessThanOrEqual) \
51 V(IntPtrLessThan) \ 51 V(IntPtrLessThan) \
52 V(IntPtrLessThanOrEqual) \ 52 V(IntPtrLessThanOrEqual) \
53 V(IntPtrGreaterThan) \ 53 V(IntPtrGreaterThan) \
54 V(IntPtrGreaterThanOrEqual) \ 54 V(IntPtrGreaterThanOrEqual) \
55 V(IntPtrEqual) \ 55 V(IntPtrEqual) \
56 V(Uint32LessThan) \ 56 V(Uint32LessThan) \
57 V(Uint32LessThanOrEqual) \
57 V(Uint32GreaterThanOrEqual) \ 58 V(Uint32GreaterThanOrEqual) \
58 V(UintPtrLessThan) \ 59 V(UintPtrLessThan) \
59 V(UintPtrGreaterThan) \ 60 V(UintPtrGreaterThan) \
60 V(UintPtrGreaterThanOrEqual) \ 61 V(UintPtrGreaterThanOrEqual) \
61 V(WordEqual) \ 62 V(WordEqual) \
62 V(WordNotEqual) \ 63 V(WordNotEqual) \
63 V(Word32Equal) \ 64 V(Word32Equal) \
64 V(Word32NotEqual) \ 65 V(Word32NotEqual) \
65 V(Word64Equal) \ 66 V(Word64Equal) \
66 V(Word64NotEqual) 67 V(Word64NotEqual)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 V(TruncateFloat64ToFloat32) \ 139 V(TruncateFloat64ToFloat32) \
139 V(TruncateFloat64ToWord32) \ 140 V(TruncateFloat64ToWord32) \
140 V(TruncateInt64ToInt32) \ 141 V(TruncateInt64ToInt32) \
141 V(ChangeFloat32ToFloat64) \ 142 V(ChangeFloat32ToFloat64) \
142 V(ChangeFloat64ToUint32) \ 143 V(ChangeFloat64ToUint32) \
143 V(ChangeInt32ToFloat64) \ 144 V(ChangeInt32ToFloat64) \
144 V(ChangeInt32ToInt64) \ 145 V(ChangeInt32ToInt64) \
145 V(ChangeUint32ToFloat64) \ 146 V(ChangeUint32ToFloat64) \
146 V(ChangeUint32ToUint64) \ 147 V(ChangeUint32ToUint64) \
147 V(RoundFloat64ToInt32) \ 148 V(RoundFloat64ToInt32) \
149 V(Float64SilenceNaN) \
148 V(Float64RoundDown) \ 150 V(Float64RoundDown) \
149 V(Float64RoundUp) \ 151 V(Float64RoundUp) \
150 V(Float64RoundTruncate) \ 152 V(Float64RoundTruncate) \
151 V(Word32Clz) \ 153 V(Word32Clz) \
152 V(Word32BinaryNot) 154 V(Word32BinaryNot)
153 155
154 // A "public" interface used by components outside of compiler directory to 156 // A "public" interface used by components outside of compiler directory to
155 // create code objects with TurboFan's backend. This class is mostly a thin shim 157 // create code objects with TurboFan's backend. This class is mostly a thin shim
156 // around the RawMachineAssembler, and its primary job is to ensure that the 158 // around the RawMachineAssembler, and its primary job is to ensure that the
157 // innards of the RawMachineAssembler and other compiler implementation details 159 // innards of the RawMachineAssembler and other compiler implementation details
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 289
288 // Changes an intptr_t to a double, e.g. for storing an element index 290 // Changes an intptr_t to a double, e.g. for storing an element index
289 // outside Smi range in a HeapNumber. Lossless on 32-bit, 291 // outside Smi range in a HeapNumber. Lossless on 32-bit,
290 // rounds on 64-bit (which doesn't affect valid element indices). 292 // rounds on 64-bit (which doesn't affect valid element indices).
291 Node* RoundIntPtrToFloat64(Node* value); 293 Node* RoundIntPtrToFloat64(Node* value);
292 // No-op on 32-bit, otherwise zero extend. 294 // No-op on 32-bit, otherwise zero extend.
293 Node* ChangeUint32ToWord(Node* value); 295 Node* ChangeUint32ToWord(Node* value);
294 // No-op on 32-bit, otherwise sign extend. 296 // No-op on 32-bit, otherwise sign extend.
295 Node* ChangeInt32ToIntPtr(Node* value); 297 Node* ChangeInt32ToIntPtr(Node* value);
296 298
299 // No-op that guarantees that the value is kept alive till this point even
300 // if GC happens.
301 Node* Retain(Node* value);
302
297 // Projections 303 // Projections
298 Node* Projection(int index, Node* value); 304 Node* Projection(int index, Node* value);
299 305
300 // Calls 306 // Calls
301 Node* CallRuntime(Runtime::FunctionId function_id, Node* context); 307 Node* CallRuntime(Runtime::FunctionId function_id, Node* context);
302 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1); 308 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1);
303 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, 309 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1,
304 Node* arg2); 310 Node* arg2);
305 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, 311 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1,
306 Node* arg2, Node* arg3); 312 Node* arg2, Node* arg3);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // Map of variables to the list of value nodes that have been added from each 493 // Map of variables to the list of value nodes that have been added from each
488 // merge path in their order of merging. 494 // merge path in their order of merging.
489 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 495 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
490 }; 496 };
491 497
492 } // namespace compiler 498 } // namespace compiler
493 } // namespace internal 499 } // namespace internal
494 } // namespace v8 500 } // namespace v8
495 501
496 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 502 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698