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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 300004: X64 Win64: Reimplement fmod so that it works. (Closed)
Patch Set: And it lints. Created 11 years, 2 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
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Set(dst, reinterpret_cast<int64_t>(source)); 379 Set(dst, reinterpret_cast<int64_t>(source));
380 } 380 }
381 381
382 void Move(const Operand& dst, Smi* source) { 382 void Move(const Operand& dst, Smi* source) {
383 Set(dst, reinterpret_cast<int64_t>(source)); 383 Set(dst, reinterpret_cast<int64_t>(source));
384 } 384 }
385 385
386 void Push(Smi* smi); 386 void Push(Smi* smi);
387 void Test(const Operand& dst, Smi* source); 387 void Test(const Operand& dst, Smi* source);
388 388
389 // Loads a smi as an integer onto the FPU stack.
390 void FLoadSmi(const Operand& src);
391
389 // --------------------------------------------------------------------------- 392 // ---------------------------------------------------------------------------
390 // Macro instructions 393 // Macro instructions
391 394
392 // Load a register with a long value as efficiently as possible. 395 // Load a register with a long value as efficiently as possible.
393 void Set(Register dst, int64_t x); 396 void Set(Register dst, int64_t x);
394 void Set(const Operand& dst, int64_t x); 397 void Set(const Operand& dst, int64_t x);
395 398
396 // Handle support 399 // Handle support
397 void Move(Register dst, Handle<Object> source); 400 void Move(Register dst, Handle<Object> source);
398 void Move(const Operand& dst, Handle<Object> source); 401 void Move(const Operand& dst, Handle<Object> source);
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } \ 696 } \
694 masm-> 697 masm->
695 #else 698 #else
696 #define ACCESS_MASM(masm) masm-> 699 #define ACCESS_MASM(masm) masm->
697 #endif 700 #endif
698 701
699 702
700 } } // namespace v8::internal 703 } } // namespace v8::internal
701 704
702 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 705 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698