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

Side by Side Diff: src/assembler.cc

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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) 2011 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 //
11 // - Redistribution in binary form must reproduce the above copyright 11 // - Redistribution in binary form must reproduce the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 namespace v8 { 67 namespace v8 {
68 namespace internal { 68 namespace internal {
69 69
70 70
71 const double DoubleConstant::min_int = kMinInt; 71 const double DoubleConstant::min_int = kMinInt;
72 const double DoubleConstant::one_half = 0.5; 72 const double DoubleConstant::one_half = 0.5;
73 const double DoubleConstant::minus_zero = -0.0; 73 const double DoubleConstant::minus_zero = -0.0;
74 const double DoubleConstant::uint8_max_value = 255; 74 const double DoubleConstant::uint8_max_value = 255;
75 const double DoubleConstant::zero = 0.0; 75 const double DoubleConstant::zero = 0.0;
76 const double DoubleConstant::nan = OS::nan_value(); 76 const double DoubleConstant::canonical_non_hole_nan = OS::nan_value();
77 const double DoubleConstant::the_hole_nan = BitCast<double>(kHoleNanInt64);
77 const double DoubleConstant::negative_infinity = -V8_INFINITY; 78 const double DoubleConstant::negative_infinity = -V8_INFINITY;
78 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; 79 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
79 80
80 // ----------------------------------------------------------------------------- 81 // -----------------------------------------------------------------------------
81 // Implementation of AssemblerBase 82 // Implementation of AssemblerBase
82 83
83 AssemblerBase::AssemblerBase(Isolate* isolate) 84 AssemblerBase::AssemblerBase(Isolate* isolate)
84 : isolate_(isolate), 85 : isolate_(isolate),
85 jit_cookie_(0) { 86 jit_cookie_(0) {
86 if (FLAG_mask_constants_with_cookie && isolate != NULL) { 87 if (FLAG_mask_constants_with_cookie && isolate != NULL) {
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 const_cast<double*>(&DoubleConstant::uint8_max_value))); 946 const_cast<double*>(&DoubleConstant::uint8_max_value)));
946 } 947 }
947 948
948 949
949 ExternalReference ExternalReference::address_of_negative_infinity() { 950 ExternalReference ExternalReference::address_of_negative_infinity() {
950 return ExternalReference(reinterpret_cast<void*>( 951 return ExternalReference(reinterpret_cast<void*>(
951 const_cast<double*>(&DoubleConstant::negative_infinity))); 952 const_cast<double*>(&DoubleConstant::negative_infinity)));
952 } 953 }
953 954
954 955
955 ExternalReference ExternalReference::address_of_nan() { 956 ExternalReference ExternalReference::address_of_canonical_non_hole_nan() {
956 return ExternalReference(reinterpret_cast<void*>( 957 return ExternalReference(reinterpret_cast<void*>(
957 const_cast<double*>(&DoubleConstant::nan))); 958 const_cast<double*>(&DoubleConstant::canonical_non_hole_nan)));
959 }
960
961
962 ExternalReference ExternalReference::address_of_the_hole_nan() {
963 return ExternalReference(reinterpret_cast<void*>(
964 const_cast<double*>(&DoubleConstant::the_hole_nan)));
958 } 965 }
959 966
960 967
961 #ifndef V8_INTERPRETED_REGEXP 968 #ifndef V8_INTERPRETED_REGEXP
962 969
963 ExternalReference ExternalReference::re_check_stack_guard_state( 970 ExternalReference ExternalReference::re_check_stack_guard_state(
964 Isolate* isolate) { 971 Isolate* isolate) {
965 Address function; 972 Address function;
966 #ifdef V8_TARGET_ARCH_X64 973 #ifdef V8_TARGET_ARCH_X64
967 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 974 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1236 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1230 state_.written_position = state_.current_position; 1237 state_.written_position = state_.current_position;
1231 written = true; 1238 written = true;
1232 } 1239 }
1233 1240
1234 // Return whether something was written. 1241 // Return whether something was written.
1235 return written; 1242 return written;
1236 } 1243 }
1237 1244
1238 } } // namespace v8::internal 1245 } } // 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