OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; | 369 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; |
370 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots. | 370 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots. |
371 | 371 |
372 CodeGenerator* cgen_; | 372 CodeGenerator* cgen_; |
373 MacroAssembler* masm_; | 373 MacroAssembler* masm_; |
374 | 374 |
375 ZoneList<FrameElement> elements_; | 375 ZoneList<FrameElement> elements_; |
376 | 376 |
377 // The number of frame-allocated locals and parameters respectively. | 377 // The number of frame-allocated locals and parameters respectively. |
378 int16_t parameter_count_; | 378 int parameter_count_; |
379 int16_t local_count_; | 379 int local_count_; |
380 | 380 |
381 // The index of the element that is at the processor's stack pointer | 381 // The index of the element that is at the processor's stack pointer |
382 // (the esp register). | 382 // (the esp register). |
383 int16_t stack_pointer_; | 383 int stack_pointer_; |
384 | 384 |
385 // The index of the element that is at the processor's frame pointer | 385 // The index of the element that is at the processor's frame pointer |
386 // (the ebp register). | 386 // (the ebp register). |
387 int16_t frame_pointer_; | 387 int frame_pointer_; |
388 | 388 |
389 // The index of the register frame element using each register, or | 389 // The index of the register frame element using each register, or |
390 // kIllegalIndex if a register is not on the frame. | 390 // kIllegalIndex if a register is not on the frame. |
391 int16_t register_locations_[kNumRegisters]; | 391 int register_locations_[kNumRegisters]; |
392 | 392 |
393 // The index of the first parameter. The receiver lies below the first | 393 // The index of the first parameter. The receiver lies below the first |
394 // parameter. | 394 // parameter. |
395 int param0_index() const { return 1; } | 395 int param0_index() const { return 1; } |
396 | 396 |
397 // The index of the context slot in the frame. | 397 // The index of the context slot in the frame. |
398 int context_index() const { | 398 int context_index() const { |
399 ASSERT(frame_pointer_ != kIllegalIndex); | 399 ASSERT(frame_pointer_ != kIllegalIndex); |
400 return frame_pointer_ + 1; | 400 return frame_pointer_ + 1; |
401 } | 401 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 507 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
508 | 508 |
509 bool Equals(VirtualFrame* other); | 509 bool Equals(VirtualFrame* other); |
510 | 510 |
511 friend class JumpTarget; | 511 friend class JumpTarget; |
512 }; | 512 }; |
513 | 513 |
514 } } // namespace v8::internal | 514 } } // namespace v8::internal |
515 | 515 |
516 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 516 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |