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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 Failure* Isolate::StackOverflow() { | 527 Failure* Isolate::StackOverflow() { |
528 HandleScope scope; | 528 HandleScope scope; |
529 Handle<String> key = factory()->stack_overflow_symbol(); | 529 Handle<String> key = factory()->stack_overflow_symbol(); |
530 Handle<JSObject> boilerplate = | 530 Handle<JSObject> boilerplate = |
531 Handle<JSObject>::cast(GetProperty(js_builtins_object(), key)); | 531 Handle<JSObject>::cast(GetProperty(js_builtins_object(), key)); |
532 Handle<Object> exception = Copy(boilerplate); | 532 Handle<Object> exception = Copy(boilerplate); |
533 // TODO(1240995): To avoid having to call JavaScript code to compute | 533 // TODO(1240995): To avoid having to call JavaScript code to compute |
534 // the message for stack overflow exceptions which is very likely to | 534 // the message for stack overflow exceptions which is very likely to |
535 // double fault with another stack overflow exception, we use a | 535 // double fault with another stack overflow exception, we use a |
536 // precomputed message. | 536 // precomputed message. |
537 DoThrow(*exception, NULL); | 537 DoThrow(*exception, NULL); |
538 return Failure::Exception(); | 538 return Failure::Exception(); |
539 } | 539 } |
540 | 540 |
541 | 541 |
542 Failure* Isolate::TerminateExecution() { | 542 Failure* Isolate::TerminateExecution() { |
543 DoThrow(heap_.termination_exception(), NULL); | 543 DoThrow(heap_.termination_exception(), NULL); |
544 return Failure::Exception(); | 544 return Failure::Exception(); |
545 } | 545 } |
546 | 546 |
547 | 547 |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 thread_local_top()->simulator_ = Simulator::current(this); | 956 thread_local_top()->simulator_ = Simulator::current(this); |
957 #endif | 957 #endif |
958 #endif | 958 #endif |
959 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 959 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
960 RuntimeProfiler::IsolateEnteredJS(this); | 960 RuntimeProfiler::IsolateEnteredJS(this); |
961 } | 961 } |
962 return from + sizeof(ThreadLocalTop); | 962 return from + sizeof(ThreadLocalTop); |
963 } | 963 } |
964 | 964 |
965 } } // namespace v8::internal | 965 } } // namespace v8::internal |
OLD | NEW |