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

Side by Side Diff: src/assembler.h

Issue 6049008: SSE2 truncating double-to-i. (Closed)
Patch Set: Update exponent limit description Created 9 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
« no previous file with comments | « no previous file | src/assembler.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 namespace internal { 43 namespace internal {
44 44
45 45
46 // ----------------------------------------------------------------------------- 46 // -----------------------------------------------------------------------------
47 // Common double constants. 47 // Common double constants.
48 48
49 class DoubleConstant: public AllStatic { 49 class DoubleConstant: public AllStatic {
50 public: 50 public:
51 static const double min_int; 51 static const double min_int;
52 static const double one_half; 52 static const double one_half;
53 static const double minus_zero;
53 static const double negative_infinity; 54 static const double negative_infinity;
54 }; 55 };
55 56
56 57
57 // ----------------------------------------------------------------------------- 58 // -----------------------------------------------------------------------------
58 // Labels represent pc locations; they are typically jump or call targets. 59 // Labels represent pc locations; they are typically jump or call targets.
59 // After declaration, a label can be freely used to denote known or (yet) 60 // After declaration, a label can be freely used to denote known or (yet)
60 // unknown pc location. Assembler::bind() is used to bind a label to the 61 // unknown pc location. Assembler::bind() is used to bind a label to the
61 // current pc. A label can be bound only once. 62 // current pc. A label can be bound only once.
62 63
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 546
546 static ExternalReference handle_scope_next_address(); 547 static ExternalReference handle_scope_next_address();
547 static ExternalReference handle_scope_limit_address(); 548 static ExternalReference handle_scope_limit_address();
548 static ExternalReference handle_scope_level_address(); 549 static ExternalReference handle_scope_level_address();
549 550
550 static ExternalReference scheduled_exception_address(); 551 static ExternalReference scheduled_exception_address();
551 552
552 // Static variables containing common double constants. 553 // Static variables containing common double constants.
553 static ExternalReference address_of_min_int(); 554 static ExternalReference address_of_min_int();
554 static ExternalReference address_of_one_half(); 555 static ExternalReference address_of_one_half();
556 static ExternalReference address_of_minus_zero();
555 static ExternalReference address_of_negative_infinity(); 557 static ExternalReference address_of_negative_infinity();
556 558
557 Address address() const {return reinterpret_cast<Address>(address_);} 559 Address address() const {return reinterpret_cast<Address>(address_);}
558 560
559 #ifdef ENABLE_DEBUGGER_SUPPORT 561 #ifdef ENABLE_DEBUGGER_SUPPORT
560 // Function Debug::Break() 562 // Function Debug::Break()
561 static ExternalReference debug_break(); 563 static ExternalReference debug_break();
562 564
563 // Used to check if single stepping is enabled in generated code. 565 // Used to check if single stepping is enabled in generated code.
564 static ExternalReference debug_step_in_fp_address(); 566 static ExternalReference debug_step_in_fp_address();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 return num_bits_set; 716 return num_bits_set;
715 } 717 }
716 718
717 // Computes pow(x, y) with the special cases in the spec for Math.pow. 719 // Computes pow(x, y) with the special cases in the spec for Math.pow.
718 double power_double_int(double x, int y); 720 double power_double_int(double x, int y);
719 double power_double_double(double x, double y); 721 double power_double_double(double x, double y);
720 722
721 } } // namespace v8::internal 723 } } // namespace v8::internal
722 724
723 #endif // V8_ASSEMBLER_H_ 725 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698