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

Side by Side Diff: src/assembler.cc

Issue 6815029: Merge (7180:7265] from bleeding_edge to the experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 8 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 | « src/assembler.h ('k') | src/bootstrapper.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif // Target architecture. 62 #endif // Target architecture.
63 #endif // V8_INTERPRETED_REGEXP 63 #endif // V8_INTERPRETED_REGEXP
64 64
65 namespace v8 { 65 namespace v8 {
66 namespace internal { 66 namespace internal {
67 67
68 68
69 const double DoubleConstant::min_int = kMinInt; 69 const double DoubleConstant::min_int = kMinInt;
70 const double DoubleConstant::one_half = 0.5; 70 const double DoubleConstant::one_half = 0.5;
71 const double DoubleConstant::minus_zero = -0.0; 71 const double DoubleConstant::minus_zero = -0.0;
72 const double DoubleConstant::nan = OS::nan_value();
72 const double DoubleConstant::negative_infinity = -V8_INFINITY; 73 const double DoubleConstant::negative_infinity = -V8_INFINITY;
73 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; 74 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
74 75
75 // ----------------------------------------------------------------------------- 76 // -----------------------------------------------------------------------------
76 // Implementation of Label 77 // Implementation of Label
77 78
78 int Label::pos() const { 79 int Label::pos() const {
79 if (pos_ < 0) return -pos_ - 1; 80 if (pos_ < 0) return -pos_ - 1;
80 if (pos_ > 0) return pos_ - 1; 81 if (pos_ > 0) return pos_ - 1;
81 UNREACHABLE(); 82 UNREACHABLE();
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 const_cast<double*>(&DoubleConstant::minus_zero))); 753 const_cast<double*>(&DoubleConstant::minus_zero)));
753 } 754 }
754 755
755 756
756 ExternalReference ExternalReference::address_of_negative_infinity() { 757 ExternalReference ExternalReference::address_of_negative_infinity() {
757 return ExternalReference(reinterpret_cast<void*>( 758 return ExternalReference(reinterpret_cast<void*>(
758 const_cast<double*>(&DoubleConstant::negative_infinity))); 759 const_cast<double*>(&DoubleConstant::negative_infinity)));
759 } 760 }
760 761
761 762
763 ExternalReference ExternalReference::address_of_nan() {
764 return ExternalReference(reinterpret_cast<void*>(
765 const_cast<double*>(&DoubleConstant::nan)));
766 }
767
768
762 #ifndef V8_INTERPRETED_REGEXP 769 #ifndef V8_INTERPRETED_REGEXP
763 770
764 ExternalReference ExternalReference::re_check_stack_guard_state() { 771 ExternalReference ExternalReference::re_check_stack_guard_state() {
765 Address function; 772 Address function;
766 #ifdef V8_TARGET_ARCH_X64 773 #ifdef V8_TARGET_ARCH_X64
767 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 774 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
768 #elif V8_TARGET_ARCH_IA32 775 #elif V8_TARGET_ARCH_IA32
769 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 776 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
770 #elif V8_TARGET_ARCH_ARM 777 #elif V8_TARGET_ARCH_ARM
771 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); 778 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1018 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1012 state_.written_position = state_.current_position; 1019 state_.written_position = state_.current_position;
1013 written = true; 1020 written = true;
1014 } 1021 }
1015 1022
1016 // Return whether something was written. 1023 // Return whether something was written.
1017 return written; 1024 return written;
1018 } 1025 }
1019 1026
1020 } } // namespace v8::internal 1027 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698