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

Side by Side Diff: src/arm/virtual-frame-arm.h

Issue 115537: Merge bleeding_edge@2002 to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/virtual-frame-ia32.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 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; 348 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize;
349 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots. 349 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots.
350 350
351 CodeGenerator* cgen_; 351 CodeGenerator* cgen_;
352 MacroAssembler* masm_; 352 MacroAssembler* masm_;
353 353
354 ZoneList<FrameElement> elements_; 354 ZoneList<FrameElement> elements_;
355 355
356 // The number of frame-allocated locals and parameters respectively. 356 // The number of frame-allocated locals and parameters respectively.
357 int16_t parameter_count_; 357 int parameter_count_;
358 int16_t local_count_; 358 int local_count_;
359 359
360 // The index of the element that is at the processor's stack pointer 360 // The index of the element that is at the processor's stack pointer
361 // (the sp register). 361 // (the sp register).
362 int16_t stack_pointer_; 362 int stack_pointer_;
363 363
364 // The index of the element that is at the processor's frame pointer 364 // The index of the element that is at the processor's frame pointer
365 // (the fp register). 365 // (the fp register).
366 int16_t frame_pointer_; 366 int frame_pointer_;
367 367
368 // The index of the register frame element using each register, or 368 // The index of the register frame element using each register, or
369 // kIllegalIndex if a register is not on the frame. 369 // kIllegalIndex if a register is not on the frame.
370 int16_t register_locations_[kNumRegisters]; 370 int register_locations_[kNumRegisters];
371 371
372 // The index of the first parameter. The receiver lies below the first 372 // The index of the first parameter. The receiver lies below the first
373 // parameter. 373 // parameter.
374 int param0_index() const { return 1; } 374 int param0_index() const { return 1; }
375 375
376 // The index of the context slot in the frame. 376 // The index of the context slot in the frame.
377 int context_index() const { 377 int context_index() const {
378 ASSERT(frame_pointer_ != kIllegalIndex); 378 ASSERT(frame_pointer_ != kIllegalIndex);
379 return frame_pointer_ - 1; 379 return frame_pointer_ - 1;
380 } 380 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 bool Equals(VirtualFrame* other); 488 bool Equals(VirtualFrame* other);
489 489
490 friend class JumpTarget; 490 friend class JumpTarget;
491 }; 491 };
492 492
493 493
494 } } // namespace v8::internal 494 } } // namespace v8::internal
495 495
496 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ 496 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/virtual-frame-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698