Chromium Code Reviews

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

Issue 1651993002: [interpreter] Clear pending message object on handler entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable test. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 235 matching lines...)
246 CONVERT_SMI_ARG_CHECKED(bytecode_offset, 1); 246 CONVERT_SMI_ARG_CHECKED(bytecode_offset, 1);
247 CONVERT_ARG_HANDLE_CHECKED(Object, accumulator, 2); 247 CONVERT_ARG_HANDLE_CHECKED(Object, accumulator, 2);
248 OFStream os(stdout); 248 OFStream os(stdout);
249 249
250 // Print all output registers and accumulator. 250 // Print all output registers and accumulator.
251 PrintRegisters(os, false, bytecode_array, bytecode_offset, accumulator); 251 PrintRegisters(os, false, bytecode_array, bytecode_offset, accumulator);
252 os << std::flush; 252 os << std::flush;
253 return isolate->heap()->undefined_value(); 253 return isolate->heap()->undefined_value();
254 } 254 }
255 255
256 RUNTIME_FUNCTION(Runtime_InterpreterClearPendingMessage) {
257 SealHandleScope shs(isolate);
258 DCHECK_EQ(0, args.length());
259 isolate->clear_pending_message();
260 return isolate->heap()->undefined_value();
261 }
262
256 } // namespace internal 263 } // namespace internal
257 } // namespace v8 264 } // namespace v8
OLDNEW

Powered by Google App Engine