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

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

Issue 555131: Port code to load an integer directly from a heap number from ia32 to x64.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 void Assembler::fisttp_s(const Operand& adr) { 2106 void Assembler::fisttp_s(const Operand& adr) {
2107 ASSERT(CpuFeatures::IsEnabled(SSE3)); 2107 ASSERT(CpuFeatures::IsEnabled(SSE3));
2108 EnsureSpace ensure_space(this); 2108 EnsureSpace ensure_space(this);
2109 last_pc_ = pc_; 2109 last_pc_ = pc_;
2110 emit_optional_rex_32(adr); 2110 emit_optional_rex_32(adr);
2111 emit(0xDB); 2111 emit(0xDB);
2112 emit_operand(1, adr); 2112 emit_operand(1, adr);
2113 } 2113 }
2114 2114
2115 2115
2116 void Assembler::fisttp_d(const Operand& adr) {
2117 ASSERT(CpuFeatures::IsEnabled(SSE3));
2118 EnsureSpace ensure_space(this);
2119 last_pc_ = pc_;
2120 emit_optional_rex_32(adr);
2121 emit(0xDD);
2122 emit_operand(1, adr);
2123 }
2124
2125
2116 void Assembler::fist_s(const Operand& adr) { 2126 void Assembler::fist_s(const Operand& adr) {
2117 EnsureSpace ensure_space(this); 2127 EnsureSpace ensure_space(this);
2118 last_pc_ = pc_; 2128 last_pc_ = pc_;
2119 emit_optional_rex_32(adr); 2129 emit_optional_rex_32(adr);
2120 emit(0xDB); 2130 emit(0xDB);
2121 emit_operand(2, adr); 2131 emit_operand(2, adr);
2122 } 2132 }
2123 2133
2124 2134
2125 void Assembler::fistp_d(const Operand& adr) { 2135 void Assembler::fistp_d(const Operand& adr) {
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 written_position_ = current_position_; 2588 written_position_ = current_position_;
2579 } 2589 }
2580 } 2590 }
2581 2591
2582 2592
2583 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 2593 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
2584 1 << RelocInfo::INTERNAL_REFERENCE | 2594 1 << RelocInfo::INTERNAL_REFERENCE |
2585 1 << RelocInfo::JS_RETURN; 2595 1 << RelocInfo::JS_RETURN;
2586 2596
2587 } } // namespace v8::internal 2597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698