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

Side by Side Diff: src/code-stubs.h

Issue 7544012: Implement type recording for ToBoolean on x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698