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

Side by Side Diff: src/compiler/js-operator.h

Issue 1436493002: [builtins] Introduce specialized Call/CallFunction builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_JS_OPERATOR_H_ 5 #ifndef V8_COMPILER_JS_OPERATOR_H_
6 #define V8_COMPILER_JS_OPERATOR_H_ 6 #define V8_COMPILER_JS_OPERATOR_H_
7 7
8 #include "src/runtime/runtime.h" 8 #include "src/runtime/runtime.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 24 matching lines...) Expand all
35 const Handle<TypeFeedbackVector> vector_; 35 const Handle<TypeFeedbackVector> vector_;
36 const FeedbackVectorSlot slot_; 36 const FeedbackVectorSlot slot_;
37 }; 37 };
38 38
39 bool operator==(VectorSlotPair const&, VectorSlotPair const&); 39 bool operator==(VectorSlotPair const&, VectorSlotPair const&);
40 bool operator!=(VectorSlotPair const&, VectorSlotPair const&); 40 bool operator!=(VectorSlotPair const&, VectorSlotPair const&);
41 41
42 size_t hash_value(VectorSlotPair const&); 42 size_t hash_value(VectorSlotPair const&);
43 43
44 44
45 // Defines hints about receiver values based on structural knowledge. This is 45 // The ConvertReceiverMode is used as parameter by JSConvertReceiver operators.
46 // used as a parameter by JSConvertReceiver operators.
47 enum class ConvertReceiverMode : unsigned {
48 kNullOrUndefined, // Guaranteed to be null or undefined.
49 kNotNullOrUndefined, // Guaranteed to never be null or undefined.
50 kAny // No specific knowledge about receiver.
51 };
52
53 size_t hash_value(ConvertReceiverMode);
54
55 std::ostream& operator<<(std::ostream&, ConvertReceiverMode);
56
57 ConvertReceiverMode ConvertReceiverModeOf(const Operator* op); 46 ConvertReceiverMode ConvertReceiverModeOf(const Operator* op);
58 47
59 48
60 // Defines whether tail call optimization is allowed. 49 // Defines whether tail call optimization is allowed.
61 enum class TailCallMode : unsigned { kAllow, kDisallow }; 50 enum class TailCallMode : unsigned { kAllow, kDisallow };
62 51
63 size_t hash_value(TailCallMode); 52 size_t hash_value(TailCallMode);
64 53
65 std::ostream& operator<<(std::ostream&, TailCallMode); 54 std::ostream& operator<<(std::ostream&, TailCallMode);
66 55
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 Zone* const zone_; 457 Zone* const zone_;
469 458
470 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); 459 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder);
471 }; 460 };
472 461
473 } // namespace compiler 462 } // namespace compiler
474 } // namespace internal 463 } // namespace internal
475 } // namespace v8 464 } // namespace v8
476 465
477 #endif // V8_COMPILER_JS_OPERATOR_H_ 466 #endif // V8_COMPILER_JS_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698