Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 552 static inline Object* AllocateRaw(int size_in_bytes, | 552 static inline Object* AllocateRaw(int size_in_bytes, |
| 553 AllocationSpace space, | 553 AllocationSpace space, |
| 554 AllocationSpace retry_space); | 554 AllocationSpace retry_space); |
| 555 | 555 |
| 556 // Makes a new native code object | 556 // Makes a new native code object |
| 557 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 557 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 558 // failed. | 558 // failed. |
| 559 // Please note this function does not perform a garbage collection. | 559 // Please note this function does not perform a garbage collection. |
| 560 static Object* CreateCode(const CodeDesc& desc, | 560 static Object* CreateCode(const CodeDesc& desc, |
| 561 ScopeInfo<>* sinfo, | 561 ScopeInfo<>* sinfo, |
| 562 Code::Flags flags); | 562 Code::Flags flags, |
| 563 Handle<Code>* self = NULL); | |
|
Erik Corry
2008/11/21 13:03:04
We shouldn't mix handle and non-handle code. This
Lasse Reichstein
2008/11/24 08:32:33
Done.
| |
| 563 | 564 |
| 564 static Object* CopyCode(Code* code); | 565 static Object* CopyCode(Code* code); |
| 565 // Finds the symbol for string in the symbol table. | 566 // Finds the symbol for string in the symbol table. |
| 566 // If not found, a new symbol is added to the table and returned. | 567 // If not found, a new symbol is added to the table and returned. |
| 567 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 568 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
| 568 // failed. | 569 // failed. |
| 569 // Please note this function does not perform a garbage collection. | 570 // Please note this function does not perform a garbage collection. |
| 570 static Object* LookupSymbol(Vector<const char> str); | 571 static Object* LookupSymbol(Vector<const char> str); |
| 571 static Object* LookupAsciiSymbol(const char* str) { | 572 static Object* LookupAsciiSymbol(const char* str) { |
| 572 return LookupSymbol(CStrVector(str)); | 573 return LookupSymbol(CStrVector(str)); |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1279 int marked_count_; | 1280 int marked_count_; |
| 1280 | 1281 |
| 1281 // The count from the end of the previous full GC. Will be zero if there | 1282 // The count from the end of the previous full GC. Will be zero if there |
| 1282 // was no previous full GC. | 1283 // was no previous full GC. |
| 1283 int previous_marked_count_; | 1284 int previous_marked_count_; |
| 1284 }; | 1285 }; |
| 1285 | 1286 |
| 1286 } } // namespace v8::internal | 1287 } } // namespace v8::internal |
| 1287 | 1288 |
| 1288 #endif // V8_HEAP_H_ | 1289 #endif // V8_HEAP_H_ |
| OLD | NEW |