| 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 10127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10138 } | 10138 } |
| 10139 return maybe_value; | 10139 return maybe_value; |
| 10140 } | 10140 } |
| 10141 return value; | 10141 return value; |
| 10142 } else { | 10142 } else { |
| 10143 return heap->undefined_value(); | 10143 return heap->undefined_value(); |
| 10144 } | 10144 } |
| 10145 } | 10145 } |
| 10146 case INTERCEPTOR: | 10146 case INTERCEPTOR: |
| 10147 case MAP_TRANSITION: | 10147 case MAP_TRANSITION: |
| 10148 case EXTERNAL_ARRAY_TRANSITION: | 10148 case ELEMENTS_TRANSITION: |
| 10149 case CONSTANT_TRANSITION: | 10149 case CONSTANT_TRANSITION: |
| 10150 case NULL_DESCRIPTOR: | 10150 case NULL_DESCRIPTOR: |
| 10151 return heap->undefined_value(); | 10151 return heap->undefined_value(); |
| 10152 default: | 10152 default: |
| 10153 UNREACHABLE(); | 10153 UNREACHABLE(); |
| 10154 } | 10154 } |
| 10155 UNREACHABLE(); | 10155 UNREACHABLE(); |
| 10156 return heap->undefined_value(); | 10156 return heap->undefined_value(); |
| 10157 } | 10157 } |
| 10158 | 10158 |
| (...skipping 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13144 } else { | 13144 } else { |
| 13145 // Handle last resort GC and make sure to allow future allocations | 13145 // Handle last resort GC and make sure to allow future allocations |
| 13146 // to grow the heap without causing GCs (if possible). | 13146 // to grow the heap without causing GCs (if possible). |
| 13147 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13147 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 13148 isolate->heap()->CollectAllGarbage(false); | 13148 isolate->heap()->CollectAllGarbage(false); |
| 13149 } | 13149 } |
| 13150 } | 13150 } |
| 13151 | 13151 |
| 13152 | 13152 |
| 13153 } } // namespace v8::internal | 13153 } } // namespace v8::internal |
| OLD | NEW |