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

Side by Side Diff: src/mark-compact.h

Issue 11818052: Fix shared function info code replacement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Hannes Payer. Created 7 years, 11 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/compiler.cc ('k') | src/mark-compact.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 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 } 427 }
428 428
429 void AddCandidate(JSFunction* function) { 429 void AddCandidate(JSFunction* function) {
430 ASSERT(function->code() == function->shared()->code()); 430 ASSERT(function->code() == function->shared()->code());
431 if (GetNextCandidate(function)->IsUndefined()) { 431 if (GetNextCandidate(function)->IsUndefined()) {
432 SetNextCandidate(function, jsfunction_candidates_head_); 432 SetNextCandidate(function, jsfunction_candidates_head_);
433 jsfunction_candidates_head_ = function; 433 jsfunction_candidates_head_ = function;
434 } 434 }
435 } 435 }
436 436
437 void EvictCandidate(SharedFunctionInfo* shared_info);
437 void EvictCandidate(JSFunction* function); 438 void EvictCandidate(JSFunction* function);
438 439
439 void ProcessCandidates() { 440 void ProcessCandidates() {
440 ProcessSharedFunctionInfoCandidates(); 441 ProcessSharedFunctionInfoCandidates();
441 ProcessJSFunctionCandidates(); 442 ProcessJSFunctionCandidates();
442 } 443 }
443 444
444 void EvictAllCandidates() { 445 void EvictAllCandidates() {
445 EvictJSFunctionCandidates(); 446 EvictJSFunctionCandidates();
446 EvictSharedFunctionInfoCandidates(); 447 EvictSharedFunctionInfoCandidates();
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 855
855 friend class Heap; 856 friend class Heap;
856 }; 857 };
857 858
858 859
859 const char* AllocationSpaceName(AllocationSpace space); 860 const char* AllocationSpaceName(AllocationSpace space);
860 861
861 } } // namespace v8::internal 862 } } // namespace v8::internal
862 863
863 #endif // V8_MARK_COMPACT_H_ 864 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698