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

Side by Side Diff: src/frames.cc

Issue 26006004: Annotate V8 for MemorySanitizer. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 2 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 15 matching lines...) Expand all
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "ast.h" 30 #include "ast.h"
31 #include "deoptimizer.h" 31 #include "deoptimizer.h"
32 #include "frames-inl.h" 32 #include "frames-inl.h"
33 #include "full-codegen.h" 33 #include "full-codegen.h"
34 #include "lazy-instance.h" 34 #include "lazy-instance.h"
35 #include "mark-compact.h" 35 #include "mark-compact.h"
36 #include "msan.h"
36 #include "safepoint-table.h" 37 #include "safepoint-table.h"
37 #include "scopeinfo.h" 38 #include "scopeinfo.h"
38 #include "string-stream.h" 39 #include "string-stream.h"
39 #include "vm-state-inl.h" 40 #include "vm-state-inl.h"
40 41
41 #include "allocation-inl.h" 42 #include "allocation-inl.h"
42 43
43 namespace v8 { 44 namespace v8 {
44 namespace internal { 45 namespace internal {
45 46
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 Code* holder) { 418 Code* holder) {
418 Address pc = *pc_address; 419 Address pc = *pc_address;
419 ASSERT(GcSafeCodeContains(holder, pc)); 420 ASSERT(GcSafeCodeContains(holder, pc));
420 unsigned pc_offset = static_cast<unsigned>(pc - holder->instruction_start()); 421 unsigned pc_offset = static_cast<unsigned>(pc - holder->instruction_start());
421 Object* code = holder; 422 Object* code = holder;
422 v->VisitPointer(&code); 423 v->VisitPointer(&code);
423 if (code != holder) { 424 if (code != holder) {
424 holder = reinterpret_cast<Code*>(code); 425 holder = reinterpret_cast<Code*>(code);
425 pc = holder->instruction_start() + pc_offset; 426 pc = holder->instruction_start() + pc_offset;
426 *pc_address = pc; 427 *pc_address = pc;
428 MSAN_MEMORY_IS_INITIALIZED(pc_address, sizeof(*pc_address));
427 } 429 }
428 } 430 }
429 431
430 432
431 void StackFrame::SetReturnAddressLocationResolver( 433 void StackFrame::SetReturnAddressLocationResolver(
432 ReturnAddressLocationResolver resolver) { 434 ReturnAddressLocationResolver resolver) {
433 ASSERT(return_address_location_resolver_ == NULL); 435 ASSERT(return_address_location_resolver_ == NULL);
434 return_address_location_resolver_ = resolver; 436 return_address_location_resolver_ = resolver;
435 } 437 }
436 438
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 ZoneList<StackFrame*> list(10, zone); 1629 ZoneList<StackFrame*> list(10, zone);
1628 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1630 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1629 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1631 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1630 list.Add(frame, zone); 1632 list.Add(frame, zone);
1631 } 1633 }
1632 return list.ToVector(); 1634 return list.ToVector();
1633 } 1635 }
1634 1636
1635 1637
1636 } } // namespace v8::internal 1638 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698