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

Side by Side Diff: sky/engine/bindings/core/v8/V8Binding.h

Issue 889823002: Remove TRACE_EVENT indirection through blink::Platform (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 ScriptState* scriptState() const; 739 ScriptState* scriptState() const;
740 v8::Isolate* isolate() const; 740 v8::Isolate* isolate() const;
741 ~V8TestingScope(); 741 ~V8TestingScope();
742 742
743 private: 743 private:
744 v8::HandleScope m_handleScope; 744 v8::HandleScope m_handleScope;
745 v8::Context::Scope m_contextScope; 745 v8::Context::Scope m_contextScope;
746 RefPtr<ScriptState> m_scriptState; 746 RefPtr<ScriptState> m_scriptState;
747 }; 747 };
748 748
749 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script Id, String& resourceName, int& lineNumber);
750 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext*, v8::Handle<v8::Function>, v8::Isolate*);
751
752 class V8RethrowTryCatchScope final { 749 class V8RethrowTryCatchScope final {
753 public: 750 public:
754 explicit V8RethrowTryCatchScope(v8::TryCatch& block) : m_block(block) { } 751 explicit V8RethrowTryCatchScope(v8::TryCatch& block) : m_block(block) { }
755 ~V8RethrowTryCatchScope() 752 ~V8RethrowTryCatchScope()
756 { 753 {
757 // ReThrow() is a no-op if no exception has been caught, so always call. 754 // ReThrow() is a no-op if no exception has been caught, so always call.
758 m_block.ReThrow(); 755 m_block.ReThrow();
759 } 756 }
760 757
761 private: 758 private:
762 v8::TryCatch& m_block; 759 v8::TryCatch& m_block;
763 }; 760 };
764 761
765 } // namespace blink 762 } // namespace blink
766 763
767 #endif // SKY_ENGINE_BINDINGS_CORE_V8_V8BINDING_H_ 764 #endif // SKY_ENGINE_BINDINGS_CORE_V8_V8BINDING_H_
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptController.cpp ('k') | sky/engine/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698