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

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

Issue 2277363002: [stubs] Consolidate TryToName implementation (Closed)
Patch Set: 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
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 28 matching lines...) Expand all
39 Code::Flags flags, const char* name); 39 Code::Flags flags, const char* name);
40 40
41 enum AllocationFlag : uint8_t { 41 enum AllocationFlag : uint8_t {
42 kNone = 0, 42 kNone = 0,
43 kDoubleAlignment = 1, 43 kDoubleAlignment = 1,
44 kPretenured = 1 << 1 44 kPretenured = 1 << 1
45 }; 45 };
46 46
47 typedef base::Flags<AllocationFlag> AllocationFlags; 47 typedef base::Flags<AllocationFlag> AllocationFlags;
48 48
49 enum ParameterMode { INTEGER_PARAMETERS, SMI_PARAMETERS }; 49 enum ParameterMode { INTEGER_PARAMETERS, SMI_PARAMETERS, INTPTR_PARAMETERS };
50 50
51 compiler::Node* BooleanMapConstant(); 51 compiler::Node* BooleanMapConstant();
52 compiler::Node* EmptyStringConstant(); 52 compiler::Node* EmptyStringConstant();
53 compiler::Node* HeapNumberMapConstant(); 53 compiler::Node* HeapNumberMapConstant();
54 compiler::Node* NoContextConstant(); 54 compiler::Node* NoContextConstant();
55 compiler::Node* NanConstant(); 55 compiler::Node* NanConstant();
56 compiler::Node* NullConstant(); 56 compiler::Node* NullConstant();
57 compiler::Node* MinusZeroConstant(); 57 compiler::Node* MinusZeroConstant();
58 compiler::Node* UndefinedConstant(); 58 compiler::Node* UndefinedConstant();
59 compiler::Node* TheHoleConstant(); 59 compiler::Node* TheHoleConstant();
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 compiler::Node* SmiShiftBitsConstant(); 608 compiler::Node* SmiShiftBitsConstant();
609 609
610 static const int kElementLoopUnrollThreshold = 8; 610 static const int kElementLoopUnrollThreshold = 8;
611 }; 611 };
612 612
613 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 613 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
614 614
615 } // namespace internal 615 } // namespace internal
616 } // namespace v8 616 } // namespace v8
617 #endif // V8_CODE_STUB_ASSEMBLER_H_ 617 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698