| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ASSERT(func->context()->global()->IsGlobalObject()); | 84 ASSERT(func->context()->global()->IsGlobalObject()); |
| 85 | 85 |
| 86 { | 86 { |
| 87 // Save and restore context around invocation and block the | 87 // Save and restore context around invocation and block the |
| 88 // allocation of handles without explicit handle scopes. | 88 // allocation of handles without explicit handle scopes. |
| 89 SaveContext save; | 89 SaveContext save; |
| 90 NoHandleAllocation na; | 90 NoHandleAllocation na; |
| 91 JSEntryFunction entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); | 91 JSEntryFunction entry = FUNCTION_CAST<JSEntryFunction>(code->entry()); |
| 92 | 92 |
| 93 // Call the function through the right JS entry stub. | 93 // Call the function through the right JS entry stub. |
| 94 byte* entry_address= func->code()->entry(); | 94 byte* entry_address = func->code()->entry(); |
| 95 JSFunction* function = *func; | 95 JSFunction* function = *func; |
| 96 Object* receiver_pointer = *receiver; | 96 Object* receiver_pointer = *receiver; |
| 97 value = CALL_GENERATED_CODE(entry, entry_address, function, | 97 value = CALL_GENERATED_CODE(entry, entry_address, function, |
| 98 receiver_pointer, argc, args); | 98 receiver_pointer, argc, args); |
| 99 } | 99 } |
| 100 | 100 |
| 101 #ifdef DEBUG | 101 #ifdef DEBUG |
| 102 value->Verify(); | 102 value->Verify(); |
| 103 #endif | 103 #endif |
| 104 | 104 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 // All allocation spaces other than NEW_SPACE have the same effect. | 700 // All allocation spaces other than NEW_SPACE have the same effect. |
| 701 Heap::CollectAllGarbage(false); | 701 Heap::CollectAllGarbage(false); |
| 702 return v8::Undefined(); | 702 return v8::Undefined(); |
| 703 } | 703 } |
| 704 | 704 |
| 705 | 705 |
| 706 static GCExtension kGCExtension; | 706 static GCExtension kGCExtension; |
| 707 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); | 707 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); |
| 708 | 708 |
| 709 } } // namespace v8::internal | 709 } } // namespace v8::internal |
| OLD | NEW |