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

Side by Side Diff: src/liveedit.h

Issue 10534006: Remove TLS access for current Zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 8 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 | « src/lithium-allocator.cc ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // 62 //
63 // The primary interest of the Tracker is to record function scope structures 63 // The primary interest of the Tracker is to record function scope structures
64 // in order to analyze whether function code maybe safely patched (with new 64 // in order to analyze whether function code maybe safely patched (with new
65 // code successfully reading existing data from function scopes). The Tracker 65 // code successfully reading existing data from function scopes). The Tracker
66 // also collects compiled function codes. 66 // also collects compiled function codes.
67 class LiveEditFunctionTracker { 67 class LiveEditFunctionTracker {
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); 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 78 #ifdef ENABLE_DEBUGGER_SUPPORT
79 Isolate* isolate_; 79 Isolate* isolate_;
80 #endif 80 #endif
81 }; 81 };
82 82
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static void ReplaceRefToNestedFunction(Handle<JSValue> parent_function_shared, 114 static void ReplaceRefToNestedFunction(Handle<JSValue> parent_function_shared,
115 Handle<JSValue> orig_function_shared, 115 Handle<JSValue> orig_function_shared,
116 Handle<JSValue> subst_function_shared); 116 Handle<JSValue> subst_function_shared);
117 117
118 // Checks listed functions on stack and return array with corresponding 118 // Checks listed functions on stack and return array with corresponding
119 // FunctionPatchabilityStatus statuses; extra array element may 119 // FunctionPatchabilityStatus statuses; extra array element may
120 // contain general error message. Modifies the current stack and 120 // contain general error message. Modifies the current stack and
121 // has restart the lowest found frames and drops all other frames above 121 // has restart the lowest found frames and drops all other frames above
122 // if possible and if do_drop is true. 122 // if possible and if do_drop is true.
123 static Handle<JSArray> CheckAndDropActivations( 123 static Handle<JSArray> CheckAndDropActivations(
124 Handle<JSArray> shared_info_array, bool do_drop); 124 Handle<JSArray> shared_info_array, bool do_drop, Zone* zone);
125 125
126 // A copy of this is in liveedit-debugger.js. 126 // A copy of this is in liveedit-debugger.js.
127 enum FunctionPatchabilityStatus { 127 enum FunctionPatchabilityStatus {
128 FUNCTION_AVAILABLE_FOR_PATCH = 1, 128 FUNCTION_AVAILABLE_FOR_PATCH = 1,
129 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, 129 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2,
130 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, 130 FUNCTION_BLOCKED_ON_OTHER_STACK = 3,
131 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, 131 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4,
132 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 132 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5
133 }; 133 };
134 134
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 static void CalculateDifference(Input* input, 170 static void CalculateDifference(Input* input,
171 Output* result_writer); 171 Output* result_writer);
172 }; 172 };
173 173
174 #endif // ENABLE_DEBUGGER_SUPPORT 174 #endif // ENABLE_DEBUGGER_SUPPORT
175 175
176 176
177 } } // namespace v8::internal 177 } } // namespace v8::internal
178 178
179 #endif /* V*_LIVEEDIT_H_ */ 179 #endif /* V*_LIVEEDIT_H_ */
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698