OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/string-stream.h" | 5 #include "src/string-stream.h" |
6 | 6 |
7 #include "src/handles-inl.h" | 7 #include "src/handles-inl.h" |
8 #include "src/prototype.h" | 8 #include "src/prototype.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 return space_; | 555 return space_; |
556 } | 556 } |
557 MemCopy(new_space, space_, *bytes); | 557 MemCopy(new_space, space_, *bytes); |
558 *bytes = new_bytes; | 558 *bytes = new_bytes; |
559 DeleteArray(space_); | 559 DeleteArray(space_); |
560 space_ = new_space; | 560 space_ = new_space; |
561 return new_space; | 561 return new_space; |
562 } | 562 } |
563 | 563 |
564 | 564 |
565 } } // namespace v8::internal | 565 } // namespace internal |
| 566 } // namespace v8 |
OLD | NEW |