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

Side by Side Diff: src/objects.cc

Issue 2918001: Move serialized scope info from Code object to SharedFunctionInfo. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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/objects.h ('k') | src/objects-debug.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 5307 matching lines...) Expand 10 before | Expand all | Expand 10 after
5318 // the heap compaction in the next statement. 5318 // the heap compaction in the next statement.
5319 RelocIterator it(this, mode_mask); 5319 RelocIterator it(this, mode_mask);
5320 5320
5321 IteratePointers(v, 5321 IteratePointers(v,
5322 kRelocationInfoOffset, 5322 kRelocationInfoOffset,
5323 kRelocationInfoOffset + kPointerSize); 5323 kRelocationInfoOffset + kPointerSize);
5324 5324
5325 for (; !it.done(); it.next()) { 5325 for (; !it.done(); it.next()) {
5326 it.rinfo()->Visit(v); 5326 it.rinfo()->Visit(v);
5327 } 5327 }
5328
5329 ScopeInfo<>::IterateScopeInfo(this, v);
5330 } 5328 }
5331 5329
5332 5330
5333 void Code::Relocate(intptr_t delta) { 5331 void Code::Relocate(intptr_t delta) {
5334 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 5332 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
5335 it.rinfo()->apply(delta); 5333 it.rinfo()->apply(delta);
5336 } 5334 }
5337 CPU::FlushICache(instruction_start(), instruction_size()); 5335 CPU::FlushICache(instruction_start(), instruction_size());
5338 } 5336 }
5339 5337
(...skipping 3429 matching lines...) Expand 10 before | Expand all | Expand 10 after
8769 if (break_point_objects()->IsUndefined()) return 0; 8767 if (break_point_objects()->IsUndefined()) return 0;
8770 // Single beak point. 8768 // Single beak point.
8771 if (!break_point_objects()->IsFixedArray()) return 1; 8769 if (!break_point_objects()->IsFixedArray()) return 1;
8772 // Multiple break points. 8770 // Multiple break points.
8773 return FixedArray::cast(break_point_objects())->length(); 8771 return FixedArray::cast(break_point_objects())->length();
8774 } 8772 }
8775 #endif 8773 #endif
8776 8774
8777 8775
8778 } } // namespace v8::internal 8776 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698