OLD | NEW |
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 RUNTIME_FUNCTION(Runtime_InterpreterLogicalNot) { | 129 RUNTIME_FUNCTION(Runtime_InterpreterLogicalNot) { |
130 SealHandleScope shs(isolate); | 130 SealHandleScope shs(isolate); |
131 DCHECK_EQ(1, args.length()); | 131 DCHECK_EQ(1, args.length()); |
132 CONVERT_ARG_CHECKED(Object, x, 0); | 132 CONVERT_ARG_CHECKED(Object, x, 0); |
133 return isolate->heap()->ToBoolean(!x->BooleanValue()); | 133 return isolate->heap()->ToBoolean(!x->BooleanValue()); |
134 } | 134 } |
135 | 135 |
136 | 136 |
137 RUNTIME_FUNCTION(Runtime_InterpreterTypeOf) { | 137 RUNTIME_FUNCTION(Runtime_InterpreterTypeOf) { |
138 SealHandleScope shs(isolate); | 138 HandleScope shs(isolate); |
139 DCHECK_EQ(1, args.length()); | 139 DCHECK_EQ(1, args.length()); |
140 CONVERT_ARG_HANDLE_CHECKED(Object, x, 0); | 140 CONVERT_ARG_HANDLE_CHECKED(Object, x, 0); |
141 return Object::cast(*Object::TypeOf(isolate, x)); | 141 return Object::cast(*Object::TypeOf(isolate, x)); |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 RUNTIME_FUNCTION(Runtime_InterpreterNewClosure) { | 145 RUNTIME_FUNCTION(Runtime_InterpreterNewClosure) { |
146 HandleScope scope(isolate); | 146 HandleScope scope(isolate); |
147 DCHECK_EQ(2, args.length()); | 147 DCHECK_EQ(2, args.length()); |
148 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); | 148 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) { | 264 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) { |
265 SealHandleScope shs(isolate); | 265 SealHandleScope shs(isolate); |
266 DCHECK_EQ(1, args.length()); | 266 DCHECK_EQ(1, args.length()); |
267 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0); | 267 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0); |
268 isolate->thread_local_top()->pending_message_obj_ = *message; | 268 isolate->thread_local_top()->pending_message_obj_ = *message; |
269 return isolate->heap()->undefined_value(); | 269 return isolate->heap()->undefined_value(); |
270 } | 270 } |
271 | 271 |
272 } // namespace internal | 272 } // namespace internal |
273 } // namespace v8 | 273 } // namespace v8 |
OLD | NEW |