| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 231   void VisitPointers(Object** start, Object** end) { | 231   void VisitPointers(Object** start, Object** end) { | 
| 232     for (Object** current = start; current < end; current++) { | 232     for (Object** current = start; current < end; current++) { | 
| 233       if ((*current)->IsHeapObject()) { | 233       if ((*current)->IsHeapObject()) { | 
| 234         HeapObject* object = HeapObject::cast(*current); | 234         HeapObject* object = HeapObject::cast(*current); | 
| 235         if (object->IsString()) continue; | 235         if (object->IsString()) continue; | 
| 236         switch (object->map()->instance_type()) { | 236         switch (object->map()->instance_type()) { | 
| 237           case JS_FUNCTION_TYPE: | 237           case JS_FUNCTION_TYPE: | 
| 238             CheckContext(JSFunction::cast(object)->context()); | 238             CheckContext(JSFunction::cast(object)->context()); | 
| 239             break; | 239             break; | 
| 240           case JS_GLOBAL_PROXY_TYPE: | 240           case JS_GLOBAL_PROXY_TYPE: | 
| 241             CheckContext(JSGlobalProxy::cast(object)->context()); | 241             CheckContext(JSGlobalProxy::cast(object)->native_context()); | 
| 242             break; | 242             break; | 
| 243           case JS_GLOBAL_OBJECT_TYPE: | 243           case JS_GLOBAL_OBJECT_TYPE: | 
| 244           case JS_BUILTINS_OBJECT_TYPE: | 244           case JS_BUILTINS_OBJECT_TYPE: | 
| 245             CheckContext(GlobalObject::cast(object)->native_context()); | 245             CheckContext(GlobalObject::cast(object)->native_context()); | 
| 246             break; | 246             break; | 
| 247           case JS_ARRAY_TYPE: | 247           case JS_ARRAY_TYPE: | 
| 248           case JS_DATE_TYPE: | 248           case JS_DATE_TYPE: | 
| 249           case JS_OBJECT_TYPE: | 249           case JS_OBJECT_TYPE: | 
| 250           case JS_REGEXP_TYPE: | 250           case JS_REGEXP_TYPE: | 
| 251             VisitPointer(HeapObject::RawField(object, JSObject::kMapOffset)); | 251             VisitPointer(HeapObject::RawField(object, JSObject::kMapOffset)); | 
| (...skipping 3890 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4142   while (buffer != NULL) { | 4142   while (buffer != NULL) { | 
| 4143     SlotsBuffer* next_buffer = buffer->next(); | 4143     SlotsBuffer* next_buffer = buffer->next(); | 
| 4144     DeallocateBuffer(buffer); | 4144     DeallocateBuffer(buffer); | 
| 4145     buffer = next_buffer; | 4145     buffer = next_buffer; | 
| 4146   } | 4146   } | 
| 4147   *buffer_address = NULL; | 4147   *buffer_address = NULL; | 
| 4148 } | 4148 } | 
| 4149 | 4149 | 
| 4150 | 4150 | 
| 4151 } }  // namespace v8::internal | 4151 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|