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

Side by Side Diff: src/assembler.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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/ast.h » ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #error "Unknown architecture." 59 #error "Unknown architecture."
60 #endif // Target architecture. 60 #endif // Target architecture.
61 #endif // V8_INTERPRETED_REGEXP 61 #endif // V8_INTERPRETED_REGEXP
62 62
63 namespace v8 { 63 namespace v8 {
64 namespace internal { 64 namespace internal {
65 65
66 66
67 const double DoubleConstant::min_int = kMinInt; 67 const double DoubleConstant::min_int = kMinInt;
68 const double DoubleConstant::one_half = 0.5; 68 const double DoubleConstant::one_half = 0.5;
69 const double DoubleConstant::minus_zero = -0.0;
69 const double DoubleConstant::negative_infinity = -V8_INFINITY; 70 const double DoubleConstant::negative_infinity = -V8_INFINITY;
70 71
71 72
72 // ----------------------------------------------------------------------------- 73 // -----------------------------------------------------------------------------
73 // Implementation of Label 74 // Implementation of Label
74 75
75 int Label::pos() const { 76 int Label::pos() const {
76 if (pos_ < 0) return -pos_ - 1; 77 if (pos_ < 0) return -pos_ - 1;
77 if (pos_ > 0) return pos_ - 1; 78 if (pos_ > 0) return pos_ - 1;
78 UNREACHABLE(); 79 UNREACHABLE();
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 return ExternalReference(Isolate::Current()-> 650 return ExternalReference(Isolate::Current()->
650 keyed_lookup_cache()->field_offsets_address()); 651 keyed_lookup_cache()->field_offsets_address());
651 } 652 }
652 653
653 654
654 ExternalReference ExternalReference::the_hole_value_location() { 655 ExternalReference ExternalReference::the_hole_value_location() {
655 return ExternalReference(FACTORY->the_hole_value().location()); 656 return ExternalReference(FACTORY->the_hole_value().location());
656 } 657 }
657 658
658 659
660 ExternalReference ExternalReference::arguments_marker_location() {
661 return ExternalReference(FACTORY->arguments_marker().location());
662 }
663
664
659 ExternalReference ExternalReference::roots_address() { 665 ExternalReference ExternalReference::roots_address() {
660 return ExternalReference(HEAP->roots_address()); 666 return ExternalReference(HEAP->roots_address());
661 } 667 }
662 668
663 669
664 ExternalReference ExternalReference::address_of_stack_limit() { 670 ExternalReference ExternalReference::address_of_stack_limit() {
665 return ExternalReference( 671 return ExternalReference(
666 Isolate::Current()->stack_guard()->address_of_jslimit()); 672 Isolate::Current()->stack_guard()->address_of_jslimit());
667 } 673 }
668 674
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 const_cast<double*>(&DoubleConstant::min_int))); 735 const_cast<double*>(&DoubleConstant::min_int)));
730 } 736 }
731 737
732 738
733 ExternalReference ExternalReference::address_of_one_half() { 739 ExternalReference ExternalReference::address_of_one_half() {
734 return ExternalReference(reinterpret_cast<void*>( 740 return ExternalReference(reinterpret_cast<void*>(
735 const_cast<double*>(&DoubleConstant::one_half))); 741 const_cast<double*>(&DoubleConstant::one_half)));
736 } 742 }
737 743
738 744
745 ExternalReference ExternalReference::address_of_minus_zero() {
746 return ExternalReference(reinterpret_cast<void*>(
747 const_cast<double*>(&DoubleConstant::minus_zero)));
748 }
749
750
739 ExternalReference ExternalReference::address_of_negative_infinity() { 751 ExternalReference ExternalReference::address_of_negative_infinity() {
740 return ExternalReference(reinterpret_cast<void*>( 752 return ExternalReference(reinterpret_cast<void*>(
741 const_cast<double*>(&DoubleConstant::negative_infinity))); 753 const_cast<double*>(&DoubleConstant::negative_infinity)));
742 } 754 }
743 755
744 756
745 #ifndef V8_INTERPRETED_REGEXP 757 #ifndef V8_INTERPRETED_REGEXP
746 758
747 ExternalReference ExternalReference::re_check_stack_guard_state() { 759 ExternalReference ExternalReference::re_check_stack_guard_state() {
748 Address function; 760 Address function;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 960 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
949 state_.written_position = state_.current_position; 961 state_.written_position = state_.current_position;
950 written = true; 962 written = true;
951 } 963 }
952 964
953 // Return whether something was written. 965 // Return whether something was written.
954 return written; 966 return written;
955 } 967 }
956 968
957 } } // namespace v8::internal 969 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698