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

Side by Side Diff: src/frames.h

Issue 118115: X64: JSEntry Stub (Closed)
Patch Set: Addressed review comments 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
« no previous file with comments | « no previous file | src/x64/assembler-x64.h » ('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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // Arguments adaptor frames are automatically inserted below 436 // Arguments adaptor frames are automatically inserted below
437 // JavaScript frames when the actual number of parameters does not 437 // JavaScript frames when the actual number of parameters does not
438 // match the formal number of parameters. 438 // match the formal number of parameters.
439 class ArgumentsAdaptorFrame: public JavaScriptFrame { 439 class ArgumentsAdaptorFrame: public JavaScriptFrame {
440 public: 440 public:
441 // This sentinel value is temporarily used to distinguish arguments 441 // This sentinel value is temporarily used to distinguish arguments
442 // adaptor frames from ordinary JavaScript frames. If a frame has 442 // adaptor frames from ordinary JavaScript frames. If a frame has
443 // the sentinel as its context, it is an arguments adaptor frame. It 443 // the sentinel as its context, it is an arguments adaptor frame. It
444 // must be tagged as a small integer to avoid GC issues. Crud. 444 // must be tagged as a small integer to avoid GC issues. Crud.
445 enum { 445 enum {
446 SENTINEL = (1 << kSmiTagSize) | kSmiTag 446 SENTINEL = (1 << kSmiTagSize) | kSmiTag,
447 NON_SENTINEL = ~SENTINEL
447 }; 448 };
448 449
449 virtual Type type() const { return ARGUMENTS_ADAPTOR; } 450 virtual Type type() const { return ARGUMENTS_ADAPTOR; }
450 451
451 // Determine the code for the frame. 452 // Determine the code for the frame.
452 virtual Code* code() const; 453 virtual Code* code() const;
453 454
454 static ArgumentsAdaptorFrame* cast(StackFrame* frame) { 455 static ArgumentsAdaptorFrame* cast(StackFrame* frame) {
455 ASSERT(frame->is_arguments_adaptor()); 456 ASSERT(frame->is_arguments_adaptor());
456 return static_cast<ArgumentsAdaptorFrame*>(frame); 457 return static_cast<ArgumentsAdaptorFrame*>(frame);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 JavaScriptFrame* FindJavaScriptFrame(int n); 682 JavaScriptFrame* FindJavaScriptFrame(int n);
682 683
683 private: 684 private:
684 StackFrameIterator iterator_; 685 StackFrameIterator iterator_;
685 }; 686 };
686 687
687 688
688 } } // namespace v8::internal 689 } } // namespace v8::internal
689 690
690 #endif // V8_FRAMES_H_ 691 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698