| OLD | NEW |
| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 int offset_; | 540 int offset_; |
| 541 bool is_constructor_; | 541 bool is_constructor_; |
| 542 }; | 542 }; |
| 543 | 543 |
| 544 | 544 |
| 545 class JavaScriptFrame: public StandardFrame { | 545 class JavaScriptFrame: public StandardFrame { |
| 546 public: | 546 public: |
| 547 virtual Type type() const { return JAVA_SCRIPT; } | 547 virtual Type type() const { return JAVA_SCRIPT; } |
| 548 | 548 |
| 549 // Accessors. | 549 // Accessors. |
| 550 inline Object* function() const; | 550 inline JSFunction* function() const; |
| 551 inline Object* receiver() const; | 551 inline Object* receiver() const; |
| 552 inline void set_receiver(Object* value); | 552 inline void set_receiver(Object* value); |
| 553 | 553 |
| 554 // Access the parameters. | 554 // Access the parameters. |
| 555 inline Address GetParameterSlot(int index) const; | 555 inline Address GetParameterSlot(int index) const; |
| 556 inline Object* GetParameter(int index) const; | 556 inline Object* GetParameter(int index) const; |
| 557 inline int ComputeParametersCount() const { | 557 inline int ComputeParametersCount() const { |
| 558 return GetNumberOfIncomingArguments(); | 558 return GetNumberOfIncomingArguments(); |
| 559 } | 559 } |
| 560 | 560 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 }; | 922 }; |
| 923 | 923 |
| 924 | 924 |
| 925 // Reads all frames on the current stack and copies them into the current | 925 // Reads all frames on the current stack and copies them into the current |
| 926 // zone memory. | 926 // zone memory. |
| 927 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 927 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 928 | 928 |
| 929 } } // namespace v8::internal | 929 } } // namespace v8::internal |
| 930 | 930 |
| 931 #endif // V8_FRAMES_H_ | 931 #endif // V8_FRAMES_H_ |
| OLD | NEW |