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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 // ----------------------------------------------------------------------------- | 124 // ----------------------------------------------------------------------------- |
125 // Implementation of AssemblerBase | 125 // Implementation of AssemblerBase |
126 | 126 |
127 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) | 127 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) |
128 : isolate_(isolate), | 128 : isolate_(isolate), |
129 jit_cookie_(0), | 129 jit_cookie_(0), |
130 enabled_cpu_features_(0), | 130 enabled_cpu_features_(0), |
131 emit_debug_code_(FLAG_debug_code), | 131 emit_debug_code_(FLAG_debug_code), |
132 predictable_code_size_(false), | 132 predictable_code_size_(false), |
133 // We may use the assembler without an isolate. | 133 // We may use the assembler without an isolate. |
134 serializer_enabled_(isolate && isolate->serializer_enabled()) { | 134 serializer_enabled_(isolate && isolate->serializer_enabled()), |
135 ool_constant_pool_available_(!FLAG_enable_ool_constant_pool) { | |
rmcilroy
2014/10/09 09:22:48
nit - just make this false (we were previously set
baixo
2014/10/09 11:21:38
Done.
| |
135 if (FLAG_mask_constants_with_cookie && isolate != NULL) { | 136 if (FLAG_mask_constants_with_cookie && isolate != NULL) { |
136 jit_cookie_ = isolate->random_number_generator()->NextInt(); | 137 jit_cookie_ = isolate->random_number_generator()->NextInt(); |
137 } | 138 } |
138 own_buffer_ = buffer == NULL; | 139 own_buffer_ = buffer == NULL; |
139 if (buffer_size == 0) buffer_size = kMinimalBufferSize; | 140 if (buffer_size == 0) buffer_size = kMinimalBufferSize; |
140 DCHECK(buffer_size > 0); | 141 DCHECK(buffer_size > 0); |
141 if (own_buffer_) buffer = NewArray<byte>(buffer_size); | 142 if (own_buffer_) buffer = NewArray<byte>(buffer_size); |
142 buffer_ = static_cast<byte*>(buffer); | 143 buffer_ = static_cast<byte*>(buffer); |
143 buffer_size_ = buffer_size; | 144 buffer_size_ = buffer_size; |
144 | 145 |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1589 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1590 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1590 state_.written_position = state_.current_position; | 1591 state_.written_position = state_.current_position; |
1591 written = true; | 1592 written = true; |
1592 } | 1593 } |
1593 | 1594 |
1594 // Return whether something was written. | 1595 // Return whether something was written. |
1595 return written; | 1596 return written; |
1596 } | 1597 } |
1597 | 1598 |
1598 } } // namespace v8::internal | 1599 } } // namespace v8::internal |
OLD | NEW |