| 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 28 matching lines...) Expand all Loading... |
| 39 #include "dateparser-inl.h" | 39 #include "dateparser-inl.h" |
| 40 #include "debug.h" | 40 #include "debug.h" |
| 41 #include "deoptimizer.h" | 41 #include "deoptimizer.h" |
| 42 #include "execution.h" | 42 #include "execution.h" |
| 43 #include "global-handles.h" | 43 #include "global-handles.h" |
| 44 #include "jsregexp.h" | 44 #include "jsregexp.h" |
| 45 #include "liveedit.h" | 45 #include "liveedit.h" |
| 46 #include "liveobjectlist-inl.h" | 46 #include "liveobjectlist-inl.h" |
| 47 #include "parser.h" | 47 #include "parser.h" |
| 48 #include "platform.h" | 48 #include "platform.h" |
| 49 #include "runtime-profiler.h" |
| 49 #include "runtime.h" | 50 #include "runtime.h" |
| 50 #include "runtime-profiler.h" | |
| 51 #include "scopeinfo.h" | 51 #include "scopeinfo.h" |
| 52 #include "smart-pointer.h" | 52 #include "smart-pointer.h" |
| 53 #include "string-search.h" |
| 53 #include "stub-cache.h" | 54 #include "stub-cache.h" |
| 54 #include "v8threads.h" | 55 #include "v8threads.h" |
| 55 #include "string-search.h" | |
| 56 | 56 |
| 57 namespace v8 { | 57 namespace v8 { |
| 58 namespace internal { | 58 namespace internal { |
| 59 | 59 |
| 60 | 60 |
| 61 #define RUNTIME_ASSERT(value) \ | 61 #define RUNTIME_ASSERT(value) \ |
| 62 if (!(value)) return isolate->ThrowIllegalOperation(); | 62 if (!(value)) return isolate->ThrowIllegalOperation(); |
| 63 | 63 |
| 64 // Cast the given object to a value of the specified type and store | 64 // Cast the given object to a value of the specified type and store |
| 65 // it in a variable with the given name. If the object is not of the | 65 // it in a variable with the given name. If the object is not of the |
| (...skipping 12045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12111 } else { | 12111 } else { |
| 12112 // Handle last resort GC and make sure to allow future allocations | 12112 // Handle last resort GC and make sure to allow future allocations |
| 12113 // to grow the heap without causing GCs (if possible). | 12113 // to grow the heap without causing GCs (if possible). |
| 12114 isolate->counters()->gc_last_resort_from_js()->Increment(); | 12114 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 12115 isolate->heap()->CollectAllGarbage(false); | 12115 isolate->heap()->CollectAllGarbage(false); |
| 12116 } | 12116 } |
| 12117 } | 12117 } |
| 12118 | 12118 |
| 12119 | 12119 |
| 12120 } } // namespace v8::internal | 12120 } } // namespace v8::internal |
| OLD | NEW |