OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include <stdlib.h> | 28 #include <stdlib.h> |
29 | 29 |
30 #include "v8.h" | 30 #include "v8.h" |
31 | 31 |
32 #include "accessors.h" | 32 #include "accessors.h" |
33 #include "api.h" | 33 #include "api.h" |
34 #include "arguments.h" | 34 #include "arguments.h" |
35 #include "compiler.h" | 35 #include "compiler.h" |
36 #include "cpu.h" | 36 #include "cpu.h" |
37 #include "dateparser.h" | |
38 #include "dateparser-inl.h" | 37 #include "dateparser-inl.h" |
39 #include "debug.h" | 38 #include "debug.h" |
40 #include "execution.h" | 39 #include "execution.h" |
41 #include "jsregexp.h" | 40 #include "jsregexp.h" |
| 41 #include "parser.h" |
42 #include "platform.h" | 42 #include "platform.h" |
43 #include "runtime.h" | 43 #include "runtime.h" |
44 #include "scopeinfo.h" | 44 #include "scopeinfo.h" |
| 45 #include "smart-pointer.h" |
| 46 #include "stub-cache.h" |
45 #include "v8threads.h" | 47 #include "v8threads.h" |
46 #include "smart-pointer.h" | |
47 #include "parser.h" | |
48 #include "stub-cache.h" | |
49 | 48 |
50 namespace v8 { | 49 namespace v8 { |
51 namespace internal { | 50 namespace internal { |
52 | 51 |
53 | 52 |
54 #define RUNTIME_ASSERT(value) \ | 53 #define RUNTIME_ASSERT(value) \ |
55 if (!(value)) return Top::ThrowIllegalOperation(); | 54 if (!(value)) return Top::ThrowIllegalOperation(); |
56 | 55 |
57 // Cast the given object to a value of the specified type and store | 56 // Cast the given object to a value of the specified type and store |
58 // it in a variable with the given name. If the object is not of the | 57 // it in a variable with the given name. If the object is not of the |
(...skipping 7693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7752 } else { | 7751 } else { |
7753 // Handle last resort GC and make sure to allow future allocations | 7752 // Handle last resort GC and make sure to allow future allocations |
7754 // to grow the heap without causing GCs (if possible). | 7753 // to grow the heap without causing GCs (if possible). |
7755 Counters::gc_last_resort_from_js.Increment(); | 7754 Counters::gc_last_resort_from_js.Increment(); |
7756 Heap::CollectAllGarbage(false); | 7755 Heap::CollectAllGarbage(false); |
7757 } | 7756 } |
7758 } | 7757 } |
7759 | 7758 |
7760 | 7759 |
7761 } } // namespace v8::internal | 7760 } } // namespace v8::internal |
OLD | NEW |