| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 static JSFunction* GetNextCandidate(JSFunction* candidate) { | 299 static JSFunction* GetNextCandidate(JSFunction* candidate) { |
| 300 return *GetNextCandidateField(candidate); | 300 return *GetNextCandidateField(candidate); |
| 301 } | 301 } |
| 302 | 302 |
| 303 static void SetNextCandidate(JSFunction* candidate, | 303 static void SetNextCandidate(JSFunction* candidate, |
| 304 JSFunction* next_candidate) { | 304 JSFunction* next_candidate) { |
| 305 *GetNextCandidateField(candidate) = next_candidate; | 305 *GetNextCandidateField(candidate) = next_candidate; |
| 306 } | 306 } |
| 307 | 307 |
| 308 STATIC_ASSERT(kPointerSize <= Code::kHeaderSize - Code::kHeaderPaddingStart); | |
| 309 | |
| 310 static SharedFunctionInfo** GetNextCandidateField( | 308 static SharedFunctionInfo** GetNextCandidateField( |
| 311 SharedFunctionInfo* candidate) { | 309 SharedFunctionInfo* candidate) { |
| 312 Code* code = candidate->unchecked_code(); | 310 Code* code = candidate->unchecked_code(); |
| 313 return reinterpret_cast<SharedFunctionInfo**>( | 311 return reinterpret_cast<SharedFunctionInfo**>( |
| 314 code->address() + Code::kHeaderPaddingStart); | 312 code->address() + Code::kNextCodeFlushingCandidateOffset); |
| 315 } | 313 } |
| 316 | 314 |
| 317 static SharedFunctionInfo* GetNextCandidate(SharedFunctionInfo* candidate) { | 315 static SharedFunctionInfo* GetNextCandidate(SharedFunctionInfo* candidate) { |
| 318 return *GetNextCandidateField(candidate); | 316 return *GetNextCandidateField(candidate); |
| 319 } | 317 } |
| 320 | 318 |
| 321 static void SetNextCandidate(SharedFunctionInfo* candidate, | 319 static void SetNextCandidate(SharedFunctionInfo* candidate, |
| 322 SharedFunctionInfo* next_candidate) { | 320 SharedFunctionInfo* next_candidate) { |
| 323 *GetNextCandidateField(candidate) = next_candidate; | 321 *GetNextCandidateField(candidate) = next_candidate; |
| 324 } | 322 } |
| (...skipping 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3131 } | 3129 } |
| 3132 | 3130 |
| 3133 | 3131 |
| 3134 void MarkCompactCollector::Initialize() { | 3132 void MarkCompactCollector::Initialize() { |
| 3135 StaticPointersToNewGenUpdatingVisitor::Initialize(); | 3133 StaticPointersToNewGenUpdatingVisitor::Initialize(); |
| 3136 StaticMarkingVisitor::Initialize(); | 3134 StaticMarkingVisitor::Initialize(); |
| 3137 } | 3135 } |
| 3138 | 3136 |
| 3139 | 3137 |
| 3140 } } // namespace v8::internal | 3138 } } // namespace v8::internal |
| OLD | NEW |