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

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

Issue 2050953003: [wasm] Split off debug info from wasm object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@decode-function-offsets-table
Patch Set: address ahaas' comments Created 4 years, 6 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 | « BUILD.gn ('k') | src/v8.gyp » ('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 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
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
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698