| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 MachOSection(const char* name, | 247 MachOSection(const char* name, |
| 248 const char* segment, | 248 const char* segment, |
| 249 uintptr_t align, | 249 uintptr_t align, |
| 250 uint32_t flags) | 250 uint32_t flags) |
| 251 : name_(name), | 251 : name_(name), |
| 252 segment_(segment), | 252 segment_(segment), |
| 253 align_(align), | 253 align_(align), |
| 254 flags_(flags) { | 254 flags_(flags) { |
| 255 ASSERT(IsPowerOf2(align)); | |
| 256 if (align_ != 0) { | 255 if (align_ != 0) { |
| 256 ASSERT(IsPowerOf2(align)); |
| 257 align_ = WhichPowerOf2(align_); | 257 align_ = WhichPowerOf2(align_); |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 | 260 |
| 261 virtual ~MachOSection() { } | 261 virtual ~MachOSection() { } |
| 262 | 262 |
| 263 virtual void PopulateHeader(Writer::Slot<Header> header) { | 263 virtual void PopulateHeader(Writer::Slot<Header> header) { |
| 264 header->addr = 0; | 264 header->addr = 0; |
| 265 header->size = 0; | 265 header->size = 0; |
| 266 header->offset = 0; | 266 header->offset = 0; |
| (...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 LockGuard<Mutex> lock_guard(mutex.Pointer()); | 2191 LockGuard<Mutex> lock_guard(mutex.Pointer()); |
| 2192 ASSERT(!IsLineInfoTagged(line_info)); | 2192 ASSERT(!IsLineInfoTagged(line_info)); |
| 2193 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2193 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2194 ASSERT(e->value == NULL); | 2194 ASSERT(e->value == NULL); |
| 2195 e->value = TagLineInfo(line_info); | 2195 e->value = TagLineInfo(line_info); |
| 2196 } | 2196 } |
| 2197 | 2197 |
| 2198 | 2198 |
| 2199 } } // namespace v8::internal | 2199 } } // namespace v8::internal |
| 2200 #endif | 2200 #endif |
| OLD | NEW |