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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 197037: Use fucomi instruction to compare floats and put results directly into EFLAGS... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 2075
2076 2076
2077 void Assembler::fucompp() { 2077 void Assembler::fucompp() {
2078 EnsureSpace ensure_space(this); 2078 EnsureSpace ensure_space(this);
2079 last_pc_ = pc_; 2079 last_pc_ = pc_;
2080 emit(0xDA); 2080 emit(0xDA);
2081 emit(0xE9); 2081 emit(0xE9);
2082 } 2082 }
2083 2083
2084 2084
2085 void Assembler::fucomip() {
2086 EnsureSpace ensure_space(this);
2087 last_pc_ = pc_;
2088 emit(0xDF);
2089 emit(0xE9);
2090 }
2091
2092
2085 void Assembler::fcompp() { 2093 void Assembler::fcompp() {
2086 EnsureSpace ensure_space(this); 2094 EnsureSpace ensure_space(this);
2087 last_pc_ = pc_; 2095 last_pc_ = pc_;
2088 emit(0xDE); 2096 emit(0xDE);
2089 emit(0xD9); 2097 emit(0xD9);
2090 } 2098 }
2091 2099
2092 2100
2093 void Assembler::fnstsw_ax() { 2101 void Assembler::fnstsw_ax() {
2094 EnsureSpace ensure_space(this); 2102 EnsureSpace ensure_space(this);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 RecordRelocInfo(RelocInfo::POSITION, current_position_); 2366 RecordRelocInfo(RelocInfo::POSITION, current_position_);
2359 written_position_ = current_position_; 2367 written_position_ = current_position_;
2360 } 2368 }
2361 } 2369 }
2362 2370
2363 2371
2364 const int RelocInfo::kApplyMask = 1 << RelocInfo::INTERNAL_REFERENCE; 2372 const int RelocInfo::kApplyMask = 1 << RelocInfo::INTERNAL_REFERENCE;
2365 2373
2366 2374
2367 } } // namespace v8::internal 2375 } } // namespace v8::internal
OLDNEW
« src/ia32/assembler-ia32.h ('K') | « src/x64/assembler-x64.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698