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

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

Issue 1333843002: [runtime] Move binary operator fallbacks into the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: No need for frame states in bytecode handlers. Add test case. Created 5 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 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 F(NumberToPrecision, 2, 1) \ 398 F(NumberToPrecision, 2, 1) \
399 F(IsValidSmi, 1, 1) \ 399 F(IsValidSmi, 1, 1) \
400 F(StringToNumber, 1, 1) \ 400 F(StringToNumber, 1, 1) \
401 F(StringParseInt, 2, 1) \ 401 F(StringParseInt, 2, 1) \
402 F(StringParseFloat, 1, 1) \ 402 F(StringParseFloat, 1, 1) \
403 F(NumberToString, 1, 1) \ 403 F(NumberToString, 1, 1) \
404 F(NumberToStringSkipCache, 1, 1) \ 404 F(NumberToStringSkipCache, 1, 1) \
405 F(NumberToInteger, 1, 1) \ 405 F(NumberToInteger, 1, 1) \
406 F(NumberToIntegerMapMinusZero, 1, 1) \ 406 F(NumberToIntegerMapMinusZero, 1, 1) \
407 F(NumberToSmi, 1, 1) \ 407 F(NumberToSmi, 1, 1) \
408 F(NumberAdd, 2, 1) \
409 F(NumberSub, 2, 1) \
410 F(NumberMul, 2, 1) \
411 F(NumberDiv, 2, 1) \
412 F(NumberMod, 2, 1) \
413 F(NumberImul, 2, 1) \ 408 F(NumberImul, 2, 1) \
414 F(NumberOr, 2, 1) \
415 F(NumberAnd, 2, 1) \
416 F(NumberXor, 2, 1) \
417 F(NumberShl, 2, 1) \
418 F(NumberShr, 2, 1) \
419 F(NumberSar, 2, 1) \
420 F(NumberEquals, 2, 1) \ 409 F(NumberEquals, 2, 1) \
421 F(NumberCompare, 3, 1) \ 410 F(NumberCompare, 3, 1) \
422 F(SmiLexicographicCompare, 2, 1) \ 411 F(SmiLexicographicCompare, 2, 1) \
423 F(MaxSmi, 0, 1) \ 412 F(MaxSmi, 0, 1) \
424 F(IsSmi, 1, 1) \ 413 F(IsSmi, 1, 1) \
425 F(GetRootNaN, 0, 1) 414 F(GetRootNaN, 0, 1)
426 415
427 416
428 #define FOR_EACH_INTRINSIC_OBJECT(F) \ 417 #define FOR_EACH_INTRINSIC_OBJECT(F) \
429 F(GetPrototype, 1, 1) \ 418 F(GetPrototype, 1, 1) \
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 F(RunMicrotasks, 0, 1) \ 493 F(RunMicrotasks, 0, 1) \
505 F(DeliverObservationChangeRecords, 2, 1) \ 494 F(DeliverObservationChangeRecords, 2, 1) \
506 F(GetObservationState, 0, 1) \ 495 F(GetObservationState, 0, 1) \
507 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ 496 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \
508 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \ 497 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \
509 F(GetObjectContextObjectObserve, 1, 1) \ 498 F(GetObjectContextObjectObserve, 1, 1) \
510 F(GetObjectContextObjectGetNotifier, 1, 1) \ 499 F(GetObjectContextObjectGetNotifier, 1, 1) \
511 F(GetObjectContextNotifierPerformChange, 1, 1) 500 F(GetObjectContextNotifierPerformChange, 1, 1)
512 501
513 502
503 #define FOR_EACH_INTRINSIC_OPERATORS(F) \
504 F(Multiply, 2, 1) \
505 F(Multiply_Strong, 2, 1) \
506 F(Divide, 2, 1) \
507 F(Divide_Strong, 2, 1) \
508 F(Modulus, 2, 1) \
509 F(Modulus_Strong, 2, 1) \
510 F(Add, 2, 1) \
511 F(Add_Strong, 2, 1) \
512 F(Subtract, 2, 1) \
513 F(Subtract_Strong, 2, 1) \
514 F(ShiftLeft, 2, 1) \
515 F(ShiftLeft_Strong, 2, 1) \
516 F(ShiftRight, 2, 1) \
517 F(ShiftRight_Strong, 2, 1) \
518 F(ShiftRightLogical, 2, 1) \
519 F(ShiftRightLogical_Strong, 2, 1) \
520 F(BitwiseAnd, 2, 1) \
521 F(BitwiseAnd_Strong, 2, 1) \
522 F(BitwiseOr, 2, 1) \
523 F(BitwiseOr_Strong, 2, 1) \
524 F(BitwiseXor, 2, 1) \
525 F(BitwiseXor_Strong, 2, 1)
526
Michael Starzinger 2015/09/10 11:43:24 nit: Two empty newlines.
514 #define FOR_EACH_INTRINSIC_PROXY(F) \ 527 #define FOR_EACH_INTRINSIC_PROXY(F) \
515 F(CreateJSProxy, 2, 1) \ 528 F(CreateJSProxy, 2, 1) \
516 F(CreateJSFunctionProxy, 4, 1) \ 529 F(CreateJSFunctionProxy, 4, 1) \
517 F(IsJSProxy, 1, 1) \ 530 F(IsJSProxy, 1, 1) \
518 F(IsJSFunctionProxy, 1, 1) \ 531 F(IsJSFunctionProxy, 1, 1) \
519 F(GetHandler, 1, 1) \ 532 F(GetHandler, 1, 1) \
520 F(GetCallTrap, 1, 1) \ 533 F(GetCallTrap, 1, 1) \
521 F(GetConstructTrap, 1, 1) \ 534 F(GetConstructTrap, 1, 1) \
522 F(Fix, 1, 1) 535 F(Fix, 1, 1)
523 536
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 FOR_EACH_INTRINSIC_GENERATOR(F) \ 1071 FOR_EACH_INTRINSIC_GENERATOR(F) \
1059 FOR_EACH_INTRINSIC_I18N(F) \ 1072 FOR_EACH_INTRINSIC_I18N(F) \
1060 FOR_EACH_INTRINSIC_INTERNAL(F) \ 1073 FOR_EACH_INTRINSIC_INTERNAL(F) \
1061 FOR_EACH_INTRINSIC_JSON(F) \ 1074 FOR_EACH_INTRINSIC_JSON(F) \
1062 FOR_EACH_INTRINSIC_LITERALS(F) \ 1075 FOR_EACH_INTRINSIC_LITERALS(F) \
1063 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 1076 FOR_EACH_INTRINSIC_LIVEEDIT(F) \
1064 FOR_EACH_INTRINSIC_MATHS(F) \ 1077 FOR_EACH_INTRINSIC_MATHS(F) \
1065 FOR_EACH_INTRINSIC_NUMBERS(F) \ 1078 FOR_EACH_INTRINSIC_NUMBERS(F) \
1066 FOR_EACH_INTRINSIC_OBJECT(F) \ 1079 FOR_EACH_INTRINSIC_OBJECT(F) \
1067 FOR_EACH_INTRINSIC_OBSERVE(F) \ 1080 FOR_EACH_INTRINSIC_OBSERVE(F) \
1081 FOR_EACH_INTRINSIC_OPERATORS(F) \
1068 FOR_EACH_INTRINSIC_PROXY(F) \ 1082 FOR_EACH_INTRINSIC_PROXY(F) \
1069 FOR_EACH_INTRINSIC_REGEXP(F) \ 1083 FOR_EACH_INTRINSIC_REGEXP(F) \
1070 FOR_EACH_INTRINSIC_SCOPES(F) \ 1084 FOR_EACH_INTRINSIC_SCOPES(F) \
1071 FOR_EACH_INTRINSIC_SIMD(F) \ 1085 FOR_EACH_INTRINSIC_SIMD(F) \
1072 FOR_EACH_INTRINSIC_STRINGS(F) \ 1086 FOR_EACH_INTRINSIC_STRINGS(F) \
1073 FOR_EACH_INTRINSIC_SYMBOL(F) \ 1087 FOR_EACH_INTRINSIC_SYMBOL(F) \
1074 FOR_EACH_INTRINSIC_TEST(F) \ 1088 FOR_EACH_INTRINSIC_TEST(F) \
1075 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ 1089 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
1076 FOR_EACH_INTRINSIC_URI(F) 1090 FOR_EACH_INTRINSIC_URI(F)
1077 1091
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 1238
1225 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1239 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1226 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1240 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1227 STATIC_ASSERT(LANGUAGE_END == 3); 1241 STATIC_ASSERT(LANGUAGE_END == 3);
1228 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1242 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1229 1243
1230 } // namespace internal 1244 } // namespace internal
1231 } // namespace v8 1245 } // namespace v8
1232 1246
1233 #endif // V8_RUNTIME_RUNTIME_H_ 1247 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/runtime.js ('k') | src/runtime/runtime-i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698