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

Side by Side Diff: src/frames.h

Issue 125115: Added mutation of locals to debugger (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | « no previous file | src/frames.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 public: 369 public:
370 virtual Type type() const { return JAVA_SCRIPT; } 370 virtual Type type() const { return JAVA_SCRIPT; }
371 371
372 // Accessors. 372 // Accessors.
373 inline Object* function() const; 373 inline Object* function() const;
374 inline Object* receiver() const; 374 inline Object* receiver() const;
375 inline void set_receiver(Object* value); 375 inline void set_receiver(Object* value);
376 376
377 // Access the parameters. 377 // Access the parameters.
378 Object* GetParameter(int index) const; 378 Object* GetParameter(int index) const;
379 void SetParameter(int index, Object* value);
379 int ComputeParametersCount() const; 380 int ComputeParametersCount() const;
380 381
381 // Temporary way of getting access to the number of parameters 382 // Temporary way of getting access to the number of parameters
382 // passed on the stack by the caller. Once argument adaptor frames 383 // passed on the stack by the caller. Once argument adaptor frames
383 // has been introduced on ARM, this number will always match the 384 // has been introduced on ARM, this number will always match the
384 // computed parameters count. 385 // computed parameters count.
385 int GetProvidedParametersCount() const; 386 int GetProvidedParametersCount() const;
386 387
387 // Check if this frame is a constructor frame invoked through 'new'. 388 // Check if this frame is a constructor frame invoked through 'new'.
388 bool IsConstructor() const; 389 bool IsConstructor() const;
(...skipping 18 matching lines...) Expand all
407 ASSERT(frame->is_java_script()); 408 ASSERT(frame->is_java_script());
408 return static_cast<JavaScriptFrame*>(frame); 409 return static_cast<JavaScriptFrame*>(frame);
409 } 410 }
410 411
411 protected: 412 protected:
412 explicit JavaScriptFrame(StackFrameIterator* iterator) 413 explicit JavaScriptFrame(StackFrameIterator* iterator)
413 : StandardFrame(iterator), disable_heap_access_(false) { } 414 : StandardFrame(iterator), disable_heap_access_(false) { }
414 415
415 virtual Address GetCallerStackPointer() const; 416 virtual Address GetCallerStackPointer() const;
416 417
418 // Returns the address of the n'th parameter stack element.
419 inline Address GetParameterAddress(int n) const;
420
417 // When this mode is enabled it is not allowed to access heap objects. 421 // When this mode is enabled it is not allowed to access heap objects.
418 // This is a special mode used when gathering stack samples in profiler. 422 // This is a special mode used when gathering stack samples in profiler.
419 // A shortcoming is that caller's SP value will be calculated incorrectly 423 // A shortcoming is that caller's SP value will be calculated incorrectly
420 // (see GetCallerStackPointer implementation), but it is not used for stack 424 // (see GetCallerStackPointer implementation), but it is not used for stack
421 // sampling. 425 // sampling.
422 void DisableHeapAccess() { disable_heap_access_ = true; } 426 void DisableHeapAccess() { disable_heap_access_ = true; }
423 427
424 private: 428 private:
425 bool disable_heap_access_; 429 bool disable_heap_access_;
426 inline Object* function_slot_object() const; 430 inline Object* function_slot_object() const;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 JavaScriptFrame* FindJavaScriptFrame(int n); 682 JavaScriptFrame* FindJavaScriptFrame(int n);
679 683
680 private: 684 private:
681 StackFrameIterator iterator_; 685 StackFrameIterator iterator_;
682 }; 686 };
683 687
684 688
685 } } // namespace v8::internal 689 } } // namespace v8::internal
686 690
687 #endif // V8_FRAMES_H_ 691 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698