| 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 25 matching lines...) Expand all Loading... |
| 36 #include "ia32/simulator-ia32.h" | 36 #include "ia32/simulator-ia32.h" |
| 37 #elif V8_TARGET_ARCH_X64 | 37 #elif V8_TARGET_ARCH_X64 |
| 38 #include "x64/simulator-x64.h" | 38 #include "x64/simulator-x64.h" |
| 39 #elif V8_TARGET_ARCH_ARM | 39 #elif V8_TARGET_ARCH_ARM |
| 40 #include "arm/simulator-arm.h" | 40 #include "arm/simulator-arm.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #include "debug.h" | 43 #include "debug.h" |
| 44 #include "v8threads.h" | 44 #include "v8threads.h" |
| 45 | 45 |
| 46 namespace v8 { namespace internal { | 46 namespace v8 { |
| 47 namespace internal { |
| 47 | 48 |
| 48 | 49 |
| 49 static Handle<Object> Invoke(bool construct, | 50 static Handle<Object> Invoke(bool construct, |
| 50 Handle<JSFunction> func, | 51 Handle<JSFunction> func, |
| 51 Handle<Object> receiver, | 52 Handle<Object> receiver, |
| 52 int argc, | 53 int argc, |
| 53 Object*** args, | 54 Object*** args, |
| 54 bool* has_pending_exception) { | 55 bool* has_pending_exception) { |
| 55 // Make sure we have a real function, not a boilerplate function. | 56 // Make sure we have a real function, not a boilerplate function. |
| 56 ASSERT(!func->IsBoilerplate()); | 57 ASSERT(!func->IsBoilerplate()); |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 // All allocation spaces other than NEW_SPACE have the same effect. | 659 // All allocation spaces other than NEW_SPACE have the same effect. |
| 659 Heap::CollectAllGarbage(); | 660 Heap::CollectAllGarbage(); |
| 660 return v8::Undefined(); | 661 return v8::Undefined(); |
| 661 } | 662 } |
| 662 | 663 |
| 663 | 664 |
| 664 static GCExtension kGCExtension; | 665 static GCExtension kGCExtension; |
| 665 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); | 666 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); |
| 666 | 667 |
| 667 } } // namespace v8::internal | 668 } } // namespace v8::internal |
| OLD | NEW |