OLD | NEW |
---|---|
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
518 return cell_space(); | 518 return cell_space(); |
519 case CODE_SPACE: | 519 case CODE_SPACE: |
520 return code_space(); | 520 return code_space(); |
521 case NEW_SPACE: | 521 case NEW_SPACE: |
522 case LO_SPACE: | 522 case LO_SPACE: |
523 UNREACHABLE(); | 523 UNREACHABLE(); |
524 } | 524 } |
525 return NULL; | 525 return NULL; |
526 } | 526 } |
527 | 527 |
528 void MoveElements(FixedArray* dst, int dst_index, FixedArray* src, | |
Michael Starzinger
2013/01/08 13:13:00
This method needs a comment explaining it's semant
Hannes Payer (out of office)
2013/01/09 09:32:46
Done.
| |
529 int src_index, int len); | |
530 | |
528 bool always_allocate() { return always_allocate_scope_depth_ != 0; } | 531 bool always_allocate() { return always_allocate_scope_depth_ != 0; } |
529 Address always_allocate_scope_depth_address() { | 532 Address always_allocate_scope_depth_address() { |
530 return reinterpret_cast<Address>(&always_allocate_scope_depth_); | 533 return reinterpret_cast<Address>(&always_allocate_scope_depth_); |
531 } | 534 } |
532 bool linear_allocation() { | 535 bool linear_allocation() { |
533 return linear_allocation_scope_depth_ != 0; | 536 return linear_allocation_scope_depth_ != 0; |
534 } | 537 } |
535 | 538 |
536 Address* NewSpaceAllocationTopAddress() { | 539 Address* NewSpaceAllocationTopAddress() { |
537 return new_space_.allocation_top_address(); | 540 return new_space_.allocation_top_address(); |
(...skipping 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2841 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2844 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2842 | 2845 |
2843 private: | 2846 private: |
2844 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2847 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2845 }; | 2848 }; |
2846 #endif // DEBUG || LIVE_OBJECT_LIST | 2849 #endif // DEBUG || LIVE_OBJECT_LIST |
2847 | 2850 |
2848 } } // namespace v8::internal | 2851 } } // namespace v8::internal |
2849 | 2852 |
2850 #endif // V8_HEAP_H_ | 2853 #endif // V8_HEAP_H_ |
OLD | NEW |