OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 private: | 948 private: |
949 Major MajorKey() { return ToBoolean; } | 949 Major MajorKey() { return ToBoolean; } |
950 int MinorKey() { return (tos_.code() << NUMBER_OF_TYPES) | types_.ToByte(); } | 950 int MinorKey() { return (tos_.code() << NUMBER_OF_TYPES) | types_.ToByte(); } |
951 | 951 |
952 virtual void FinishCode(Code* code) { | 952 virtual void FinishCode(Code* code) { |
953 code->set_to_boolean_state(types_.ToByte()); | 953 code->set_to_boolean_state(types_.ToByte()); |
954 } | 954 } |
955 | 955 |
956 void CheckOddball(MacroAssembler* masm, | 956 void CheckOddball(MacroAssembler* masm, |
957 Type type, | 957 Type type, |
958 Handle<Object> value, | 958 Heap::RootListIndex value, |
959 bool result, | 959 bool result, |
960 Label* patch); | 960 Label* patch); |
961 void GenerateTypeTransition(MacroAssembler* masm); | 961 void GenerateTypeTransition(MacroAssembler* masm); |
962 | 962 |
963 Register tos_; | 963 Register tos_; |
964 Types types_; | 964 Types types_; |
965 }; | 965 }; |
966 | 966 |
967 } } // namespace v8::internal | 967 } } // namespace v8::internal |
968 | 968 |
969 #endif // V8_CODE_STUBS_H_ | 969 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |