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

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

Issue 8821019: Porting Math.pow changes to x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 9 years 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 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 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 } 2300 }
2301 2301
2302 2302
2303 void Assembler::fyl2x() { 2303 void Assembler::fyl2x() {
2304 EnsureSpace ensure_space(this); 2304 EnsureSpace ensure_space(this);
2305 emit(0xD9); 2305 emit(0xD9);
2306 emit(0xF1); 2306 emit(0xF1);
2307 } 2307 }
2308 2308
2309 2309
2310 void Assembler::f2xm1() {
2311 EnsureSpace ensure_space(this);
2312 emit(0xD9);
2313 emit(0xF0);
2314 }
2315
2316
2317 void Assembler::fscale() {
2318 EnsureSpace ensure_space(this);
2319 emit(0xD9);
2320 emit(0xFD);
2321 }
2322
2323
2324 void Assembler::fninit() {
2325 EnsureSpace ensure_space(this);
2326 emit(0xDB);
2327 emit(0xE3);
2328 }
2329
2330
2310 void Assembler::fadd(int i) { 2331 void Assembler::fadd(int i) {
2311 EnsureSpace ensure_space(this); 2332 EnsureSpace ensure_space(this);
2312 emit_farith(0xDC, 0xC0, i); 2333 emit_farith(0xDC, 0xC0, i);
2313 } 2334 }
2314 2335
2315 2336
2316 void Assembler::fsub(int i) { 2337 void Assembler::fsub(int i) {
2317 EnsureSpace ensure_space(this); 2338 EnsureSpace ensure_space(this);
2318 emit_farith(0xDC, 0xE8, i); 2339 emit_farith(0xDC, 0xE8, i);
2319 } 2340 }
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
3020 // specially coded on x64 means that it is a relative 32 bit address, as used 3041 // specially coded on x64 means that it is a relative 32 bit address, as used
3021 // by branch instructions. 3042 // by branch instructions.
3022 return (1 << rmode_) & kApplyMask; 3043 return (1 << rmode_) & kApplyMask;
3023 } 3044 }
3024 3045
3025 3046
3026 3047
3027 } } // namespace v8::internal 3048 } } // namespace v8::internal
3028 3049
3029 #endif // V8_TARGET_ARCH_X64 3050 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698