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

Side by Side Diff: src/debug/liveedit.h

Issue 2044063002: [compiler] Improve contract for Compiler::CompileDebugCode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Workaround for regenerated bytecode. Created 4 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
« no previous file with comments | « src/compiler.cc ('k') | src/debug/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_DEBUG_LIVEEDIT_H_ 5 #ifndef V8_DEBUG_LIVEEDIT_H_
6 #define V8_DEBUG_LIVEEDIT_H_ 6 #define V8_DEBUG_LIVEEDIT_H_
7 7
8 8
9 // Live Edit feature implementation. 9 // Live Edit feature implementation.
10 // User should be able to change script on already running VM. This feature 10 // User should be able to change script on already running VM. This feature
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 class FunctionInfoWrapper : public JSArrayBasedStruct<FunctionInfoWrapper> { 285 class FunctionInfoWrapper : public JSArrayBasedStruct<FunctionInfoWrapper> {
286 public: 286 public:
287 explicit FunctionInfoWrapper(Handle<JSArray> array) 287 explicit FunctionInfoWrapper(Handle<JSArray> array)
288 : JSArrayBasedStruct<FunctionInfoWrapper>(array) { 288 : JSArrayBasedStruct<FunctionInfoWrapper>(array) {
289 } 289 }
290 290
291 void SetInitialProperties(Handle<String> name, int start_position, 291 void SetInitialProperties(Handle<String> name, int start_position,
292 int end_position, int param_num, int literal_count, 292 int end_position, int param_num, int literal_count,
293 int parent_index); 293 int parent_index);
294 294
295 void SetFunctionCode(Handle<Code> function_code, 295 void SetFunctionCode(Handle<AbstractCode> function_code,
296 Handle<HeapObject> code_scope_info); 296 Handle<HeapObject> code_scope_info);
297 297
298 void SetFunctionScopeInfo(Handle<Object> scope_info_array) { 298 void SetFunctionScopeInfo(Handle<Object> scope_info_array) {
299 this->SetField(kFunctionScopeInfoOffset_, scope_info_array); 299 this->SetField(kFunctionScopeInfoOffset_, scope_info_array);
300 } 300 }
301 301
302 void SetSharedFunctionInfo(Handle<SharedFunctionInfo> info); 302 void SetSharedFunctionInfo(Handle<SharedFunctionInfo> info);
303 303
304 int GetLiteralCount() { 304 int GetLiteralCount() {
305 return this->GetSmiValueField(kLiteralNumOffset_); 305 return this->GetSmiValueField(kLiteralNumOffset_);
306 } 306 }
307 307
308 int GetParentIndex() { 308 int GetParentIndex() {
309 return this->GetSmiValueField(kParentIndexOffset_); 309 return this->GetSmiValueField(kParentIndexOffset_);
310 } 310 }
311 311
312 Handle<Code> GetFunctionCode(); 312 Handle<AbstractCode> GetFunctionCode();
313 313
314 MaybeHandle<TypeFeedbackMetadata> GetFeedbackMetadata(); 314 MaybeHandle<TypeFeedbackMetadata> GetFeedbackMetadata();
315 315
316 Handle<Object> GetCodeScopeInfo(); 316 Handle<Object> GetCodeScopeInfo();
317 317
318 int GetStartPosition() { 318 int GetStartPosition() {
319 return this->GetSmiValueField(kStartPositionOffset_); 319 return this->GetSmiValueField(kStartPositionOffset_);
320 } 320 }
321 321
322 int GetEndPosition() { return this->GetSmiValueField(kEndPositionOffset_); } 322 int GetEndPosition() { return this->GetSmiValueField(kEndPositionOffset_); }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 static const int kSharedInfoOffset_ = 3; 370 static const int kSharedInfoOffset_ = 3;
371 static const int kSize_ = 4; 371 static const int kSize_ = 4;
372 372
373 friend class JSArrayBasedStruct<SharedInfoWrapper>; 373 friend class JSArrayBasedStruct<SharedInfoWrapper>;
374 }; 374 };
375 375
376 } // namespace internal 376 } // namespace internal
377 } // namespace v8 377 } // namespace v8
378 378
379 #endif /* V8_DEBUG_LIVEEDIT_H_ */ 379 #endif /* V8_DEBUG_LIVEEDIT_H_ */
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698