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

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

Issue 2385423005: [stubs] Implement fast TF Builtin for Object.create (Closed)
Patch Set: fix heap size check 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 // Basic arithmetic operations. 278 // Basic arithmetic operations.
279 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); 279 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b);
280 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) 280 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP)
281 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP 281 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP
282 282
283 Node* WordShl(Node* value, int shift); 283 Node* WordShl(Node* value, int shift);
284 Node* WordShr(Node* value, int shift); 284 Node* WordShr(Node* value, int shift);
285 Node* Word32Shr(Node* value, int shift); 285 Node* Word32Shr(Node* value, int shift);
286 286
287 Node* IsWordAligned(Node* value);
288
287 // Unary 289 // Unary
288 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a); 290 #define DECLARE_CODE_ASSEMBLER_UNARY_OP(name) Node* name(Node* a);
289 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP) 291 CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP)
290 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP 292 #undef DECLARE_CODE_ASSEMBLER_UNARY_OP
291 293
292 // Changes an intptr_t to a double, e.g. for storing an element index 294 // Changes an intptr_t to a double, e.g. for storing an element index
293 // outside Smi range in a HeapNumber. Lossless on 32-bit, 295 // outside Smi range in a HeapNumber. Lossless on 32-bit,
294 // rounds on 64-bit (which doesn't affect valid element indices). 296 // rounds on 64-bit (which doesn't affect valid element indices).
295 Node* RoundIntPtrToFloat64(Node* value); 297 Node* RoundIntPtrToFloat64(Node* value);
296 // No-op on 32-bit, otherwise zero extend. 298 // No-op on 32-bit, otherwise zero extend.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 // Map of variables to the list of value nodes that have been added from each 512 // Map of variables to the list of value nodes that have been added from each
511 // merge path in their order of merging. 513 // merge path in their order of merging.
512 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 514 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
513 }; 515 };
514 516
515 } // namespace compiler 517 } // namespace compiler
516 } // namespace internal 518 } // namespace internal
517 } // namespace v8 519 } // namespace v8
518 520
519 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 521 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698