Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: src/runtime/runtime-internal.cc

Issue 1122083002: Remove materialized objects on stack unwind. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks, do not unwind the handler's frame Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 32
33 RUNTIME_FUNCTION(Runtime_ReThrow) { 33 RUNTIME_FUNCTION(Runtime_ReThrow) {
34 HandleScope scope(isolate); 34 HandleScope scope(isolate);
35 DCHECK(args.length() == 1); 35 DCHECK(args.length() == 1);
36 return isolate->ReThrow(args[0]); 36 return isolate->ReThrow(args[0]);
37 } 37 }
38 38
39 39
40 RUNTIME_FUNCTION(Runtime_FindExceptionHandler) { 40 RUNTIME_FUNCTION(Runtime_UnwindAndFindExceptionHandler) {
41 SealHandleScope shs(isolate); 41 SealHandleScope shs(isolate);
42 DCHECK(args.length() == 0); 42 DCHECK(args.length() == 0);
43 return isolate->FindHandler(); 43 return isolate->UnwindAndFindHandler();
44 } 44 }
45 45
46 46
47 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { 47 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) {
48 SealHandleScope shs(isolate); 48 SealHandleScope shs(isolate);
49 DCHECK(args.length() == 0); 49 DCHECK(args.length() == 0);
50 return isolate->PromoteScheduledException(); 50 return isolate->PromoteScheduledException();
51 } 51 }
52 52
53 53
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 return args[0]; 401 return args[0];
402 } 402 }
403 403
404 404
405 RUNTIME_FUNCTION(Runtime_HarmonyToString) { 405 RUNTIME_FUNCTION(Runtime_HarmonyToString) {
406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring 406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring
407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); 407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring);
408 } 408 }
409 } 409 }
410 } // namespace v8::internal 410 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698