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

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

Issue 2385423005: [stubs] Implement fast TF Builtin for Object.create (Closed)
Patch Set: rebasing Created 4 years, 2 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 V(Int32LessThanOrEqual) \ 51 V(Int32LessThanOrEqual) \
52 V(IntPtrLessThan) \ 52 V(IntPtrLessThan) \
53 V(IntPtrLessThanOrEqual) \ 53 V(IntPtrLessThanOrEqual) \
54 V(IntPtrGreaterThan) \ 54 V(IntPtrGreaterThan) \
55 V(IntPtrGreaterThanOrEqual) \ 55 V(IntPtrGreaterThanOrEqual) \
56 V(IntPtrEqual) \ 56 V(IntPtrEqual) \
57 V(Uint32LessThan) \ 57 V(Uint32LessThan) \
58 V(Uint32LessThanOrEqual) \ 58 V(Uint32LessThanOrEqual) \
59 V(Uint32GreaterThanOrEqual) \ 59 V(Uint32GreaterThanOrEqual) \
60 V(UintPtrLessThan) \ 60 V(UintPtrLessThan) \
61 V(UintPtrLessThanOrEqual) \
61 V(UintPtrGreaterThan) \ 62 V(UintPtrGreaterThan) \
62 V(UintPtrGreaterThanOrEqual) \ 63 V(UintPtrGreaterThanOrEqual) \
63 V(WordEqual) \ 64 V(WordEqual) \
64 V(WordNotEqual) \ 65 V(WordNotEqual) \
65 V(Word32Equal) \ 66 V(Word32Equal) \
66 V(Word32NotEqual) \ 67 V(Word32NotEqual) \
67 V(Word64Equal) \ 68 V(Word64Equal) \
68 V(Word64NotEqual) 69 V(Word64NotEqual)
69 70
70 #define CODE_ASSEMBLER_BINARY_OP_LIST(V) \ 71 #define CODE_ASSEMBLER_BINARY_OP_LIST(V) \
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 280
280 // Basic arithmetic operations. 281 // Basic arithmetic operations.
281 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 282 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
282 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 283 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
283 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 284 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
284 285
285 Node* WordShl(Node* value, int shift); 286 Node* WordShl(Node* value, int shift);
286 Node* WordShr(Node* value, int shift); 287 Node* WordShr(Node* value, int shift);
287 Node* Word32Shr(Node* value, int shift); 288 Node* Word32Shr(Node* value, int shift);
288 289
290 Node* IsWordAligned(Node* value);
Jarin 2016/10/19 07:24:16 I think this should not be here, code-assembler is
291
289 // Unary 292 // Unary
290 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); 293 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a);
291 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) 294 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP)
292 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP 295 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP
293 296
294 // Changes an intptr_t to a double, e.g. for storing an element index 297 // Changes an intptr_t to a double, e.g. for storing an element index
295 // outside Smi range in a HeapNumber. Lossless on 32-bit, 298 // outside Smi range in a HeapNumber. Lossless on 32-bit,
296 // rounds on 64-bit (which doesn't affect valid element indices). 299 // rounds on 64-bit (which doesn't affect valid element indices).
297 Node* RoundIntPtrToFloat64(Node* value); 300 Node* RoundIntPtrToFloat64(Node* value);
298 // No-op on 32-bit, otherwise zero extend. 301 // No-op on 32-bit, otherwise zero extend.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Map of variables to the list of value nodes that have been added from each 505 // Map of variables to the list of value nodes that have been added from each
503 // merge path in their order of merging. 506 // merge path in their order of merging.
504 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 507 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
505 }; 508 };
506 509
507 } // namespace compiler 510 } // namespace compiler
508 } // namespace internal 511 } // namespace internal
509 } // namespace v8 512 } // namespace v8
510 513
511 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 514 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698