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

Side by Side Diff: Source/core/inspector/JavaScriptCallFrame.h

Issue 1156463003: Oilpan: fix build after r196422. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: InspectorDebuggerAgent fixes Created 5 years, 6 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/core/inspector/InspectorDebuggerAgent.cpp ('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, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 24 matching lines...) Expand all
35 #include "bindings/core/v8/ScopedPersistent.h" 35 #include "bindings/core/v8/ScopedPersistent.h"
36 #include "bindings/core/v8/ScriptState.h" 36 #include "bindings/core/v8/ScriptState.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 #include <v8.h> 39 #include <v8.h>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame> { 43 class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame> {
44 public: 44 public:
45 static PassRefPtrWillBeRawPtr<JavaScriptCallFrame> create(v8::Local<v8::Cont ext> debuggerContext, v8::Local<v8::Object> callFrame) 45 static PassRefPtr<JavaScriptCallFrame> create(v8::Local<v8::Context> debugge rContext, v8::Local<v8::Object> callFrame)
46 { 46 {
47 return adoptRefWillBeNoop(new JavaScriptCallFrame(debuggerContext, callF rame)); 47 return adoptRef(new JavaScriptCallFrame(debuggerContext, callFrame));
48 } 48 }
49 ~JavaScriptCallFrame(); 49 ~JavaScriptCallFrame();
50 50
51 JavaScriptCallFrame* caller(); 51 JavaScriptCallFrame* caller();
52 52
53 int sourceID() const; 53 int sourceID() const;
54 int line() const; 54 int line() const;
55 int column() const; 55 int column() const;
56 String scriptName() const; 56 String scriptName() const;
57 String functionName() const; 57 String functionName() const;
(...skipping 17 matching lines...) Expand all
75 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } 75 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); }
76 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } 76 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); }
77 77
78 private: 78 private:
79 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame); 79 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame);
80 80
81 int callV8FunctionReturnInt(const char* name) const; 81 int callV8FunctionReturnInt(const char* name) const;
82 String callV8FunctionReturnString(const char* name) const; 82 String callV8FunctionReturnString(const char* name) const;
83 83
84 v8::Isolate* m_isolate; 84 v8::Isolate* m_isolate;
85 RefPtrWillBeMember<JavaScriptCallFrame> m_caller; 85 RefPtr<JavaScriptCallFrame> m_caller;
86 ScopedPersistent<v8::Context> m_debuggerContext; 86 ScopedPersistent<v8::Context> m_debuggerContext;
87 ScopedPersistent<v8::Object> m_callFrame; 87 ScopedPersistent<v8::Object> m_callFrame;
88 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; 88 v8::Global<v8::FunctionTemplate> m_wrapperTemplate;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // JavaScriptCallFrame_h 93 #endif // JavaScriptCallFrame_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698