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

Side by Side Diff: src/gdb-jit.cc

Issue 6993057: Version 3.4.2 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 6 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/extensions/experimental/i18n-utils.cc ('k') | src/heap.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 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
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
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
OLDNEW
« no previous file with comments | « src/extensions/experimental/i18n-utils.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698