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

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: Rebased. 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
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/cctest.status » ('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 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 Object* message = isolate->thread_local_top()->pending_message_obj_;
260 isolate->clear_pending_message();
261 return message;
262 }
263
264 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) {
265 SealHandleScope shs(isolate);
266 DCHECK_EQ(1, args.length());
267 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0);
268 isolate->thread_local_top()->pending_message_obj_ = *message;
269 return isolate->heap()->undefined_value();
270 }
271
256 } // namespace internal 272 } // namespace internal
257 } // namespace v8 273 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698