OLD | NEW |
1 // Copyright 2008 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // of the frame, leaving the previous top-of-frame value on top of | 333 // of the frame, leaving the previous top-of-frame value on top of |
334 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). | 334 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
335 void Nip(int num_dropped); | 335 void Nip(int num_dropped); |
336 | 336 |
337 private: | 337 private: |
338 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 338 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
339 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; | 339 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; |
340 static const int kContextOffset = StandardFrameConstants::kContextOffset; | 340 static const int kContextOffset = StandardFrameConstants::kContextOffset; |
341 | 341 |
342 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; | 342 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; |
| 343 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots. |
343 | 344 |
344 CodeGenerator* cgen_; | 345 CodeGenerator* cgen_; |
345 MacroAssembler* masm_; | 346 MacroAssembler* masm_; |
346 | 347 |
347 List<FrameElement> elements_; | 348 List<FrameElement> elements_; |
348 | 349 |
349 // The number of frame-allocated locals and parameters respectively. | 350 // The number of frame-allocated locals and parameters respectively. |
350 int parameter_count_; | 351 int parameter_count_; |
351 int local_count_; | 352 int local_count_; |
352 | 353 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 480 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
480 | 481 |
481 bool Equals(VirtualFrame* other); | 482 bool Equals(VirtualFrame* other); |
482 | 483 |
483 friend class JumpTarget; | 484 friend class JumpTarget; |
484 }; | 485 }; |
485 | 486 |
486 } } // namespace v8::internal | 487 } } // namespace v8::internal |
487 | 488 |
488 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 489 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |