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

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

Issue 24978003: Remove unused SmiTryAddConstant from X64 macro assembler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/x64/macro-assembler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // Jump if either or both register are not non-negative smi values. 525 // Jump if either or both register are not non-negative smi values.
526 void JumpUnlessBothNonNegativeSmi(Register src1, Register src2, 526 void JumpUnlessBothNonNegativeSmi(Register src1, Register src2,
527 Label* on_not_both_smi, 527 Label* on_not_both_smi,
528 Label::Distance near_jump = Label::kFar); 528 Label::Distance near_jump = Label::kFar);
529 529
530 // Operations on tagged smi values. 530 // Operations on tagged smi values.
531 531
532 // Smis represent a subset of integers. The subset is always equivalent to 532 // Smis represent a subset of integers. The subset is always equivalent to
533 // a two's complement interpretation of a fixed number of bits. 533 // a two's complement interpretation of a fixed number of bits.
534 534
535 // Optimistically adds an integer constant to a supposed smi.
536 // If the src is not a smi, or the result is not a smi, jump to
537 // the label.
538 void SmiTryAddConstant(Register dst,
539 Register src,
540 Smi* constant,
541 Label* on_not_smi_result,
542 Label::Distance near_jump = Label::kFar);
543
544 // Add an integer constant to a tagged smi, giving a tagged smi as result. 535 // Add an integer constant to a tagged smi, giving a tagged smi as result.
545 // No overflow testing on the result is done. 536 // No overflow testing on the result is done.
546 void SmiAddConstant(Register dst, Register src, Smi* constant); 537 void SmiAddConstant(Register dst, Register src, Smi* constant);
547 538
548 // Add an integer constant to a tagged smi, giving a tagged smi as result. 539 // Add an integer constant to a tagged smi, giving a tagged smi as result.
549 // No overflow testing on the result is done. 540 // No overflow testing on the result is done.
550 void SmiAddConstant(const Operand& dst, Smi* constant); 541 void SmiAddConstant(const Operand& dst, Smi* constant);
551 542
552 // Add an integer constant to a tagged smi, giving a tagged smi as result, 543 // Add an integer constant to a tagged smi, giving a tagged smi as result,
553 // or jumping to a label if the result cannot be represented by a smi. 544 // or jumping to a label if the result cannot be represented by a smi.
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 masm->popfq(); \ 1572 masm->popfq(); \
1582 } \ 1573 } \
1583 masm-> 1574 masm->
1584 #else 1575 #else
1585 #define ACCESS_MASM(masm) masm-> 1576 #define ACCESS_MASM(masm) masm->
1586 #endif 1577 #endif
1587 1578
1588 } } // namespace v8::internal 1579 } } // namespace v8::internal
1589 1580
1590 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1581 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698