| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 public: | 50 public: |
| 51 explicit SpilledScope(CodeGenerator* cgen); | 51 explicit SpilledScope(CodeGenerator* cgen); |
| 52 | 52 |
| 53 ~SpilledScope(); | 53 ~SpilledScope(); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 CodeGenerator* cgen_; | 56 CodeGenerator* cgen_; |
| 57 bool previous_state_; | 57 bool previous_state_; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // An illegal index into the virtual frame. |
| 61 static const int kIllegalIndex = -1; |
| 62 |
| 60 // Construct an initial virtual frame on entry to a JS function. | 63 // Construct an initial virtual frame on entry to a JS function. |
| 61 explicit VirtualFrame(CodeGenerator* cgen); | 64 explicit VirtualFrame(CodeGenerator* cgen); |
| 62 | 65 |
| 63 // Construct a virtual frame as a clone of an existing one. | 66 // Construct a virtual frame as a clone of an existing one. |
| 64 explicit VirtualFrame(VirtualFrame* original); | 67 explicit VirtualFrame(VirtualFrame* original); |
| 65 | 68 |
| 66 // Create a duplicate of an existing valid frame element. | 69 // Create a duplicate of an existing valid frame element. |
| 67 FrameElement CopyElementAt(int index); | 70 FrameElement CopyElementAt(int index); |
| 68 | 71 |
| 69 // The height of the virtual expression stack. | 72 // The height of the virtual expression stack. |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Pushing a result invalidates it (its contents become owned by the | 306 // Pushing a result invalidates it (its contents become owned by the |
| 304 // frame). | 307 // frame). |
| 305 void Push(Result* result); | 308 void Push(Result* result); |
| 306 | 309 |
| 307 // Nip removes zero or more elements from immediately below the top | 310 // Nip removes zero or more elements from immediately below the top |
| 308 // of the frame, leaving the previous top-of-frame value on top of | 311 // of the frame, leaving the previous top-of-frame value on top of |
| 309 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). | 312 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
| 310 void Nip(int num_dropped); | 313 void Nip(int num_dropped); |
| 311 | 314 |
| 312 private: | 315 private: |
| 313 // An illegal index into the virtual frame. | |
| 314 static const int kIllegalIndex = -1; | |
| 315 | |
| 316 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 316 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
| 317 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; | 317 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; |
| 318 static const int kContextOffset = StandardFrameConstants::kContextOffset; | 318 static const int kContextOffset = StandardFrameConstants::kContextOffset; |
| 319 | 319 |
| 320 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; | 320 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; |
| 321 | 321 |
| 322 CodeGenerator* cgen_; | 322 CodeGenerator* cgen_; |
| 323 MacroAssembler* masm_; | 323 MacroAssembler* masm_; |
| 324 | 324 |
| 325 List<FrameElement> elements_; | 325 List<FrameElement> elements_; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 bool Equals(VirtualFrame* other); | 457 bool Equals(VirtualFrame* other); |
| 458 | 458 |
| 459 friend class JumpTarget; | 459 friend class JumpTarget; |
| 460 }; | 460 }; |
| 461 | 461 |
| 462 | 462 |
| 463 } } // namespace v8::internal | 463 } } // namespace v8::internal |
| 464 | 464 |
| 465 #endif // V8_VIRTUAL_FRAME_ARM_H_ | 465 #endif // V8_VIRTUAL_FRAME_ARM_H_ |
| OLD | NEW |