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

Side by Side Diff: src/assembler.h

Issue 5862002: Version 3.0.2. (Closed)
Patch Set: Created 10 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
« ChangeLog ('K') | « src/array.js ('k') | 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 negative_infinity;
54 }; 53 };
55 54
56 55
57 // ----------------------------------------------------------------------------- 56 // -----------------------------------------------------------------------------
58 // Labels represent pc locations; they are typically jump or call targets. 57 // 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) 58 // 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 59 // unknown pc location. Assembler::bind() is used to bind a label to the
61 // current pc. A label can be bound only once. 60 // current pc. A label can be bound only once.
62 61
63 class Label BASE_EMBEDDED { 62 class Label BASE_EMBEDDED {
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 static ExternalReference new_space_start(); 532 static ExternalReference new_space_start();
534 static ExternalReference new_space_mask(); 533 static ExternalReference new_space_mask();
535 static ExternalReference heap_always_allocate_scope_depth(); 534 static ExternalReference heap_always_allocate_scope_depth();
536 535
537 // Used for fast allocation in generated code. 536 // Used for fast allocation in generated code.
538 static ExternalReference new_space_allocation_top_address(); 537 static ExternalReference new_space_allocation_top_address();
539 static ExternalReference new_space_allocation_limit_address(); 538 static ExternalReference new_space_allocation_limit_address();
540 539
541 static ExternalReference double_fp_operation(Token::Value operation); 540 static ExternalReference double_fp_operation(Token::Value operation);
542 static ExternalReference compare_doubles(); 541 static ExternalReference compare_doubles();
543 static ExternalReference power_double_double_function();
544 static ExternalReference power_double_int_function();
545 542
546 static ExternalReference handle_scope_next_address(); 543 static ExternalReference handle_scope_next_address();
547 static ExternalReference handle_scope_limit_address(); 544 static ExternalReference handle_scope_limit_address();
548 static ExternalReference handle_scope_level_address(); 545 static ExternalReference handle_scope_level_address();
549 546
550 static ExternalReference scheduled_exception_address(); 547 static ExternalReference scheduled_exception_address();
551 548
552 // Static variables containing common double constants. 549 // Static variables containing common double constants.
553 static ExternalReference address_of_min_int(); 550 static ExternalReference address_of_min_int();
554 static ExternalReference address_of_one_half(); 551 static ExternalReference address_of_one_half();
555 static ExternalReference address_of_negative_infinity();
556 552
557 Address address() const {return reinterpret_cast<Address>(address_);} 553 Address address() const {return reinterpret_cast<Address>(address_);}
558 554
559 #ifdef ENABLE_DEBUGGER_SUPPORT 555 #ifdef ENABLE_DEBUGGER_SUPPORT
560 // Function Debug::Break() 556 // Function Debug::Break()
561 static ExternalReference debug_break(); 557 static ExternalReference debug_break();
562 558
563 // Used to check if single stepping is enabled in generated code. 559 // Used to check if single stepping is enabled in generated code.
564 static ExternalReference debug_step_in_fp_address(); 560 static ExternalReference debug_step_in_fp_address();
565 #endif 561 #endif
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 static inline bool is_uint28(int x) { return is_uintn(x, 28); } 703 static inline bool is_uint28(int x) { return is_uintn(x, 28); }
708 704
709 static inline int NumberOfBitsSet(uint32_t x) { 705 static inline int NumberOfBitsSet(uint32_t x) {
710 unsigned int num_bits_set; 706 unsigned int num_bits_set;
711 for (num_bits_set = 0; x; x >>= 1) { 707 for (num_bits_set = 0; x; x >>= 1) {
712 num_bits_set += x & 1; 708 num_bits_set += x & 1;
713 } 709 }
714 return num_bits_set; 710 return num_bits_set;
715 } 711 }
716 712
717 // Computes pow(x, y) with the special cases in the spec for Math.pow.
718 double power_double_int(double x, int y);
719 double power_double_double(double x, double y);
720
721 } } // namespace v8::internal 713 } } // namespace v8::internal
722 714
723 #endif // V8_ASSEMBLER_H_ 715 #endif // V8_ASSEMBLER_H_
OLDNEW
« ChangeLog ('K') | « src/array.js ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698