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

Side by Side Diff: src/api.cc

Issue 2795103004: [inspector] introduced StackFrame::IsWasm flag (Closed)
Patch Set: Created 3 years, 8 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after
2923 ? scope.Escape(Local<String>::Cast(Utils::ToLocal(obj))) 2923 ? scope.Escape(Local<String>::Cast(Utils::ToLocal(obj)))
2924 : Local<String>(); 2924 : Local<String>();
2925 } 2925 }
2926 2926
2927 bool StackFrame::IsEval() const { return Utils::OpenHandle(this)->is_eval(); } 2927 bool StackFrame::IsEval() const { return Utils::OpenHandle(this)->is_eval(); }
2928 2928
2929 bool StackFrame::IsConstructor() const { 2929 bool StackFrame::IsConstructor() const {
2930 return Utils::OpenHandle(this)->is_constructor(); 2930 return Utils::OpenHandle(this)->is_constructor();
2931 } 2931 }
2932 2932
2933 bool StackFrame::IsWasm() const { return Utils::OpenHandle(this)->is_wasm(); }
2933 2934
2934 // --- N a t i v e W e a k M a p --- 2935 // --- N a t i v e W e a k M a p ---
2935 2936
2936 Local<NativeWeakMap> NativeWeakMap::New(Isolate* v8_isolate) { 2937 Local<NativeWeakMap> NativeWeakMap::New(Isolate* v8_isolate) {
2937 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); 2938 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
2938 ENTER_V8_NO_SCRIPT_NO_EXCEPTION(isolate); 2939 ENTER_V8_NO_SCRIPT_NO_EXCEPTION(isolate);
2939 i::Handle<i::JSWeakMap> weakmap = isolate->factory()->NewJSWeakMap(); 2940 i::Handle<i::JSWeakMap> weakmap = isolate->factory()->NewJSWeakMap();
2940 i::JSWeakCollection::Initialize(weakmap, isolate); 2941 i::JSWeakCollection::Initialize(weakmap, isolate);
2941 return Utils::NativeWeakMapToLocal(weakmap); 2942 return Utils::NativeWeakMapToLocal(weakmap);
2942 } 2943 }
(...skipping 7380 matching lines...) Expand 10 before | Expand all | Expand 10 after
10323 Address callback_address = 10324 Address callback_address =
10324 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10325 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10325 VMState<EXTERNAL> state(isolate); 10326 VMState<EXTERNAL> state(isolate);
10326 ExternalCallbackScope call_scope(isolate, callback_address); 10327 ExternalCallbackScope call_scope(isolate, callback_address);
10327 callback(info); 10328 callback(info);
10328 } 10329 }
10329 10330
10330 10331
10331 } // namespace internal 10332 } // namespace internal
10332 } // namespace v8 10333 } // namespace v8
OLDNEW
« include/v8.h ('K') | « include/v8.h ('k') | src/inspector/v8-stack-trace-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698