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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp

Issue 1822053003: [DevTools] Removed obsolote NoScopes suffix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 if (!currentCallFrame) 509 if (!currentCallFrame)
510 return v8::Local<v8::Object>(); 510 return v8::Local<v8::Object>();
511 511
512 v8::Local<v8::FunctionTemplate> wrapperTemplate = v8::Local<v8::FunctionTemp late>::New(m_isolate, m_callFrameWrapperTemplate); 512 v8::Local<v8::FunctionTemplate> wrapperTemplate = v8::Local<v8::FunctionTemp late>::New(m_isolate, m_callFrameWrapperTemplate);
513 v8::Local<v8::Context> context = m_pausedContext.IsEmpty() ? m_isolate->GetC urrentContext() : m_pausedContext; 513 v8::Local<v8::Context> context = m_pausedContext.IsEmpty() ? m_isolate->GetC urrentContext() : m_pausedContext;
514 v8::Context::Scope scope(context); 514 v8::Context::Scope scope(context);
515 v8::Local<v8::Object> wrapper = V8JavaScriptCallFrame::wrap(wrapperTemplate, context, currentCallFrame.release()); 515 v8::Local<v8::Object> wrapper = V8JavaScriptCallFrame::wrap(wrapperTemplate, context, currentCallFrame.release());
516 return wrapper; 516 return wrapper;
517 } 517 }
518 518
519 PassOwnPtr<JavaScriptCallFrame> V8DebuggerImpl::callFrameNoScopes(int index) 519 PassOwnPtr<JavaScriptCallFrame> V8DebuggerImpl::callFrame(int index)
520 { 520 {
521 if (!m_isolate->InContext()) 521 if (!m_isolate->InContext())
522 return nullptr; 522 return nullptr;
523 v8::HandleScope handleScope(m_isolate); 523 v8::HandleScope handleScope(m_isolate);
524 524
525 v8::Local<v8::Value> currentCallFrameV8; 525 v8::Local<v8::Value> currentCallFrameV8;
526 if (m_executionState.IsEmpty()) { 526 if (m_executionState.IsEmpty()) {
527 v8::Local<v8::Function> currentCallFrameFunction = v8::Local<v8::Functio n>::Cast(m_debuggerScript.Get(m_isolate)->Get(v8InternalizedString("currentCallF rameByIndex"))); 527 v8::Local<v8::Function> currentCallFrameFunction = v8::Local<v8::Functio n>::Cast(m_debuggerScript.Get(m_isolate)->Get(v8InternalizedString("currentCallF rameByIndex")));
528 currentCallFrameV8 = v8::Debug::Call(debuggerContext(), currentCallFrame Function, v8::Integer::New(m_isolate, index)).ToLocalChecked(); 528 currentCallFrameV8 = v8::Debug::Call(debuggerContext(), currentCallFrame Function, v8::Integer::New(m_isolate, index)).ToLocalChecked();
529 } else { 529 } else {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 } 895 }
896 896
897 v8::Local<v8::Context> V8DebuggerImpl::regexContext() 897 v8::Local<v8::Context> V8DebuggerImpl::regexContext()
898 { 898 {
899 if (m_regexContext.IsEmpty()) 899 if (m_regexContext.IsEmpty())
900 m_regexContext.Reset(m_isolate, v8::Context::New(m_isolate)); 900 m_regexContext.Reset(m_isolate, v8::Context::New(m_isolate));
901 return m_regexContext.Get(m_isolate); 901 return m_regexContext.Get(m_isolate);
902 } 902 }
903 903
904 } // namespace blink 904 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698