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

Side by Side Diff: Source/bindings/v8/V8Binding.h

Issue 271883002: Add more FunctionCall trace events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | 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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class DOMWindow; 50 class DOMWindow;
51 class Document; 51 class Document;
52 class EventListener; 52 class EventListener;
53 class ExecutionContext; 53 class ExecutionContext;
54 class ExceptionState; 54 class ExceptionState;
55 class LocalFrame; 55 class LocalFrame;
56 class NodeFilter; 56 class NodeFilter;
57 class ScriptWrappable; 57 class ScriptWrappable;
58 class XPathNSResolver; 58 class XPathNSResolver;
59 59
60 namespace TraceEvent {
61 class ConvertableToTraceFormat;
62 }
63
60 const int kMaxRecursionDepth = 22; 64 const int kMaxRecursionDepth = 22;
61 65
62 // Schedule a JavaScript error to be thrown. 66 // Schedule a JavaScript error to be thrown.
63 v8::Handle<v8::Value> throwError(V8ErrorType, const String&, v8::Isolate*); 67 v8::Handle<v8::Value> throwError(V8ErrorType, const String&, v8::Isolate*);
64 68
65 // Schedule a JavaScript error to be thrown. 69 // Schedule a JavaScript error to be thrown.
66 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>, v8::Isolate*); 70 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value>, v8::Isolate*);
67 71
68 // A helper for throwing JavaScript TypeError. 72 // A helper for throwing JavaScript TypeError.
69 v8::Handle<v8::Value> throwTypeError(const String&, v8::Isolate*); 73 v8::Handle<v8::Value> throwTypeError(const String&, v8::Isolate*);
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*); 932 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*);
929 explicit V8ExecutionScope(v8::Isolate*); 933 explicit V8ExecutionScope(v8::Isolate*);
930 ~V8ExecutionScope(); 934 ~V8ExecutionScope();
931 935
932 private: 936 private:
933 v8::HandleScope m_handleScope; 937 v8::HandleScope m_handleScope;
934 v8::Context::Scope m_contextScope; 938 v8::Context::Scope m_contextScope;
935 RefPtr<ScriptState> m_scriptState; 939 RefPtr<ScriptState> m_scriptState;
936 }; 940 };
937 941
942 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script Id, String& resourceName, int& lineNumber);
943 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext*, v8::Handle<v8::Function>, v8::Isolate*);
944
945
938 } // namespace WebCore 946 } // namespace WebCore
939 947
940 #endif // V8Binding_h 948 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698