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

Side by Side Diff: src/runtime/runtime.h

Issue 1369123002: [Interpreter] Add interpreter support for compare ops and ToBoolean. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove helper method from runtime-interpreter.cc. Created 5 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/unicode.h" 10 #include "src/unicode.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 F(DebugBreakInOptimizedCode, 0, 1) 209 F(DebugBreakInOptimizedCode, 0, 1)
210 210
211 211
212 #define FOR_EACH_INTRINSIC_FORIN(F) \ 212 #define FOR_EACH_INTRINSIC_FORIN(F) \
213 F(ForInDone, 2, 1) \ 213 F(ForInDone, 2, 1) \
214 F(ForInFilter, 2, 1) \ 214 F(ForInFilter, 2, 1) \
215 F(ForInNext, 4, 1) \ 215 F(ForInNext, 4, 1) \
216 F(ForInStep, 1, 1) 216 F(ForInStep, 1, 1)
217 217
218 218
219 #define FOR_EACH_INTRINSIC_FOR_INTERPRETER(F) \
Michael Starzinger 2015/09/28 11:53:13 nit: s/FOR_EACH_INTRINSIC_FOR_INTERPRETER/FOR_EACH
oth 2015/09/28 15:05:37 Done.
220 F(InterpreterEquals, 2, 1) \
221 F(InterpreterNotEquals, 2, 1) \
222 F(InterpreterStrictEquals, 2, 1) \
223 F(InterpreterStrictNotEquals, 2, 1) \
224 F(InterpreterLessThan, 2, 1) \
225 F(InterpreterGreaterThan, 2, 1) \
226 F(InterpreterLessThanOrEqual, 2, 1) \
227 F(InterpreterGreaterThanOrEqual, 2, 1) \
228 F(InterpreterCastToBoolean, 1, 1)
rmcilroy 2015/09/28 14:30:39 /s/CastToBoolean/ToBoolean for consistency
oth 2015/09/28 15:05:37 Done.
229
230
219 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ 231 #define FOR_EACH_INTRINSIC_FUNCTION(F) \
220 F(FunctionGetName, 1, 1) \ 232 F(FunctionGetName, 1, 1) \
221 F(FunctionSetName, 2, 1) \ 233 F(FunctionSetName, 2, 1) \
222 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ 234 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \
223 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \ 235 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \
224 F(FunctionIsArrow, 1, 1) \ 236 F(FunctionIsArrow, 1, 1) \
225 F(FunctionIsConciseMethod, 1, 1) \ 237 F(FunctionIsConciseMethod, 1, 1) \
226 F(FunctionRemovePrototype, 1, 1) \ 238 F(FunctionRemovePrototype, 1, 1) \
227 F(FunctionGetScript, 1, 1) \ 239 F(FunctionGetScript, 1, 1) \
228 F(FunctionGetSourceCode, 1, 1) \ 240 F(FunctionGetSourceCode, 1, 1) \
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \ 1063 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \
1052 FOR_EACH_INTRINSIC_IC(F) \ 1064 FOR_EACH_INTRINSIC_IC(F) \
1053 FOR_EACH_INTRINSIC_ARRAY(F) \ 1065 FOR_EACH_INTRINSIC_ARRAY(F) \
1054 FOR_EACH_INTRINSIC_ATOMICS(F) \ 1066 FOR_EACH_INTRINSIC_ATOMICS(F) \
1055 FOR_EACH_INTRINSIC_CLASSES(F) \ 1067 FOR_EACH_INTRINSIC_CLASSES(F) \
1056 FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 1068 FOR_EACH_INTRINSIC_COLLECTIONS(F) \
1057 FOR_EACH_INTRINSIC_COMPILER(F) \ 1069 FOR_EACH_INTRINSIC_COMPILER(F) \
1058 FOR_EACH_INTRINSIC_DATE(F) \ 1070 FOR_EACH_INTRINSIC_DATE(F) \
1059 FOR_EACH_INTRINSIC_DEBUG(F) \ 1071 FOR_EACH_INTRINSIC_DEBUG(F) \
1060 FOR_EACH_INTRINSIC_FORIN(F) \ 1072 FOR_EACH_INTRINSIC_FORIN(F) \
1073 FOR_EACH_INTRINSIC_FOR_INTERPRETER(F) \
1061 FOR_EACH_INTRINSIC_FUNCTION(F) \ 1074 FOR_EACH_INTRINSIC_FUNCTION(F) \
1062 FOR_EACH_INTRINSIC_FUTEX(F) \ 1075 FOR_EACH_INTRINSIC_FUTEX(F) \
1063 FOR_EACH_INTRINSIC_GENERATOR(F) \ 1076 FOR_EACH_INTRINSIC_GENERATOR(F) \
1064 FOR_EACH_INTRINSIC_I18N(F) \ 1077 FOR_EACH_INTRINSIC_I18N(F) \
1065 FOR_EACH_INTRINSIC_INTERNAL(F) \ 1078 FOR_EACH_INTRINSIC_INTERNAL(F) \
1066 FOR_EACH_INTRINSIC_JSON(F) \ 1079 FOR_EACH_INTRINSIC_JSON(F) \
1067 FOR_EACH_INTRINSIC_LITERALS(F) \ 1080 FOR_EACH_INTRINSIC_LITERALS(F) \
1068 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 1081 FOR_EACH_INTRINSIC_LIVEEDIT(F) \
1069 FOR_EACH_INTRINSIC_MATHS(F) \ 1082 FOR_EACH_INTRINSIC_MATHS(F) \
1070 FOR_EACH_INTRINSIC_NUMBERS(F) \ 1083 FOR_EACH_INTRINSIC_NUMBERS(F) \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 1239
1227 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1240 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1228 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1241 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1229 STATIC_ASSERT(LANGUAGE_END == 3); 1242 STATIC_ASSERT(LANGUAGE_END == 3);
1230 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1243 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1231 1244
1232 } // namespace internal 1245 } // namespace internal
1233 } // namespace v8 1246 } // namespace v8
1234 1247
1235 #endif // V8_RUNTIME_RUNTIME_H_ 1248 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698