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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 entry->next_->prev_ = entry->prev_; | 1320 entry->next_->prev_ = entry->prev_; |
1321 } | 1321 } |
1322 | 1322 |
1323 __jit_debug_descriptor.relevant_entry_ = entry; | 1323 __jit_debug_descriptor.relevant_entry_ = entry; |
1324 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; | 1324 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; |
1325 __jit_debug_register_code(); | 1325 __jit_debug_register_code(); |
1326 } | 1326 } |
1327 | 1327 |
1328 | 1328 |
1329 static JITCodeEntry* CreateELFObject(CodeDescription* desc) { | 1329 static JITCodeEntry* CreateELFObject(CodeDescription* desc) { |
1330 ZoneScope zone_scope(DELETE_ON_EXIT); | 1330 ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT); |
1331 | 1331 |
1332 ELF elf; | 1332 ELF elf; |
1333 Writer w(&elf); | 1333 Writer w(&elf); |
1334 | 1334 |
1335 int text_section_index = elf.AddSection( | 1335 int text_section_index = elf.AddSection( |
1336 new FullHeaderELFSection(".text", | 1336 new FullHeaderELFSection(".text", |
1337 ELFSection::TYPE_NOBITS, | 1337 ELFSection::TYPE_NOBITS, |
1338 kCodeAlignment, | 1338 kCodeAlignment, |
1339 desc->CodeStart(), | 1339 desc->CodeStart(), |
1340 0, | 1340 0, |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 ScopedLock lock(mutex_); | 1546 ScopedLock lock(mutex_); |
1547 ASSERT(!IsLineInfoTagged(line_info)); | 1547 ASSERT(!IsLineInfoTagged(line_info)); |
1548 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 1548 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
1549 ASSERT(e->value == NULL); | 1549 ASSERT(e->value == NULL); |
1550 e->value = TagLineInfo(line_info); | 1550 e->value = TagLineInfo(line_info); |
1551 } | 1551 } |
1552 | 1552 |
1553 | 1553 |
1554 } } // namespace v8::internal | 1554 } } // namespace v8::internal |
1555 #endif | 1555 #endif |
OLD | NEW |