OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 double the_hole_nan; | 99 double the_hole_nan; |
100 }; | 100 }; |
101 | 101 |
102 static DoubleConstant double_constants; | 102 static DoubleConstant double_constants; |
103 | 103 |
104 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; | 104 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; |
105 | 105 |
106 // ----------------------------------------------------------------------------- | 106 // ----------------------------------------------------------------------------- |
107 // Implementation of AssemblerBase | 107 // Implementation of AssemblerBase |
108 | 108 |
109 AssemblerBase::AssemblerBase(Isolate* isolate) | 109 AssemblerBase::AssemblerBase(Isolate* isolate, Zone* zone) |
110 : isolate_(isolate), | 110 : isolate_(isolate), |
111 jit_cookie_(0) { | 111 jit_cookie_(0), |
| 112 zone_(zone) { |
112 if (FLAG_mask_constants_with_cookie && isolate != NULL) { | 113 if (FLAG_mask_constants_with_cookie && isolate != NULL) { |
113 jit_cookie_ = V8::RandomPrivate(isolate); | 114 jit_cookie_ = V8::RandomPrivate(isolate); |
114 } | 115 } |
115 } | 116 } |
116 | 117 |
117 | 118 |
118 // ----------------------------------------------------------------------------- | 119 // ----------------------------------------------------------------------------- |
119 // Implementation of Label | 120 // Implementation of Label |
120 | 121 |
121 int Label::pos() const { | 122 int Label::pos() const { |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1314 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1314 state_.written_position = state_.current_position; | 1315 state_.written_position = state_.current_position; |
1315 written = true; | 1316 written = true; |
1316 } | 1317 } |
1317 | 1318 |
1318 // Return whether something was written. | 1319 // Return whether something was written. |
1319 return written; | 1320 return written; |
1320 } | 1321 } |
1321 | 1322 |
1322 } } // namespace v8::internal | 1323 } } // namespace v8::internal |
OLD | NEW |