| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 | 444 |
| 445 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, | 445 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, |
| 446 Object* call_trap, | 446 Object* call_trap, |
| 447 Object* construct_trap, | 447 Object* construct_trap, |
| 448 Object* prototype); | 448 Object* prototype); |
| 449 | 449 |
| 450 // Reinitialize a JSReceiver into an (empty) JS object of respective type and | 450 // Reinitialize a JSReceiver into an (empty) JS object of respective type and |
| 451 // size, but keeping the original prototype. The receiver must have at least | 451 // size, but keeping the original prototype. The receiver must have at least |
| 452 // the size of the new object. The object is reinitialized and behaves as an | 452 // the size of the new object. The object is reinitialized and behaves as an |
| 453 // object that has been freshly allocated. | 453 // object that has been freshly allocated. |
| 454 // Returns failure if an error occured, otherwise object. |
| 454 MUST_USE_RESULT MaybeObject* ReinitializeJSReceiver(JSReceiver* object, | 455 MUST_USE_RESULT MaybeObject* ReinitializeJSReceiver(JSReceiver* object, |
| 455 InstanceType type, | 456 InstanceType type, |
| 456 int size); | 457 int size); |
| 457 | 458 |
| 458 // Reinitialize an JSGlobalProxy based on a constructor. The object | 459 // Reinitialize an JSGlobalProxy based on a constructor. The object |
| 459 // must have the same size as objects allocated using the | 460 // must have the same size as objects allocated using the |
| 460 // constructor. The object is reinitialized and behaves as an | 461 // constructor. The object is reinitialized and behaves as an |
| 461 // object that has been freshly allocated using the constructor. | 462 // object that has been freshly allocated using the constructor. |
| 462 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( | 463 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( |
| 463 JSFunction* constructor, JSGlobalProxy* global); | 464 JSFunction* constructor, JSGlobalProxy* global); |
| (...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2317 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2318 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2318 }; | 2319 }; |
| 2319 #endif // DEBUG || LIVE_OBJECT_LIST | 2320 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2320 | 2321 |
| 2321 | 2322 |
| 2322 } } // namespace v8::internal | 2323 } } // namespace v8::internal |
| 2323 | 2324 |
| 2324 #undef HEAP | 2325 #undef HEAP |
| 2325 | 2326 |
| 2326 #endif // V8_HEAP_H_ | 2327 #endif // V8_HEAP_H_ |
| OLD | NEW |