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

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: Adapt status. Created 4 years, 10 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
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...) Expand 10 before | Expand all | Expand 10 after
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
263 RUNTIME_FUNCTION(Runtime_InterpreterGetPendingMessage) {
264 SealHandleScope shs(isolate);
265 DCHECK_EQ(0, args.length());
266 return isolate->thread_local_top()->pending_message_obj_;
267 }
268
269 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) {
270 SealHandleScope shs(isolate);
271 DCHECK_EQ(1, args.length());
272 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0);
273 isolate->thread_local_top()->pending_message_obj_ = *message;
274 return isolate->heap()->undefined_value();
275 }
276
256 } // namespace internal 277 } // namespace internal
257 } // namespace v8 278 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698