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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 | 641 |
642 // Allocate a global (but otherwise uninitialized) context. | 642 // Allocate a global (but otherwise uninitialized) context. |
643 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); | 643 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); |
644 | 644 |
645 // Allocate a function context. | 645 // Allocate a function context. |
646 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | 646 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
647 JSFunction* closure); | 647 JSFunction* closure); |
648 | 648 |
649 // Allocate a catch context. | 649 // Allocate a catch context. |
650 MUST_USE_RESULT MaybeObject* AllocateCatchContext(Context* previous, | 650 MUST_USE_RESULT MaybeObject* AllocateCatchContext(Context* previous, |
651 JSObject* extension); | 651 String* name, |
| 652 Object* thrown_object); |
652 // Allocate a 'with' context. | 653 // Allocate a 'with' context. |
653 MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, | 654 MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, |
654 JSObject* extension); | 655 JSObject* extension); |
655 | 656 |
656 // Allocates a new utility object in the old generation. | 657 // Allocates a new utility object in the old generation. |
657 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); | 658 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); |
658 | 659 |
659 // Allocates a function initialized with a shared part. | 660 // Allocates a function initialized with a shared part. |
660 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 661 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
661 // failed. | 662 // failed. |
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2287 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2287 }; | 2288 }; |
2288 #endif // DEBUG || LIVE_OBJECT_LIST | 2289 #endif // DEBUG || LIVE_OBJECT_LIST |
2289 | 2290 |
2290 | 2291 |
2291 } } // namespace v8::internal | 2292 } } // namespace v8::internal |
2292 | 2293 |
2293 #undef HEAP | 2294 #undef HEAP |
2294 | 2295 |
2295 #endif // V8_HEAP_H_ | 2296 #endif // V8_HEAP_H_ |
OLD | NEW |