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

Side by Side Diff: src/liveedit.h

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate-inl.h ('k') | src/liveedit.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 public: 68 public:
69 explicit LiveEditFunctionTracker(Isolate* isolate, FunctionLiteral* fun); 69 explicit LiveEditFunctionTracker(Isolate* isolate, FunctionLiteral* fun);
70 ~LiveEditFunctionTracker(); 70 ~LiveEditFunctionTracker();
71 void RecordFunctionInfo(Handle<SharedFunctionInfo> info, 71 void RecordFunctionInfo(Handle<SharedFunctionInfo> info,
72 FunctionLiteral* lit, Zone* zone); 72 FunctionLiteral* lit, Zone* zone);
73 void RecordRootFunctionInfo(Handle<Code> code); 73 void RecordRootFunctionInfo(Handle<Code> code);
74 74
75 static bool IsActive(Isolate* isolate); 75 static bool IsActive(Isolate* isolate);
76 76
77 private: 77 private:
78 #ifdef ENABLE_DEBUGGER_SUPPORT
79 Isolate* isolate_; 78 Isolate* isolate_;
80 #endif
81 }; 79 };
82 80
83 #ifdef ENABLE_DEBUGGER_SUPPORT
84 81
85 class LiveEdit : AllStatic { 82 class LiveEdit : AllStatic {
86 public: 83 public:
87 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo( 84 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo(
88 Handle<Script> script, 85 Handle<Script> script,
89 Handle<String> source); 86 Handle<String> source);
90 87
91 static void WrapSharedFunctionInfos(Handle<JSArray> array); 88 static void WrapSharedFunctionInfos(Handle<JSArray> array);
92 89
93 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, 90 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 private: 312 private:
316 static const int kFunctionNameOffset_ = 0; 313 static const int kFunctionNameOffset_ = 0;
317 static const int kStartPositionOffset_ = 1; 314 static const int kStartPositionOffset_ = 1;
318 static const int kEndPositionOffset_ = 2; 315 static const int kEndPositionOffset_ = 2;
319 static const int kSharedInfoOffset_ = 3; 316 static const int kSharedInfoOffset_ = 3;
320 static const int kSize_ = 4; 317 static const int kSize_ = 4;
321 318
322 friend class JSArrayBasedStruct<SharedInfoWrapper>; 319 friend class JSArrayBasedStruct<SharedInfoWrapper>;
323 }; 320 };
324 321
325 #endif // ENABLE_DEBUGGER_SUPPORT
326
327
328 } } // namespace v8::internal 322 } } // namespace v8::internal
329 323
330 #endif /* V*_LIVEEDIT_H_ */ 324 #endif /* V*_LIVEEDIT_H_ */
OLDNEW
« no previous file with comments | « src/isolate-inl.h ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698