OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 13009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13020 ASSERT(args.length() == 2); | 13020 ASSERT(args.length() == 2); |
13021 OS::PrintError("abort: %s\n", | 13021 OS::PrintError("abort: %s\n", |
13022 reinterpret_cast<char*>(args[0]) + args.smi_at(1)); | 13022 reinterpret_cast<char*>(args[0]) + args.smi_at(1)); |
13023 isolate->PrintStack(); | 13023 isolate->PrintStack(); |
13024 OS::Abort(); | 13024 OS::Abort(); |
13025 UNREACHABLE(); | 13025 UNREACHABLE(); |
13026 return NULL; | 13026 return NULL; |
13027 } | 13027 } |
13028 | 13028 |
13029 | 13029 |
| 13030 RUNTIME_FUNCTION(MaybeObject*, Runtime_UnexpectedDeopt) { |
| 13031 ASSERT(args.length() == 0); |
| 13032 OS::PrintError("Unexpected deoptimization"); |
| 13033 isolate->PrintStack(); |
| 13034 OS::Abort(); |
| 13035 UNREACHABLE(); |
| 13036 return NULL; |
| 13037 } |
| 13038 |
| 13039 |
13030 RUNTIME_FUNCTION(MaybeObject*, Runtime_FlattenString) { | 13040 RUNTIME_FUNCTION(MaybeObject*, Runtime_FlattenString) { |
13031 HandleScope scope(isolate); | 13041 HandleScope scope(isolate); |
13032 ASSERT(args.length() == 1); | 13042 ASSERT(args.length() == 1); |
13033 CONVERT_ARG_HANDLE_CHECKED(String, str, 0); | 13043 CONVERT_ARG_HANDLE_CHECKED(String, str, 0); |
13034 FlattenString(str); | 13044 FlattenString(str); |
13035 return isolate->heap()->undefined_value(); | 13045 return isolate->heap()->undefined_value(); |
13036 } | 13046 } |
13037 | 13047 |
13038 | 13048 |
13039 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFromCache) { | 13049 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFromCache) { |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13416 // Handle last resort GC and make sure to allow future allocations | 13426 // Handle last resort GC and make sure to allow future allocations |
13417 // to grow the heap without causing GCs (if possible). | 13427 // to grow the heap without causing GCs (if possible). |
13418 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13428 isolate->counters()->gc_last_resort_from_js()->Increment(); |
13419 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 13429 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
13420 "Runtime::PerformGC"); | 13430 "Runtime::PerformGC"); |
13421 } | 13431 } |
13422 } | 13432 } |
13423 | 13433 |
13424 | 13434 |
13425 } } // namespace v8::internal | 13435 } } // namespace v8::internal |
OLD | NEW |