| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 if (elements->IsFailure()) return false; | 1312 if (elements->IsFailure()) return false; |
| 1313 FixedArray::cast(elements)->set(0, Smi::FromInt(0)); | 1313 FixedArray::cast(elements)->set(0, Smi::FromInt(0)); |
| 1314 JSObject::cast(obj)->set_elements(FixedArray::cast(elements)); | 1314 JSObject::cast(obj)->set_elements(FixedArray::cast(elements)); |
| 1315 set_message_listeners(JSObject::cast(obj)); | 1315 set_message_listeners(JSObject::cast(obj)); |
| 1316 | 1316 |
| 1317 return true; | 1317 return true; |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 | 1320 |
| 1321 void Heap::CreateCEntryStub() { | 1321 void Heap::CreateCEntryStub() { |
| 1322 CEntryStub stub; | 1322 CEntryStub stub(1); |
| 1323 set_c_entry_code(*stub.GetCode()); | 1323 set_c_entry_code(*stub.GetCode()); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 | 1326 |
| 1327 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP | 1327 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP |
| 1328 void Heap::CreateRegExpCEntryStub() { | 1328 void Heap::CreateRegExpCEntryStub() { |
| 1329 RegExpCEntryStub stub; | 1329 RegExpCEntryStub stub; |
| 1330 set_re_c_entry_code(*stub.GetCode()); | 1330 set_re_c_entry_code(*stub.GetCode()); |
| 1331 } | 1331 } |
| 1332 #endif | 1332 #endif |
| (...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4007 for (int i = 0; i < kNumberOfCaches; i++) { | 4007 for (int i = 0; i < kNumberOfCaches; i++) { |
| 4008 if (caches_[i] != NULL) { | 4008 if (caches_[i] != NULL) { |
| 4009 delete caches_[i]; | 4009 delete caches_[i]; |
| 4010 caches_[i] = NULL; | 4010 caches_[i] = NULL; |
| 4011 } | 4011 } |
| 4012 } | 4012 } |
| 4013 } | 4013 } |
| 4014 | 4014 |
| 4015 | 4015 |
| 4016 } } // namespace v8::internal | 4016 } } // namespace v8::internal |
| OLD | NEW |