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/interpreter/interpreter-intrinsics.h

Issue 2097473002: [Interpreter] Add ValueOf intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | src/interpreter/interpreter-intrinsics.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_INTERPRETER_INTERPRETER_INTRINSICS_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_INTRINSICS_H_
6 #define V8_INTERPRETER_INTERPRETER_INTRINSICS_H_ 6 #define V8_INTERPRETER_INTERPRETER_INTRINSICS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/smart-pointers.h" 9 #include "src/base/smart-pointers.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 26 matching lines...) Expand all
37 V(NewObject, new_object, 2) \ 37 V(NewObject, new_object, 2) \
38 V(NumberToString, number_to_string, 1) \ 38 V(NumberToString, number_to_string, 1) \
39 V(RegExpConstructResult, reg_exp_construct_result, 3) \ 39 V(RegExpConstructResult, reg_exp_construct_result, 3) \
40 V(RegExpExec, reg_exp_exec, 4) \ 40 V(RegExpExec, reg_exp_exec, 4) \
41 V(SubString, sub_string, 3) \ 41 V(SubString, sub_string, 3) \
42 V(ToString, to_string, 1) \ 42 V(ToString, to_string, 1) \
43 V(ToName, to_name, 1) \ 43 V(ToName, to_name, 1) \
44 V(ToLength, to_length, 1) \ 44 V(ToLength, to_length, 1) \
45 V(ToInteger, to_integer, 1) \ 45 V(ToInteger, to_integer, 1) \
46 V(ToNumber, to_number, 1) \ 46 V(ToNumber, to_number, 1) \
47 V(ToObject, to_object, 1) 47 V(ToObject, to_object, 1) \
48 V(ValueOf, value_of, 1)
48 49
49 class IntrinsicsHelper { 50 class IntrinsicsHelper {
50 public: 51 public:
51 enum class IntrinsicId { 52 enum class IntrinsicId {
52 #define DECLARE_INTRINSIC_ID(name, lower_case, count) k##name, 53 #define DECLARE_INTRINSIC_ID(name, lower_case, count) k##name,
53 INTRINSICS_LIST(DECLARE_INTRINSIC_ID) 54 INTRINSICS_LIST(DECLARE_INTRINSIC_ID)
54 #undef DECLARE_INTRINSIC_ID 55 #undef DECLARE_INTRINSIC_ID
55 kIdCount 56 kIdCount
56 }; 57 };
57 STATIC_ASSERT(static_cast<uint32_t>(IntrinsicId::kIdCount) <= kMaxUInt8); 58 STATIC_ASSERT(static_cast<uint32_t>(IntrinsicId::kIdCount) <= kMaxUInt8);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 InterpreterAssembler* assembler_; 96 InterpreterAssembler* assembler_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper); 98 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper);
98 }; 99 };
99 100
100 } // namespace interpreter 101 } // namespace interpreter
101 } // namespace internal 102 } // namespace internal
102 } // namespace v8 103 } // namespace v8
103 104
104 #endif 105 #endif
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/interpreter-intrinsics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698