| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   61   Address address(int n) const { |   61   Address address(int n) const { | 
|   62     return Address(this) + n; |   62     return Address(this) + n; | 
|   63   } |   63   } | 
|   64  |   64  | 
|   65   Segment* next_; |   65   Segment* next_; | 
|   66   int size_; |   66   int size_; | 
|   67 }; |   67 }; | 
|   68  |   68  | 
|   69  |   69  | 
|   70 Zone::Zone(Isolate* isolate) |   70 Zone::Zone(Isolate* isolate) | 
|   71     : zone_excess_limit_(256 * MB), |   71     : allocation_size_(0), | 
|   72       allocation_size_(0), |  | 
|   73       segment_bytes_allocated_(0), |   72       segment_bytes_allocated_(0), | 
|   74       position_(0), |   73       position_(0), | 
|   75       limit_(0), |   74       limit_(0), | 
|   76       segment_head_(NULL), |   75       segment_head_(NULL), | 
|   77       isolate_(isolate) { |   76       isolate_(isolate) { | 
|   78 } |   77 } | 
|   79  |   78  | 
|   80  |   79  | 
|   81 Zone::~Zone() { |   80 Zone::~Zone() { | 
|   82 #ifdef DEBUG |   81 #ifdef DEBUG | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  170     V8::FatalProcessOutOfMemory("Zone"); |  169     V8::FatalProcessOutOfMemory("Zone"); | 
|  171     return NULL; |  170     return NULL; | 
|  172   } |  171   } | 
|  173   limit_ = segment->end(); |  172   limit_ = segment->end(); | 
|  174   ASSERT(position_ <= limit_); |  173   ASSERT(position_ <= limit_); | 
|  175   return result; |  174   return result; | 
|  176 } |  175 } | 
|  177  |  176  | 
|  178  |  177  | 
|  179 } }  // namespace v8::internal |  178 } }  // namespace v8::internal | 
| OLD | NEW |