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

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/x64/code-stubs-x64.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 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 #if V8_TARGET_ARCH_IA32
danno 2011/08/01 11:36:13 Why don't you make CheckOddball a method in the Ma
Kevin Millikin (Chromium) 2011/08/01 11:51:55 I thought it was because it needs the types_. The
958 Handle<Object> value, 959 Handle<Object> value,
Kevin Millikin (Chromium) 2011/08/01 11:32:04 I don't really like using the preprocessor like th
960 #else
961 Heap::RootListIndex value,
962 #endif
959 bool result, 963 bool result,
960 Label* patch); 964 Label* patch);
961 void GenerateTypeTransition(MacroAssembler* masm); 965 void GenerateTypeTransition(MacroAssembler* masm);
962 966
963 Register tos_; 967 Register tos_;
964 Types types_; 968 Types types_;
965 }; 969 };
966 970
967 } } // namespace v8::internal 971 } } // namespace v8::internal
968 972
969 #endif // V8_CODE_STUBS_H_ 973 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698