| OLD | NEW |
| 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 DCHECK_EQ(2, args.length()); | 612 DCHECK_EQ(2, args.length()); |
| 613 CONVERT_ARG_HANDLE_CHECKED(Object, callable, 0); | 613 CONVERT_ARG_HANDLE_CHECKED(Object, callable, 0); |
| 614 CONVERT_ARG_HANDLE_CHECKED(Object, object, 1); | 614 CONVERT_ARG_HANDLE_CHECKED(Object, object, 1); |
| 615 RETURN_RESULT_OR_FAILURE( | 615 RETURN_RESULT_OR_FAILURE( |
| 616 isolate, Object::OrdinaryHasInstance(isolate, callable, object)); | 616 isolate, Object::OrdinaryHasInstance(isolate, callable, object)); |
| 617 } | 617 } |
| 618 | 618 |
| 619 RUNTIME_FUNCTION(Runtime_IsWasmObject) { | 619 RUNTIME_FUNCTION(Runtime_IsWasmObject) { |
| 620 HandleScope scope(isolate); | 620 HandleScope scope(isolate); |
| 621 DCHECK_EQ(1, args.length()); | 621 DCHECK_EQ(1, args.length()); |
| 622 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 622 CONVERT_ARG_CHECKED(Object, object, 0); |
| 623 bool is_wasm_object = object->IsJSObject() && | 623 bool is_wasm_object = |
| 624 wasm::IsWasmObject(Handle<JSObject>::cast(object)); | 624 object->IsJSObject() && wasm::IsWasmObject(JSObject::cast(object)); |
| 625 return *isolate->factory()->ToBoolean(is_wasm_object); | 625 return *isolate->factory()->ToBoolean(is_wasm_object); |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace internal | 628 } // namespace internal |
| 629 } // namespace v8 | 629 } // namespace v8 |
| OLD | NEW |