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

Side by Side Diff: src/api.cc

Issue 2795103004: [inspector] introduced StackFrame::IsWasm flag (Closed)
Patch Set: rebased 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
« no previous file with comments | « include/v8.h ('k') | src/inspector/v8-stack-trace-impl.cc » ('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 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 7372 matching lines...) Expand 10 before | Expand all | Expand 10 after
10315 Address callback_address = 10316 Address callback_address =
10316 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10317 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10317 VMState<EXTERNAL> state(isolate); 10318 VMState<EXTERNAL> state(isolate);
10318 ExternalCallbackScope call_scope(isolate, callback_address); 10319 ExternalCallbackScope call_scope(isolate, callback_address);
10319 callback(info); 10320 callback(info);
10320 } 10321 }
10321 10322
10322 10323
10323 } // namespace internal 10324 } // namespace internal
10324 } // namespace v8 10325 } // namespace v8
OLDNEW
« no previous file with comments | « 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